I found the answer at this URL: https://stackoverflow.com/questions/56827735/how-to-allow-tomcat-war-app-to-write-in-folder I had to add a line to /lib/systemd/system/tomcat9.service like this: ReadWritePaths=/data/geoserver-mosaics/
On Fri, Oct 8, 2021 at 5:27 PM Devin Eyre <djey...@gmail.com> wrote: > Yes, that's what I assumed was the problem, but I have that directory > writable by all. Was there a change from tomcat8 to tomcat9 which prevents > it from writing to directories outside the data directory, or should I be > looking at apparmor configuration? > > On Fri, Oct 8, 2021, 12:18 PM Simone Giannecchini < > simone.giannecch...@geosolutionsgroup.com> wrote: > >> The issue might be this one --> location is writable:false >> >> GeoServer process can't write in the directory you want to create the >> mosaic. >> >> Regards, >> Simone Giannecchini >> == >> GeoServer Professional Services from the experts! >> Visit http://bit.ly/gs-services for more information. >> == >> Ing. Simone Giannecchini >> @simogeo >> Founder/Director GeoSolutions Italy >> President GeoSolutions USA >> >> phone: +39 0584 962313 >> fax: +39 0584 1660272 >> mob: +39 333 8128928 >> >> http://www.geosolutionsgroup.com >> http://twitter.com/geosolutions_it >> >> ------------------------------------------------------- >> 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, Oct 8, 2021 at 5:57 PM Devin Eyre <djey...@gmail.com> wrote: >> >>> Environment: Running Geoserver 2.19.2 on Ubuntu 20.04 with tomcat9. >>> >>> Listing of directory: >>> storm@geoserver:/data/geoserver-mosaics/rtma_gust$ ll >>> total 25380 >>> drwxrwxrwx 2 storm tomcat 4096 Oct 8 14:19 ./ >>> drwxrwxrwx 12 storm tomcat 4096 Oct 7 21:05 ../ >>> -rw-r--r-- 1 storm tomcat 6523713 Oct 7 18:00 >>> 2021-10-07T17:00:00.000Z.tiff >>> -rw-r--r-- 1 storm tomcat 6536675 Oct 7 19:00 >>> 2021-10-07T18:00:00.000Z.tiff >>> -rw-r--r-- 1 storm tomcat 6454768 Oct 7 20:00 >>> 2021-10-07T19:00:00.000Z.tiff >>> -rw-r--r-- 1 storm tomcat 6449631 Oct 7 21:00 >>> 2021-10-07T20:00:00.000Z.tiff >>> -rw-rw-r-- 1 storm tomcat 269 Oct 7 18:21 datastore.properties >>> -rw-rw-r-- 1 storm tomcat 208 Oct 7 18:21 indexer.properties >>> -rw-rw-r-- 1 storm tomcat 70 Oct 7 18:21 timeregex.properties >>> >>> The storm user is in the tomcat group. >>> >>> From the geoserver log: >>> 2021-10-08 13:56:23,330 ERROR [gce.imagemosaic] - Unable to create the >>> mosaic, check the location: >>> location is:/data/geoserver-mosaics/rtma_gust >>> location exists:true >>> location is a directory:true >>> location is writable:false >>> location is readable:true >>> location is hidden:false >>> >>> 2021-10-08 13:56:23,331 INFO [geoserver.web] - Getting list of coverages >>> for saved store file:///data/geoserver-mosaics/rtma_gust >>> java.lang.RuntimeException: Could not list layers for this store, an >>> error occurred retrieving them: Failed to create reader from >>> file:///data/geoserver-mosaics/rtma_gust and hints Hints: >>> EXECUTOR_SERVICE = >>> java.util.concurrent.ThreadPoolExecutor@16da9a9[Running, >>> pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] >>> REPOSITORY = org.geoserver.catalog.CatalogRepository@cc8a698 >>> >>> >>> System defaults: >>> FEATURE_FACTORY = >>> org.geotools.feature.LenientFeatureFactoryImpl@770e60df >>> GRID_COVERAGE_FACTORY = GridCoverageFactory >>> >>> TILE_ENCODING = null >>> >>> FORCE_LONGITUDE_FIRST_AXIS_ORDER = true >>> >>> STYLE_FACTORY = StyleFactoryImpl >>> >>> LENIENT_DATUM_SHIFT = true >>> >>> FILTER_FACTORY = FilterFactoryImpl >>> >>> FORCE_AXIS_ORDER_HONORING = http >>> >>> COMPARISON_TOLERANCE = 1.0E-8 >>> >>> >>> What would be making this directory unwritable for geoserver? >>> _______________________________________________ >>> 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.net https://lists.sourceforge.net/lists/listinfo/geoserver-users