[GeoNode-users] GeoServer crashes at restart

David Alda Fernandez de Lezea dalda at hazi.eus
Mon Apr 18 23:28:08 PDT 2016


Hi,

I'm using the version shipped with GeoNode 2.4, i.e., GeoServer  version 2.7.4.

I removed the data you mentioned and everything started to work as expected.

Thanks!!

Regards,

Agur bero bat,


David Alda Fernández de Lezea
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.
dalda at hazi.eus | www.hazi.eus
T 945 003 240 – M 627 923 170 – F 945 003 290 
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
 
*********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

-----Mensaje original-----
De: Paolo Corti [mailto:pcorti at gmail.com] 
Enviado el: lunes, 18 de abril de 2016 16:29
Para: David Alda Fernandez de Lezea
CC: geonode-users at lists.osgeo.org
Asunto: Re: [GeoNode-users] GeoServer crashes at restart

Hi David

Which versions of GeoServer are you using?
I thought this was fixed in latest GeoServer versions.

You should be able to fix this by removing the gwc cached files containing a reference to the LayerInfoImpl--49aab484 string You can locate those files running:

grep LayerInfoImpl--49aab484 /usr/share/geoserver/data/gwc-layers

then remove those two files.

You should be able to sucessfully restart GeoServer after this cheers p

On Mon, Apr 18, 2016 at 9:26 AM, David Alda Fernandez de Lezea <dalda at hazi.eus> wrote:
> Hi list,
>
> I had my geonode installation working like a charm until this morning  when I realized that the GeoServer part is not working anymore I needed to restart tomcat ad after that GeoServer didn't work. From the web page I get 404 error but digging into the logs I've seen the following:
>
> 2016-04-18 15:11:28,923 INFO [config.XMLConfiguration] - Will look for geowebcache.xml in '/home/u0899dal/gwc'
> 2016-04-18 15:11:29,162 INFO [gwc.config] - Initializing GeoServer 
> specific GWC configuration from gwc-gs.xml
> 2016-04-18 15:11:29,816 INFO [gwc.layer] - Initializing GWC 
> configuration based on GeoServer's Catalog
> 2016-04-18 15:11:29,816 INFO [gwc.layer] - GeoServer TileLayer store 
> base directory is: /usr/share/geoserver/data/gwc-layers
> 2016-04-18 15:11:29,831 INFO [gwc.layer] - Loading tile layers from 
> /usr/share/geoserver/data/gwc-layers
> 2016-04-18 15:11:30,938 INFO [gwc.layer] - GWC configuration based on 
> GeoServer's Catalog loaded successfuly
> 2016-04-18 15:11:30,961 INFO [config.XMLConfiguration] - Found 
> configuration file in /home/u0899dal/gwc
> 2016-04-18 15:11:31,060 INFO [config.XMLConfiguration] - Configuration file validated fine.
> 2016-04-18 15:11:31,070 INFO [config.XMLConfiguration] - Initializing 
> GridSets from /home/u0899dal/gwc
> 2016-04-18 15:11:31,070 INFO [config.XMLConfiguration] - Read GridSet 
> EPSG:3857
> 2016-04-18 15:11:31,071 INFO [config.XMLConfiguration] - Initializing 
> layers from /home/u0899dal/gwc
> 2016-04-18 15:11:31,071 INFO [layer.TileLayerDispatcher] - Configuration /home/u0899dal/gwc contained no layers.
> 2016-04-18 15:11:31,118 INFO [diskquota.ConfigLoader] - DiskQuota 
> configuration not found: /home/u0899dal/gwc/geowebcache-diskquota.xml
> 2016-04-18 15:11:31,130 INFO [diskquota.ConfigLoader] - DiskQuota 
> configuration not found: /home/u0899dal/gwc/geowebcache-diskquota.xml
> 2016-04-18 15:11:31,131 INFO [diskquota.DiskQuotaMonitor] - Setting up 
> disk quota periodic enforcement task
> 2016-04-18 15:11:31,131 INFO [diskquota.DiskQuotaMonitor] - 0 layers configured with their own quotas.
> 2016-04-18 15:11:31,133 INFO [diskquota.DiskQuotaMonitor] - 300 layers 
> attached to global quota 500,0 MB
> 2016-04-18 15:11:31,357 INFO [diskquota.DiskQuotaMonitor] - Disk quota 
> periodic enforcement task set up every 10 SECONDS
> 2016-04-18 15:11:33,636 INFO [seed.SeederThreadPoolExecutor] - Initiating shut down for running and pending seed tasks...
> 2016-04-18 15:11:33,637 INFO [seed.SeederThreadPoolExecutor] - Seeder thread pool executor shut down complete.
> 2016-04-18 15:11:33,637 INFO [storage.DefaultStorageBroker] - 
> Destroying StorageBroker
> 2016-04-18 15:11:33,659 WARN [support.DisposableBeanAdapter] - 
> Invocation of destroy method failed on bean with name 
> 'geoServerLoader': 
> org.springframework.beans.factory.BeanCreationNotAllowedException: 
> Error creating bean with name 'geoGigGeoServerLifeCycleListener': 
> Singleton bean creation not allowed while the singletons of this 
> factory are in destruction (Do not request a bean from a BeanFactory 
> in a destroy method implementation!)
> 2016-04-18 15:11:33,660 ERROR [context.ContextLoader] - Context 
> initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gwcFacade' defined in URL [jar:file:/usr/share/geoserver/WEB-INF/lib/gs-gwc-2.7.4.jar!/applicationContext.xml]: Cannot resolve reference to bean 'DiskQuotaMonitor' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DiskQuotaMonitor' defined in URL [jar:file:/usr/share/geoserver/WEB-INF/lib/gs-gwc-2.7.4.jar!/geowebcache-diskquota-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Could not locate a layer or layer group with id LayerInfoImpl--49aab484:153849293ea:7199 within GeoServer configuration, the GWC configuration seems to be out of synch
>         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
>         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
>         at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
>         at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)
>         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)
>         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
>         at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:388)
>         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)
>         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
>         at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:23)
>         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
>         at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DiskQuotaMonitor' defined in URL [jar:file:/usr/share/geoserver/WEB-INF/lib/gs-gwc-2.7.4.jar!/geowebcache-diskquota-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Could not locate a layer or layer group with id LayerInfoImpl--49aab484:153849293ea:7199 within GeoServer configuration, the GWC configuration seems to be out of synch
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
>         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
>         ... 31 more
> Caused by: java.lang.IllegalStateException: Could not locate a layer or layer group with id LayerInfoImpl--49aab484:153849293ea:7199 within GeoServer configuration, the GWC configuration seems to be out of synch
>         at org.geoserver.gwc.layer.GeoServerTileLayer.getPublishedInfo(GeoServerTileLayer.java:308)
>         at org.geoserver.gwc.layer.GeoServerTileLayer.getLayerInfo(GeoServerTileLayer.java:287)
>         at org.geoserver.gwc.layer.GeoServerTileLayer.getLatLonBbox(GeoServerTileLayer.java:251)
>         at org.geoserver.gwc.layer.GeoServerTileLayer.checkGridSubsets(GeoServerTileLayer.java:777)
>         at org.geoserver.gwc.layer.GeoServerTileLayer.getGridSubsets(GeoServerTileLayer.java:765)
>         at org.geowebcache.diskquota.LayerCacheInfoBuilder.findOnDiskTileSets(LayerCacheInfoBuilder.java:148)
>         at org.geowebcache.diskquota.LayerCacheInfoBuilder.buildCacheInfo(LayerCacheInfoBuilder.java:110)
>         at org.geowebcache.diskquota.DiskQuotaMonitor.launchCacheInfoGatheringThreads(DiskQuotaMonitor.java:413)
>         at org.geowebcache.diskquota.DiskQuotaMonitor.startUpInternal(DiskQuotaMonitor.java:272)
>         at org.geowebcache.diskquota.DiskQuotaMonitor.startUp(DiskQuotaMonitor.java:231)
>         at org.geowebcache.diskquota.DiskQuotaMonitor.afterPropertiesSet(DiskQuotaMonitor.java:188)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
>         ... 38 more
>
> I tried restarting the server but without success...
>
> I have GWC configured to a different directory than default, but it has been working for the last 3 weeks (at least) perfectly.
>
> Any ideas??
>
> Thanks in advance.
>
> Agur bero bat,
>
>
> David Alda Fernández de Lezea
> Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.
> dalda at hazi.eus | www.hazi.eus
> T 945 003 240 - M 627 923 170 - F 945 003 290 Hazi | Granja Modelo de 
> Arkaute s/n | 01192 Arkaute - Araba
>
> *********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************
> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
> Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.
> This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users



--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti


More information about the geonode-users mailing list