[GeoNode-users] Error installing Geoserver on Ubuntu 18.04 using "Advanced Core ubuntu-18-04 documentation"

Davide Marchi danjde at msw.it
Thu Sep 17 05:35:26 PDT 2020


Hi Devs,

I'm going to "Install Geoserver" -> 
https://docs.geonode.org/en/master/install/advanced/core/index.html#install-geoserver

I've completed all two steps:

1) "Install Geoserver"
2) "GeoServer Optimizations"


I'm using deb package "openjdk version "11.0.8" 2020-07-14" and Tomcat8 
-> 
http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.57/bin/apache-tomcat-8.5.57.tar.gz


Completed all task and running Tomcat:

sudo systemctl daemon-reload
sudo systemctl restart tomcat
sudo systemctl status tomcat.service


● tomcat.service - Tomcat 8.5 servlet container
    Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; vendor 
preset: enabled)
    Active: active (running) since Thu 2020-09-17 12:05:35 UTC; 22min ago
   Process: 5963 ExecStop=/usr/local/apache-tomcat8/bin/shutdown.sh 
(code=exited, status=0/SUCCESS)
   Process: 6020 ExecStart=/usr/local/apache-tomcat8/bin/startup.sh 
(code=exited, status=0/SUCCESS)
  Main PID: 6037 (java)
     Tasks: 55 (limit: 4915)
    CGroup: /system.slice/tomcat.service
            └─6037 /usr/lib/jvm/java-11-openjdk-amd64//bin/java 
-Djava.util.logging.config.file=/usr/local/apache-tomcat8/conf/logging.properties 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-server -Djava.awt.headless=true

Sep 17 12:05:35 exit systemd[1]: Starting Tomcat 8.5 servlet 
container...
Sep 17 12:05:35 exit startup.sh[6020]: Existing PID file found during 
start.
Sep 17 12:05:35 exit startup.sh[6020]: Removing/clearing stale PID file.
Sep 17 12:05:35 exit startup.sh[6020]: Tomcat started.
Sep 17 12:05:35 exit systemd[1]: Started Tomcat 8.5 servlet container.



Obtain some errors log:

sudo tail -F -n 300 /opt/data/geoserver_logs/geoserver.log ->


2020-09-17 12:05:53,722 WARN [geoserver.config] - Error reading resource 
URL 
[jar:file:/usr/local/apache-tomcat8/webapps/geoserver/WEB-INF/lib/gs-geofence-server-2.17-20200901.082108-6.jar!/geofence-default-override.properties]
java.io.FileNotFoundException: URL 
[jar:file:/usr/local/apache-tomcat8/webapps/geoserver/WEB-INF/lib/gs-geofence-server-2.17-20200901.082108-6.jar!/geofence-default-override.properties] 
cannot be resolved to absolute file path because it does not reside in 
the file system: 
jar:file:/usr/local/apache-tomcat8/webapps/geoserver/WEB-INF/lib/gs-geofence-server-2.17-20200901.082108-6.jar!/geofence-default-override.properties



And later:



	at 
org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:217)
	at 
org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:154)
	at 
org.springframework.core.io.UrlResource.getFile(UrlResource.java:227)
	at 
org.geoserver.config.SpringResourceAdaptor.relative(SpringResourceAdaptor.java:34)
	at 
org.geoserver.config.GeoServerPropertyOverrideConfigurer.setLocations(GeoServerPropertyOverrideConfigurer.java:49)
	at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
	at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at 
org.springframework.beans.BeanWrapperImpl$BeanPropertyHandler.setValue(BeanWrapperImpl.java:332)
	at 
org.springframework.beans.AbstractNestablePropertyAccessor.processLocalProperty(AbstractNestablePropertyAccessor.java:458)
	at 
org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:278)
	at 
org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:266)
	at 
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:97)
	at 
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:77)
	at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1707)
	at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1426)
	at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
	at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
	at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
	at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
	at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
	at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:154)
	at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705)
	at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531)
	at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
	at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
	at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
	at 
org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
	at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4689)
	at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5155)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
	at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
	at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
	at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:970)
	at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1840)
	at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
2020-09-17 12:05:54,127 WARN [geoserver.monitor] - monitoring storage 
memory not found, falling back to 'memory'
2020-09-17 12:05:56,209 WARN [ejb.Ejb3Configuration] - 
hibernate.connection.autocommit = false break the EJB3 specification
2020-09-17 12:05:56,277 WARN [dialect.H2Dialect] - The 1.1.119 version 
of H2 implements temporary table creation such that it commits current 
transaction; multi-table, bulk hql/jpaql will not work properly
2020-09-17 12:05:57,488 WARN [dialect.H2Dialect] - The 1.1.119 version 
of H2 implements temporary table creation such that it commits current 
transaction; multi-table, bulk hql/jpaql will not work properly
2020-09-17 12:05:57,772 WARN [cache.EhCacheProvider] - Could not find 
configuration [RuleLimits]; using defaults.
2020-09-17 12:05:57,893 WARN [cache.EhCacheProvider] - Could not find 
configuration [Rule]; using defaults.
2020-09-17 12:05:57,913 WARN [cache.EhCacheProvider] - Could not find 
configuration [usergroup]; using defaults.
2020-09-17 12:05:57,927 WARN [cache.EhCacheProvider] - Could not find 
configuration [GSUser]; using defaults.
2020-09-17 12:05:57,944 WARN [cache.EhCacheProvider] - Could not find 
configuration [GFUser]; using defaults.
2020-09-17 12:05:57,957 WARN [cache.EhCacheProvider] - Could not find 
configuration [gsinstance]; using defaults.
2020-09-17 12:05:57,973 WARN [cache.EhCacheProvider] - Could not find 
configuration [LayerDetails]; using defaults.
2020-09-17 12:05:59,933 WARN [config.GeoserverXMLResourceProvider] - 
Found no configuration file in config directory, will create one at 
'/opt/data/gwc_cache_dir/geowebcache.xml' from template 
jar:file:/usr/local/apache-tomcat8/webapps/geoserver/WEB-INF/lib/gwc-core-1.17.1.jar!/geowebcache_empty.xml
2020-09-17 12:06:14,799 WARN [auth.GeoFenceAuthenticationProvider] - 
INIT FROM CONFIG



sudo ls -l 
/usr/local/apache-tomcat8/webapps/geoserver/WEB-INF/lib/gs-geofence-server-2.17-20200901.082108-6.jar
-rw-r----- 1 tomcat tomcat 109492 Sep  1 13:53 
/usr/local/apache-tomcat8/webapps/geoserver/WEB-INF/lib/gs-geofence-server-2.17-20200901.082108-6.jar


sudo cat /usr/local/apache-tomcat8/bin/setenv.sh

JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
GEOSERVER_DATA_DIR="/opt/data/geoserver_data"
GEOSERVER_LOG_LOCATION="/opt/data/geoserver_logs/geoserver.log"
GEOWEBCACHE_CACHE_DIR="/opt/data/gwc_cache_dir"
GEOFENCE_DIR="$GEOSERVER_DATA_DIR/geofence"
TIMEZONE="UTC"
JAVA_OPTS="-server -Djava.awt.headless=true 
-Dorg.geotools.shapefile.datetime=false -XX:+UseParallelGC 
-XX:ParallelGCThreads=4 -Dfile.encoding=UTF8 -Duser.timezone=$TIMEZONE 
-Xms512m -Xmx4096m -Djavax.servlet.request.encoding=UTF-8 
-Djavax.servlet.response.encoding=UTF-8 -DGEOSERVER_CSRF_DISABLED=true 
-DGEOSERVER_DATA_DIR=$GEOSERVER_DATA_DIR -Dgeofence.dir=$GEOFENCE_DIR 
-DGEOSERVER_LOG_LOCATION=$GEOSERVER_LOG_LOCATION 
-DGEOWEBCACHE_CACHE_DIR=$GEOWEBCACHE_CACHE_DIR"


sudo ls -l /usr/local/apache-tomcat8/webapps/geoserver.war
-rw-r--r-- 1 root root 164676529 Sep 17 12:03 
/usr/local/apache-tomcat8/webapps/geoserver.war


Please, how should I fix them and make executable Geoserver?


Many thanks!


Davide


More information about the geonode-users mailing list