chown problematic with heavy gwc folder
t-book opened this issue · comments
Hi @oscarfonts,
thanks for this great composition. I'm using your stack to serve OSM tiles. Strangely, geoserver suddenly did not up anymore. This is what happened.
The GWC tiles folder weigh around 600 GB. After some debugging, I've found that
docker-geoserver/2.20.2/start.sh
Line 16 in 1b7cd6c
is taking several hours to finish. Which slows down the startup immensely.
Things that come to my mind to mitigate the issue
- as an easy solution, the README could warn users, about this behavior. Doing so they hopefully will not try to find problems that are not there
- A console message could inform the user that the process is running
- I'm currently just ignoring the gwc folder
chown -R tomcat:tomcat $(ls ${GEOSERVER_DATA_DIR} -I gwc)
. Not perfect but works in my case
Hi,
We had exactly the same problem a couple of weeks ago...
Since we also make use of the CUSTOM_UID / CUSTOM_GID feature, the whole datadir got chowned 3 times.
One of our geoserver containers took literally 45 to 60 minutes to start, just because chowing millions of files takes it's time. With the changes from the PR #32, it only takes a couple of minutes to get it running.
Br,
Guy.