[GeoNode-devel] migrating data 2.6.3 -> 2.8

Alessio Fabiani alessio.fabiani at geo-solutions.it
Wed Feb 27 02:13:51 PST 2019


It is not easy to understand where the problem could be.

I would suggest to review the steps by carefully reading this page

http://docs.geonode.org/en/master/tutorials/admin/backup_restore/index.html

And also considering a manual migration of data by following those
guidelines

http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_update/26_to_27/index.html#update-from-geonode-2-6-3-to-geonode-2-7



Il giorno mar 26 feb 2019 alle ore 16:46 Trey Caldwell <me at treycaldwell.com>
ha scritto:

> 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
>
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>


-- 

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead


GeoSolutions S.A.S.
Via di Montramito 3/A - 55054  Massarosa (LU) - Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686


http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.


This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190227/8bc2c5c3/attachment.html>


More information about the geonode-devel mailing list