I am seeing an error like this now. It seems to work the first time (it creates a table inside my DB for my Store) but then when I restart GeoServer (or try to re-save my Store) and try to layer preview my layer, I get the following error.
I have tried deleting the BrowseImageMosaicStore table in my DB but still get the error. Any ideas on this one? My BrowseImageMosaicStore datastore.properties just has: StoreName=ArchiveQuery:ImageMosaicPostGIS That ImageMosaicPostGIS Store seems to connect successfully. 29 Nov 12:13:26 INFO [gce.imagemosaic] - Now indexing file seedImage.jpg 29 Nov 12:13:26 DEBUG [gce.imagemosaic] - Thread Name qtp1279149968-162 class org.geotools.gce.imagemosaic.ImageMosaicEventHandlers Now indexing file seedImage.jpg 29 Nov 12:13:26 DEBUG [gce.arcgrid] - ArcGridFormatFactory is available. 29 Nov 12:13:26 DEBUG [gce.arcgrid] - Creating a new ArcGriFormat. 29 Nov 12:13:26 DEBUG [gce.image] - Unable to find crs, continuing with default CRS 29 Nov 12:13:26 TRACE [util.factory] - ENTRY (FeatureTypeFactory, FEATURE_TYPE_FACTORY) 29 Nov 12:13:26 TRACE [util.factory] - RETURN (FeatureTypeFactory, FEATURE_TYPE_FACTORY): found implementation Optional. 29 Nov 12:13:26 ERROR [gce.imagemosaic] - Schema 'BrowseImageMosaicStore' already exists java.lang.IllegalArgumentException: Schema 'BrowseImageMosaicStore' already exists at org.geotools.jdbc.JDBCDataStore.createSchema(JDBCDataStore.java:723) at org.geotools.jdbc.JDBCDataStore.createSchema(JDBCDataStore.java:146) at org.geotools.gce.imagemosaic.catalog.AbstractGTDataStoreGranuleCatalog.createType(AbstractGTDataStoreGranuleCatalog.java:614) at org.geotools.gce.imagemosaic.catalog.RepositoryDataStoreCatalog.createType(RepositoryDataStoreCatalog.java:38) at org.geotools.gce.imagemosaic.catalog.CachingDataStoreGranuleCatalog.createType(CachingDataStoreGranuleCatalog.java:92) at org.geotools.gce.imagemosaic.RasterManager.createStore(RasterManager.java:1446) at org.geotools.gce.imagemosaic.ImageMosaicReader.createCoverage(ImageMosaicReader.java:1147) at org.geotools.gce.imagemosaic.ImageMosaicConfigHandler.updateConfiguration(ImageMosaicConfigHandler.java:1592) at org.geotools.gce.imagemosaic.ImageMosaicWalker.handleFile(ImageMosaicWalker.java:255) at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.handleFile(ImageMosaicDirectoryWalker.java:96) at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:367) at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335) at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.<init>(ImageMosaicDirectoryWalker.java:117) at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker.run(ImageMosaicDirectoryWalker.java:203) at org.geotools.gce.imagemosaic.Utils.createMosaic(Utils.java:517) at org.geotools.gce.imagemosaic.Utils.checkSource(Utils.java:1512) at org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:534) at org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:487) at org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:586) at org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:111) at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1567) at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1513) at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1500) at org.geoserver.web.data.store.CoverageStoreEditPage.onSave(CoverageStoreEditPage.java:125) Ashley Mort Sr. Software Engineer 972-638-6317 office 814-571-3039 cell From: Ashley Mort via Geoserver-users <geoserver-users@lists.sourceforge.net> Sent: Friday, November 26, 2021 10:22 AM To: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net> Subject: [External] Re: [Geoserver-users] trying to encrypt passwd in datastore.properties Oh I see. That is now working for me. Thanks again! Ashley Mort Sr. Software Engineer 972-638-6317 office 814-571-3039 cell From: Andrea Aime <andrea.a...@geosolutionsgroup.com<mailto:andrea.a...@geosolutionsgroup.com>> Sent: Thursday, November 25, 2021 12:48 PM To: Ashley Mort <ashley_c_m...@raytheon.com<mailto:ashley_c_m...@raytheon.com>> Cc: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>> Subject: [External] Re: [Geoserver-users] trying to encrypt passwd in datastore.properties Hi Ahsley, there is no way to encrypt credentials in those property files... but there is another possible approach. You can configure the postgis connection as a datastore in GeoServer (that encrypts the password) and then refer to it from the properties file, see the StoreName property here<https://docs.geoserver.org/stable/en/user/data/raster/imagemosaic/configuration.html>. Support for that property has been added sometimes in 2017, it's not available in old GeoServer versions. Cheers Andrea On Thu, Nov 25, 2021 at 3:53 PM Ashley Mort via Geoserver-users <geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>> wrote: I have an ImageMosaic that uses datastore.properties to connect to PostGIS. Plain text password works but I would like to encrypt the password (preferably strong PBE). Is there a recommended way to create an encrypted password for use in a datastore.properties file? Thanks! Ashley Mort Sr. Software Engineer 972-638-6317 office 814-571-3039 cell _______________________________________________ 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<mailto:Geoserver-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/geoserver-users -- 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 333 8128928 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
_______________________________________________ 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