Hello again! at first thank you for your help and i will check your hint step by step. To explain why: We used a symlink because we have a lot of image data that exceeds the space of the server hardware. So i used nfs and symlinks as the easiest way to handle this and at the end it is a historical fact ;) Now we have new hardware and i thought, it would be the easiest way to continue to save some time. The actual state: The tomcat-user has rw-access to the remote directory. The problem is also present when i rename the original data-dir unchanged and link it back on the same partition in the same place. This can be reproduced on a completely different setup, so i think, this is a geoserver-thing. This is surprising, as my experience and the official documentation says something else, and the old instance work this way. At the moment it works, when i make symlinks only on the data/data and gwc directories (the directories with the huge consumption of space) and the rest is persistant in the local geoserver-data-dir. So for me, it works at the moment, but i will follow this problem, because it seems strange to me. Thank you for your help Uwe Seher
Am Fr., 15. März 2024 um 18:00 Uhr schrieb Carsten Klein < c.kl...@datagis.com>: > Hi, > > on the other hand, if Tomcat/Java states that your data dir is just not > writable, this could be due to a missing ReadWritePaths option in Tomcat's > systemd service file. For security reasons, systemd services must > explicitly list those directories they need write access to. In that case > you should add an override.conf for Tomcat's systemd service file. Assuming > you are using Tomcat 9.0, type: > > sudo systemctl edit tomcat9.service > > Then, add this line between the comment lines: > > [Service] > ReadWritePaths=/data/dir/path/known/to/tomcat/ > > After saving the file and leaving the editor the file > /etc/systemd/system/tomcat9.service.d/override.conf is getting created or > updated. > > The /data/dir/path/known/to/tomcat/ path is the directory your > GEOSERVER_DATA_DIR points to. > > Then, type > > sudo systemctl daemon-reload > > to make systemd reload its configuration. > > After restarting Tomcat, it should have write access to the data dir. > > Carsten > Am 15.03.2024 um 16:37 schrieb Andrea Aime: > > I don't have experience using symlinks for the data dir... what errors do > you get? > I guess you'll get some stack traces in the logs, can you share them? > > Regards, > > Andrea Aime > > == GeoServer Professional Services from the experts! > > Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea > Aime @geowolf Technical Lead > > GeoSolutions Group phone: +39 0584 962313 > > fax: +39 0584 1660272 > > mob: +39 339 8844549 > > https://www.geosolutionsgroup.com/ > > 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 > > > On Fri, Mar 15, 2024 at 2:35 PM Uwe Seher <uwe.se...@gmail.com> wrote: > >> Same Problem on openSUSE15.5, no symlinks accepted. >> >> Am Mo., 11. März 2024 um 15:32 Uhr schrieb Uwe Seher <uwe.se...@gmail.com >> >: >> >>> Hi! >>> I am trying u migrate our geoserver installation from 2.19.x to 2.24.1 >>> and from aur old server to a new one running on debian 11/java 11. This >>> part is ok, the new instance is up and running. It is now running on a vm >>> which should reference the data-directory from another machine. We did this >>> with the old instance too (with nfs), the new one references the data-dir >>> on the host machine. This works too, the datadir is accessible read/write >>> for the tomcat user. When i try to set this as the data-dir for geoserver >>> by creating a symlink this does not work. I tried it too with the original >>> data-dir from the installation and it does not work when i move it and >>> create a symlink in the same dir. The same dir works when it is accessed >>> directly. I do not understand what happens here, because i did this several >>> times before. >>> >>> Thank you in advance >>> Uwe Seher >>> >> _______________________________________________ >> Geoserver-users mailing list >> >> Please make sure you read the following two resources before posting to >> this list: >> - Earning your support instead of buying it, but Ian Turton: >> http://www.ianturton.com/talks/foss4g.html#/ >> - The GeoServer user list posting guidelines: >> http://geoserver.org/comm/userlist-guidelines.html >> >> 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 >> > > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to this > list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > 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.nethttps://lists.sourceforge.net/lists/listinfo/geoserver-users > >
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html 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