[GeoNode-devel] migrating data 2.6.3 -> 2.8
Trey Caldwell
me at treycaldwell.com
Tue Feb 26 07:45:35 PST 2019
I am currently attempting to migrate our GeoNode data from a server running
2.6.3 to a new server running 2.8. I was able to successfully create the
backup zip file, but when I attempt to restore (via the command line) on
the 2.8 server I am getting the following error:
Deserializing /tmp/restore/2019-02-21_091314/people.json
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py",
line 356, in handle
call_command('loaddata', fixture_file, app_label=app_name)
File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
120, in call_command
return command.execute(*args, **defaults)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
line 445, in execute
output = self.handle(*args, **options)
File
"/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py",
line 61, in handle
return super(Command, self).handle(*fixture_labels, **options)
File
"/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py",
line 60, in handle
self.loaddata(fixture_labels)
File
"/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py",
line 100, in loaddata
self.load_label(fixture_label)
File
"/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py",
line 151, in load_label
for obj in objects:
File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py",
line 85, in Deserializer
six.reraise(DeserializationError, DeserializationError(e),
sys.exc_info()[2])
File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py",
line 79, in Deserializer
for obj in PythonDeserializer(objects, **options):
File
"/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line
132, in Deserializer
m2m_data[field.name] = [m2m_convert(pk) for pk in field_value]
File
"/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line
127, in m2m_convert
return
field.rel.to._default_manager.db_manager(db).get_by_natural_key(*value).pk
File "/usr/lib/python2.7/dist-packages/django/contrib/auth/models.py",
line 94, in get_by_natural_key
return self.get(name=name)
File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line
127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line
334, in get
self.model._meta.object_name
DeserializationError: Problem installing fixture
'/tmp/restore/2019-02-21_091314/people.json': Group matching query does not
exist.
WARNING: No valid fixture data found for 'people'.
Any help or suggestions are greatly appreciated.
Thanks in advance,
Trey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190226/b47d6a93/attachment-0001.html>
More information about the geonode-devel
mailing list