[GeoNode-users] Error on Restore: [Errno 2] No such file or directory: '/tmp/restore/2017-08-23_141606/static_dirs/media'
Ariel Neri
ariel.neriw at gmail.com
Fri Sep 1 13:10:48 PDT 2017
Hi all, I´ve updated to Geonode 2.6.3. Today I did a restore to a previous
backup file and got this error. The backup was made in 2.6.2 with no error
messages. The result in GeoNode is an empty GeoServer. No layers,
documents, maps, services and no admin user (or any user). I had also
backups of the Postgresql databases, so i did a restore on "geonode" and
"geonode_data" and now i can access with admin user and all layers, docs,
etc. are back in GeoNode. But when i upload a new layer or doc i get this:
UnicodeEncodeError at /layers/upload 'ascii' codec can't encode character
u'\xf3' in position 22:
is this a mis-configuration on my geonode?
Thanks
error on restore:
OSError at /admin/base/backup/
[Errno 2] No such file or directory:
'/tmp/restore/2017-08-23_141606/static_dirs/media'
Request Method: POST
Request URL: http://192.168.0.56/admin/base/backup/
Django Version: 1.8.7
Exception Type: OSError
Exception Value:
[Errno 2] No such file or directory:
'/tmp/restore/2017-08-23_141606/static_dirs/media'
Exception Location:
/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py
in copy_tree, line 203
Python Executable: /usr/bin/python
Python Version: 2.7.12
Python Path:
['/home/geonode/my_geonode',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/var/www',
'/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/lib']
Server time: Vie, 1 Sep 2017 14:48:28 -0500
Traceback:File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
in get_response 132. response =
wrapped_callback(request, *callback_args, **callback_kwargs)File
"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py"
in wrapper 618. return
self.admin_site.admin_view(view)(*args, **kwargs)File
"/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in
_wrapped_view 110. response = view_func(request,
*args, **kwargs)File
"/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py"
in _wrapped_view_func 57. response = view_func(request,
*args, **kwargs)File
"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py"
in inner 233. return view(request, *args, **kwargs)File
"/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in
_wrapper 34. return bound_func(*args, **kwargs)File
"/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in
_wrapped_view 110. response = view_func(request,
*args, **kwargs)File
"/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in
bound_func 30. return func.__get__(self,
type(self))(*args2, **kwargs2)File
"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py"
in changelist_view 1592. response =
self.response_action(request, queryset=cl.get_queryset(request))File
"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py"
in response_action 1335. response = func(self, request,
queryset)File "/usr/local/lib/python2.7/dist-packages/geonode/base/admin.py"
in restore 99. call_command('restore',
force_exec=True, backup_file=str(siteObj.location).strip(),
stdout=out)File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py"
in call_command 120. return command.execute(*args,
**defaults)File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py"
in execute 445. output = self.handle(*args,
**options)File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py"
in handle 287.
static_files_folder)File
"/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py"
in copy_tree 203. for item in os.listdir(src):Exception Type:
OSError at /admin/base/backup/Exception Value: [Errno 2] No such file
or directory: '/tmp/restore/2017-08-23_141606/static_dirs/media'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170901/ce3f15ba/attachment.html>
More information about the geonode-users
mailing list