[GeoNode-users] Error 500, restoring backup, GeoNode 2.4 to Geonode 2.4.1
LEOPOLDO JAVIER NUNEZ DE SANTIAGO .
lnunezde at guanajuato.gob.mx
Tue Oct 18 11:16:41 PDT 2016
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) >"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20161018/839525d8/attachment-0001.html>
More information about the geonode-users
mailing list