Setting GEOWEBCACHE_CACHE_DIR in /var/lib/tomcat8/webapps/geoserver/WEB-INF/web.xml solved the issue.
···
Ben
De : DEGRÈVE Benoît
Envoyé : jeudi 18 avril 2019 11:29
À : ‘andrea.aime@…1107…’; Ian Turton
Cc : geoserver-users@lists.sourceforge.net
Objet : RE: [Geoserver-users] Geowebcache empty after Tomcat restart and/or server reboot
To Ian :
I didn’t define any GEOWEBCACHE_DIR anywhere and I can’t say if that’s the problem or not.
Do you mean an environnement variable or a variable you set in web.xml file of Geoserver in Tomcat /var/lib/tomact8/webapps/geoserver directory ?
As you can see, I don’t master everything…
I’ve just tried the « external database » (PostgreSQL) solution of Geoserver and the cached tiles remain now in database even after a Tomcat restart.
Now, I’m not sure it’s the best solution for speed, it looks a bit slower that the default behaviour.
To Andrea :
There’s indeed a gwc subfolder but I can’t see anything related to cached tiles : only .xml and .bak files :
geowebcache.xml
geowebcache-diskquota.xml
geowebcache-diskquota-jdbc.xml (I’ve just tried the « external database » option , which works fine even after a tomcat restart, cached tiles remain in database)
And a series of geowebcache_2019_XX_XXTXXXXXX.bak files (actually , these are xml files)
Benoît DEGRÈVE
Risques sous-sols et cartographie
Bachelier en gestion de données et cartographie
De : Andrea Aime [mailto:andrea.aime@…1107…]
Envoyé : jeudi 18 avril 2019 10:53
À : Ian Turton
Cc : DEGRÈVE Benoît; geoserver-users@lists.sourceforge.net
Objet : Re: [Geoserver-users] Geowebcache empty after Tomcat restart and/or server reboot
Hi Ian,
but if this is an integrated GWC inside GeoServer, the tiles should go in the GeoServer data directory, gwc subfolder, and not
in the tomcat temp… Am I missing something?
Cheers
Andrea
On Thu, Apr 18, 2019 at 10:36 AM Ian Turton <ijturton@…84…> wrote:
It sounds as though you haven’t set a GEOWEBCACHE_DIR variable and the cache is being created in the tomcat temp space - is that the problem?
Ian
On Thu, 18 Apr 2019 at 09:14, DEGRÈVE Benoît <b.degreve@…9849…> wrote:
Hi all,
[First time I ask something to geoserver-users@lists.sourceforge.net]
I use Geoserver 2.14 in Tomcat 8 with Apache2 and PostgreSQL for a web application (Openlayers) in a Linux Debian environnement.
I made several WMS cascades for several layers and used Geoserver GWC advantages for tile rendering improvements, which works fine, except that :
If I restart Tomcat and/or reboot the physical server, all tiles disappear…
If I restart Geoserver only (via Tomcat web UI), all is fine, tiles are still there and ready to be served to web clients
-
Disk space limit is activated (100GB, default for all other parameters)
-
For layers, I didn’t change anything to tile cache parameters except choosing PNG for image format and adding 2 gridsets
I can see cache expiration strategy parameters and wonder if that’s the root cause of my problem or not.
Any idea would be most welcome,
Regards,
Ben
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Ian Turton
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.