Hi Niklas,
can you please clean up the database table, set the logging profile to
"GeoTools developer logging"
and try again? Reading the logs might give you some hint as to what is
happening, otherwise
please collect them all (they will be likely long) and send them on this
thread again.

Cheers
Andera

On Sun, Aug 8, 2021 at 10:11 AM Niklas Elelid <nik...@swepilot.se> wrote:

> Hi!
>
> I'm trying to create an ImageMosaic store, storing the data in Postgres.
> I have created other such stores successfully on the same server so it's
> not my first time.
>
> However, for this store I now get the error "Could not list layers for
> this store, an error occurred retrieving them: Failed to create reader
> from file:data/[storeName]"
>
> Listing my findings:
>
> 1. The database connection is working because the table [storeName] is
> created in Postgres. The [storeName].properties file is NOT created in
> the directory
>
> 2. The .tif-files are projected in EPSG:3006. If I replace the .tif
> files in the directory with files from the working store (EPSG:4326),
> the store is created successfully
>
> 3. I can create a normal GeoTIFF store with the EPSG:3006 files
>
> 4. EPSG:3006 exists in the spatial_sys_ref table
>
> 5. Log file below
>
> Thanks in advance for any assistance.
>
> /Niklas
>
> Log file:
>
> 2021-08-08 09:06:49,305 INFO [geoserver.web] - Getting list of coverages
> for saved store file:data/[storeName]
> java.lang.RuntimeException: Could not list layers for this store, an
> error occurred retrieving them: Failed to create reader from
> file:data/[storeName] and hints Hints:
>    EXECUTOR_SERVICE =
> java.util.concurrent.ThreadPoolExecutor@3ab9773f[Running, pool size = 0,
> active threads = 0, queued tasks = 0, completed tasks = 0]
>    REPOSITORY       = org.geoserver.catalog.CatalogRepository@7e0531e9
> System defaults:
>    GRID_COVERAGE_FACTORY            = GridCoverageFactory
>      TILE_ENCODING                  = null
>    COMPARISON_TOLERANCE             = 1.0E-8
>    FEATURE_FACTORY                  =
> org.geotools.feature.LenientFeatureFactoryImpl@6bd16207
>    STYLE_FACTORY                    = StyleFactoryImpl
>    FILTER_FACTORY                   = FilterFactoryImpl
>    FORCE_AXIS_ORDER_HONORING        = http
>    FORCE_LONGITUDE_FIRST_AXIS_ORDER = true
>    LENIENT_DATUM_SHIFT              = true
>
>      at
>
> org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:170)
>      at
>
> org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:47)
>      at
>
> org.geoserver.web.wicket.GeoServerDataProvider.getFilteredItems(GeoServerDataProvider.java:190)
>      at
>
> org.geoserver.web.data.layer.NewLayerPageProvider.getFilteredItems(NewLayerPageProvider.java:186)
>      at
>
> org.geoserver.web.wicket.GeoServerDataProvider.size(GeoServerDataProvider.java:208)
>      at
>
> org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:664)
>      at
>
> org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.<init>(GeoServerTablePanel.java:659)
>      at
>
> org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:237)
>      at
>
> org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:106)
>      at
> org.geoserver.web.data.layer.NewLayerPage$1.<init>(NewLayerPage.java:99)
>      at
> org.geoserver.web.data.layer.NewLayerPage.<init>(NewLayerPage.java:98)
>      at
>
> org.geoserver.web.data.store.CoverageStoreNewPage.onSuccessfulSave(CoverageStoreNewPage.java:86)
>      at
>
> org.geoserver.web.data.store.CoverageStoreNewPage.onSave(CoverageStoreNewPage.java:71)
>      at
>
> org.geoserver.web.data.store.AbstractCoverageStorePage$1.onSubmit(AbstractCoverageStorePage.java:141)
>      at
>
> org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:111)
>      at
>
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$AjaxFormSubmitter.onSubmit(AjaxFormSubmitBehavior.java:215)
>      at
> org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1309)
>      at org.apache.wicket.markup.html.form.Form.process(Form.java:976)
>      at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:797)
>      at
>
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:171)
>      at
>
> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:155)
>      at
>
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:601)
>      at jdk.internal.reflect.GeneratedMethodAccessor2557.invoke(Unknown
> Source)
>      at
>
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>      at
>
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>      at
>
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
>      at
>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
>      at
>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
>      at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
>      at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>      at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
>      at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
>      at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
>      at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
>      at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
>      at
>
> org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>      at
>
> org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:166)
>      at
>
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:177)
>      at
>
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:52)
>      at
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
>      at
>
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
>      at
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
>      at
>
> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>      at
>
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>      at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
>      at
>
> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:26)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>      at
>
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:69)
>      at
> org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:70)
>      at
>
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
>      at
>
> org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:41)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>      at
>
> org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:37)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>      at
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
>      at
>
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
>      at
>
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
>      at
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
>      at
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
>      at
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
>      at
>
> org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:215)
>      at
>
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
>      at
>
> org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:81)
>      at
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
>      at
>
> org.geoserver.security.GeoServerAuthenticationKeyFilter.doFilter(GeoServerAuthenticationKeyFilter.java:100)
>      at
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
>      at
>
> org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
>      at
>
> org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:52)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
>      at
>
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
>      at
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
>      at
>
> org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
>      at
>
> org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
>      at
>
> org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:142)
>      at
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
>      at
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>      at
> org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:101)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>      at
>
> org.geoserver.filters.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:77)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>      at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:47)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>      at
>
> org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:46)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>      at
> org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:42)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>      at
>
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
>      at
>
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
>      at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
>      at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
>      at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
>      at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
>      at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>      at
>
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
>      at
>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1700)
>      at
>
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
>      at
>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
>      at
>
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
>      at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
>      at
>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1667)
>      at
>
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
>      at
>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
>      at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
>      at
>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
>      at
>
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152)
>      at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>      at org.eclipse.jetty.server.Server.handle(Server.java:505)
>      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
>      at
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
>      at
> org.eclipse.jetty.io
> .AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
>      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
>      at
> org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
>      at
>
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
>      at
>
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
>      at
>
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
>      at
>
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
>      at
>
> org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
>      at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)
>      at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)
>      at java.base/java.lang.Thread.run(Thread.java:834)
> Caused by: java.io.IOException: Failed to create reader from
> file:data/[storeName] and hints Hints:
>    EXECUTOR_SERVICE =
> java.util.concurrent.ThreadPoolExecutor@3ab9773f[Running, pool size = 0,
> active threads = 0, queued tasks = 0, completed tasks = 0]
>    REPOSITORY       = org.geoserver.catalog.CatalogRepository@7e0531e9
> System defaults:
>    GRID_COVERAGE_FACTORY            = GridCoverageFactory
>      TILE_ENCODING                  = null
>    COMPARISON_TOLERANCE             = 1.0E-8
>    FEATURE_FACTORY                  =
> org.geotools.feature.LenientFeatureFactoryImpl@6bd16207
>    STYLE_FACTORY                    = StyleFactoryImpl
>    FILTER_FACTORY                   = FilterFactoryImpl
>    FORCE_AXIS_ORDER_HONORING        = http
>    FORCE_LONGITUDE_FIRST_AXIS_ORDER = true
>    LENIENT_DATUM_SHIFT              = true
>
>
>
>
> _______________________________________________
> 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

Reply via email to