> From: "LEOPOLDO JAVIER NUNEZ DE SANTIAGO ." <lnune...@guanajuato.gob.mx> > To: users@tomcat.apache.org, > Date: 19.10.2016 18:35 > Subject: Error 500, restoring backup, GeoNode 2.4 to Geonode 2.4.1 > > Users Hello, my problem is related to an error in Tomcat 7 to update a > GeoNode gis system. > > Thanks for your support. > > Restarting the service tomcat7 by ssh, the system does not indicate an > error, but tomcat 7 does not start. > > 2.4 GeoNode proceeding to backup. Next restoring in GeoNode 2.4.1 > > *steps for Backup files (GeoNode 2.4)* > > Stop service > > sudo service apache2 stop > > sudo service tomcat7 stop > > sudo service postgresql stop > > > > sudo -u postgres -i pg_dump -c -Fc geonode > geonodedb.backup > > > > tar -cvzf geonodeConfigBackup.tgz /etc/geonode > > tar -zcvf geonodeVarDataBackup.tgz /var/lib/geoserver/geonode-data/ > > tar -zcvf geonodeUsrDataBackup.tgz /usr/share/geoserver/data/ > > tar -zcvf geonodeWWWDataBackup.tgz /var/www/geonode/ > > tar -cvzf geonodei18nBackup.tgz /usr/local/lib/python2.7/dist- > packages/geonode/locale/ > > tar -cvzf geonodePyDjangoBackup.tgz /usr/local/lib/python2.7/dist- > packages/geonode/ > > tar -cvzf geonodePyDjangoEggBackup.tgz /usr/local/lib/python2.7/dist- > packages/GeoNode-2.4.1.egg-info/ > > > > *steps, restoring backup (GeoNode 2.4.1)* > > > sudo service apache2 stop > > sudo service tomcat7 stop > > sudo service postgresql stop > > > sudo tar -C / -xvzf geonodeConfigBackup.tgz > > sudo tar -C / -xvzf geonodei18nBackup.tgz > > sudo tar -C / -xvzf geonodePyDjangoEggBackup.tgz > > sudo tar -C / -xvzf geonodeVarDataBackup.tgz > > sudo tar -C / -xvzf geonodePyDjangoBackup.tgz > > sudo tar -C / -xvzf geonodeUsrDataBackup.tgz > > sudo tar -C / -xvzf geonodeWWWDataBackup.tgz > > sudo service postgresql start > > sudo -u postgres -i psql -c 'drop database geonode;' > > sudo -u postgres -i psql -c 'create database geonode;' > > sudo -u postgres -i pg_restore -Fc -d geonode /path/to/geonodedb.backup > > > > sudo service apache2 stop > > sudo service tomcat7 stop > > > > Did not receive errors during the restore. > > But I have server 500 error. > > Check the access.log file, folder apache2 > > > > > > 172.125.121.52 - - [18/Oct/2016:15:19:55 +0000] "GET / HTTP/1.1" 200 5234 > "-" "this is a test ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/css/ext-compatibility.css?v=2.4.1 HTTP/1.1" 200 678 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/lib/css/assets.min.css?v=2.4.1 HTTP/1.1" 200 27247 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/css/base.css?v=2.4.1 HTTP/1.1" 200 3113 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/js/utils/utils.js?v=2.4.1 HTTP/1.1" 200 1292 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/autocomplete_light/django_admin.js HTTP/1.1" 200 832 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/autocomplete_light/autocomplete.js HTTP/1.1" 200 8094 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/autocomplete_light/addanother.js HTTP/1.1" 200 1525 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/js/base/base.js?v=2.4.1 HTTP/1.1" 200 491 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/lib/js/assets.min.js?v=2.4.1 HTTP/1.1" 200 259982 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/autocomplete_light/widget.js HTTP/1.1" 200 4674 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/autocomplete_light/remote.js HTTP/1.1" 200 983 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/fonts/lato_font.css HTTP/1.1" 200 501 " > http://172.125.122.68/static/geonode/css/base.css?v=2.4.1" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/autocomplete_light/style.css HTTP/1.1" 200 1610 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/autocomplete_light/text_widget.js HTTP/1.1" 200 2991 " > http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/css/font-awesome.css HTTP/1.1" 200 6744 " > http://172.125.122.68/static/geonode/css/base.css?v=2.4.1" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET /lang.js HTTP/1.1" 200 > 10296 "http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/img/logo.png HTTP/1.1" 200 3235 " > http://172.125.122.68/static/geonode/css/base.css?v=2.4.1" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/fonts/lato_regular.ttf HTTP/1.1" 200 120444 " > http://172.125.122.68/static/geonode/fonts/lato_font.css" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/fonts/lato_light.ttf HTTP/1.1" 200 122772 " > http://172.125.122.68/static/geonode/fonts/lato_font.css" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/fonts/lato_bold.ttf HTTP/1.1" 200 122036 " > http://172.125.122.68/static/geonode/fonts/lato_font.css" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET /static/geonode/fonts/ > fontawesome-webfont.woff2?v=4.4.0 HTTP/1.1" 200 64710 " > http://172.125.122.68/static/geonode/css/font-awesome.css" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/fonts/lato_regular.ttf HTTP/1.1" 304 166 " > http://172.125.122.68/static/geonode/fonts/lato_font.css" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/fonts/lato_bold.ttf HTTP/1.1" 304 166 " > http://172.125.122.68/static/geonode/fonts/lato_font.css" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET > /static/geonode/fonts/lato_light.ttf HTTP/1.1" 304 166 " > http://172.125.122.68/static/geonode/fonts/lato_font.css" "this is a test > ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +0000] "GET /jsi18n/ HTTP/1.1" 200 > 14518 "http://172.125.122.68/" "this is a test ua <img src=x onerror= > alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:59 +0000] "GET /favicon.ico HTTP/1.1" > 404 14637 "-" "this is a test ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:59 +0000] "GET /favicon.ico HTTP/1.1" > 404 14637 "-" "this is a test ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:59 +0000] "GET /api/featured/ > HTTP/1.1" 200 379 "http://172.125.122.68/" "this is a test ua <img src=x > onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:16:29:52 +0000] "GET / HTTP/1.1" 500 708 > "-" "this is a test ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:16:45:13 +0000] "GET / HTTP/1.1" 500 708 > "-" "this is a test ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:16:46:23 +0000] "GET / HTTP/1.1" 500 708 > "-" "this is a test ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:17:01:18 +0000] "GET / HTTP/1.1" 500 708 > "-" "this is a test ua <img src=x onerror= alert(999999) >" > > 172.125.121.52 - - [18/Oct/2016:17:01:25 +0000] "GET / HTTP/1.1" 500 708 > "-" "this is a test ua <img src=x onerror= alert(999999) >" > > > tomcat7 don´t start > > catalina.2016-10-18.log > > oct 18, 2016 4:12:20 PM org.apache.catalina.startup.ClassLoaderFactory > validateFile > ADVERTENCIA: Problem with directory [/usr/share/tomcat7/common/classes], > exists: [false], isDirectory: [false], canRead: [false] > oct 18, 2016 4:12:20 PM org.apache.catalina.startup.ClassLoaderFactory > validateFile > ADVERTENCIA: Problem with directory [/usr/share/tomcat7/common], exists: > [false], isDirectory: [false], canRead: [false] > oct 18, 2016 4:12:20 PM org.apache.catalina.startup.ClassLoaderFactory > validateFile > ADVERTENCIA: Problem with directory [/usr/share/tomcat7/server/classes], > exists: [false], isDirectory: [false], canRead: [false] > oct 18, 2016 4:12:20 PM org.apache.catalina.startup.ClassLoaderFactory > validateFile > ADVERTENCIA: Problem with directory [/usr/share/tomcat7/server], exists: > [false], isDirectory: [false], canRead: [false] > oct 18, 2016 4:12:20 PM org.apache.catalina.startup.ClassLoaderFactory > validateFile > ADVERTENCIA: Problem with directory [/usr/share/tomcat7/shared/classes], > exists: [false], isDirectory: [false], canRead: [false] > oct 18, 2016 4:12:20 PM org.apache.catalina.startup.ClassLoaderFactory > validateFile > ADVERTENCIA: Problem with directory [/usr/share/tomcat7/shared], exists: > [false], isDirectory: [false], canRead: [false] > oct 18, 2016 4:12:22 PM org.apache.coyote.AbstractProtocol init > INFORMACIÓN: Initializing ProtocolHandler ["http-bio-8080"] > oct 18, 2016 4:12:22 PM org.apache.catalina.startup.Catalina load > INFORMACIÓN: Initialization processed in 1912 ms > oct 18, 2016 4:12:22 PM org.apache.catalina.core.StandardService > startInternal > INFORMACIÓN: Arrancando servicio Catalina > oct 18, 2016 4:12:22 PM org.apache.catalina.core.StandardEngine > startInternal > INFORMACIÓN: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu) > oct 18, 2016 4:12:23 PM org.apache.catalina.startup.HostConfig > deployDescriptor > INFORMACIÓN: Desplieque del descriptor de configuración > /etc/tomcat7/Catalina/localhost/geoserver.xml > oct 18, 2016 4:12:25 PM org.apache.catalina.loader.WebappClassLoader > validateJarFile > INFORMACIÓN: validateJarFile(/usr/share/geoserver/WEB-INF/lib/ > servlet-api-2.5.jar) > - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: > javax/servlet/Servlet.class > oct 18, 2016 4:12:56 PM org.geoserver.platform.GeoServerExtensions > checkContext > ADVERTENCIA: Extension lookup 'XStreamPersisterInitializer', but > ApplicationContext is unset. > oct 18, 2016 4:13:04 PM org.geoserver.platform.GeoServerExtensions > checkContext > ADVERTENCIA: Extension lookup 'GeoServerSecurityProvider', but > ApplicationContext is unset. > oct 18, 2016 4:17:09 PM org.apache.catalina.util.SessionIdGenerator > createSecureRandom > INFORMACIÓN: Creation of SecureRandom instance for session ID generation > using [SHA1PRNG] took [205.429] milliseconds. > oct 18, 2016 4:17:09 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFORMACIÓN: Despliegue del directorio /var/lib/tomcat7/webapps/ROOT de la > aplicación web > oct 18, 2016 4:17:09 PM org.apache.coyote.AbstractProtocol start > INFORMACIÓN: Starting ProtocolHandler ["http-bio-8080"] > oct 18, 2016 4:17:09 PM org.apache.catalina.startup.Catalina start > INFORMACIÓN: Server startup in 287082 ms
Hi, this seems to be the interesting part from your logs: > INFORMACIÓN: validateJarFile(/usr/share/geoserver/WEB-INF/lib/servlet-api-2.5.jar) > - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: > javax/servlet/Servlet.class The build script of "geoserver" should be updated to make sure that jar is not included. Regards, Christoph This Email was scanned by Sophos Anti Virus