Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ sudo python manage.py restore --backup-file=/tmp/backup /2017-05-26_051407.zip
- Before proceeding with the Restore, please ensure that:
- 1. The backend (DB or whatever) is accessible and you have rights
- 2. The GeoServer is up and running and reachable from this machine
- WARNING: The restore will overwrite ALL GeoNode data. You want to proceed? [n]|y : y
- Restoring 'GeoServer Catalog [http://212.237.232.12/geoserver/]' into '/tmp/restore/2017-05-26_051407/geoserver_catalog.zip'.
- STARTED - 1/9
- STARTED - 8/9
- FAILED - 8/9
- GeoServer Uploaded Data Restored to '/opt/gs_data_dir/data/geonode'.
- Restoring GeoServer Vectorial Data : proposed_exploration_wells_sgi_rti_point
- Restoring GeoServer Vectorial Data : groundwater_divide
- Restoring GeoServer Vectorial Data : governorates
- Restoring GeoServer Vectorial Data : gcgw_wells_tayarat
- Restoring GeoServer Vectorial Data : soil_hydraulic_productivity
- Restoring GeoServer Vectorial Data : tigris_paleo_dejection_fan_region
- Restoring GeoServer Vectorial Data : tds_map_area
- Restoring GeoServer Vectorial Data : soil_texture2
- Restoring GeoServer Vectorial Data : water_bodies
- Restoring GeoServer Vectorial Data : city
- Restoring GeoServer Vectorial Data : karstic_dischares_kurdistan_region
- Restoring GeoServer Vectorial Data : karstic_moisture_wdesert_region
- Restoring GeoServer Vectorial Data : permo_trias_faults_polyline
- Restoring GeoServer Vectorial Data : tds_water_quality_map_who
- Restoring GeoServer Vectorial Data : alluvial_aquifers_high_probability_region
- Restoring GeoServer Vectorial Data : permo_trias_unconformity_region
- Restoring GeoServer Vectorial Data : micro_dams_sites_pointnn_inserire
- Restoring GeoServer Vectorial Data : permo_trias_aquifer_targets_region
- Restoring GeoServer Vectorial Data : minor_faults_polyline
- Restoring GeoServer Vectorial Data : anticlines_polyline
- Restoring GeoServer Vectorial Data : permian_wajid_gaara_aquifers_region
- Restoring GeoServer Vectorial Data : alluvial_aquifers_medium_probability_region
- Restoring GeoServer Vectorial Data : recharge_areas
- Restoring GeoServer Vectorial Data : iraq_boundary
- Restoring GeoServer Vectorial Data : upper_triassic_mulussa_region
- Restoring GeoServer Vectorial Data : paleozoic_sandstones_recharge_region
- Restoring GeoServer Vectorial Data : gcgw_wells_cl1
- Restoring GeoServer Vectorial Data : swl_asl
- Restoring GeoServer Vectorial Data : water_lifted_irrigation_region
- Restoring GeoServer Vectorial Data : contour_lines
- Restoring GeoServer Vectorial Data : upper_devonian_juba_sandstones_region
- Restoring GeoServer Vectorial Data : main_river
- Restoring GeoServer Vectorial Data : abu_jihr_fault_system_polyline
- Restoring GeoServer Vectorial Data : abu_jihr_fault_system_region
- Restoring GeoServer Vectorial Data : permo_trias_isobaths_polyline
- Restoring GeoServer Vectorial Data : land_capability_subclass_1
- Restoring GeoServer Vectorial Data : micro_dams_sites_region
- Restoring GeoServer Vectorial Data : swl_asl_map_area
- Restoring GeoServer Vectorial Data : tds_wells
- Restoring GeoServer Vectorial Data : land_capability
- Restoring GeoServer Vectorial Data : lakes
- Restoring GeoServer Vectorial Data : devonian_jauf_limestones_region
- Restoring GeoServer Vectorial Data : syncline_potential_aquifers_region
- Restoring GeoServer Vectorial Data : maania_depression_region
- Restoring GeoServer Vectorial Data : springs_perennial_no_data
- Restoring GeoServer Vectorial Data : rti_sgi_geologic_crosssection_polyline
- Restoring GeoServer Vectorial Data : fan_deltas_region
- Restoring GeoServer Vectorial Data : urbanareas
- Restoring GeoServer Vectorial Data : major_faults_polyline
- Restoring GeoServer Vectorial Data : fan_delta_discharges_region
- Restoring GeoServer Vectorial Data : oil_gas_fields_middle_east_region
- Restoring GeoServer Vectorial Data : triassic_formations_region
- Restoring GeoServer Vectorial Data : tectonic_structures
- Restoring GeoServer Vectorial Data : saudi_phosphate_mines_point
- Restoring GeoServer Vectorial Data : land_system
- Restoring GeoServer Vectorial Data : abu_jihr_discharges_region
- Restoring GeoServer Vectorial Data : valley_wadi
- Restoring GeoServer Vectorial Data : devonian_tawil_sandstones_region
- Restoring GeoServer Vectorial Data : groundwater_flows_polyline
- Restoring GeoServer Vectorial Data : cambro_ordovician_sandstones_region
- Restoring GeoServer Vectorial Data : springs_perennial
- Restoring GeoServer Vectorial Data : springs_temporary
- Restoring GeoServer Vectorial Data : minor_river
- Restoring GeoServer Vectorial Data : hydrogeological_units
- Operations to perform:
- Synchronize unmigrated apps: tasks, modeltranslation, django_extensions, polymorphic, treebeard, gis, pinax_theme_bootstrap_account, django_forms_bootstrap, catalogue, humanize, geoserver, storages, mptt, friendlytagloader, staticfiles, geoexplorer, gn_fede, sitemaps, proxy, pinax_theme_bootstrap, pagination, autocomplete_light, messages, leaflet, api, avatar, social, security
- Apply all migrations: dialogos, people, tastypie, agon_ratings, documents, actstream, sites, maps, contenttypes, announcements, user_messages, layers, sessions, guardian, auth, base, groups, services, oauth2_provider, account, admin, djcelery, upload, taggit
- Synchronizing apps without migrations:
- Creating tables...
- Running deferred SQL...
- Installing custom SQL...
- Running migrations:
- No migrations to apply.
- Your models have changes that are not yet reflected in a migration, and so won't be applied.
- Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
- Deactivating GeoNode Signals...
- ...done!
- Deserializing /tmp/restore/2017-05-26_051407/people.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 90, in loaddata
- self.load_label(fixture_label)
- File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, 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/2017-05-26_051407/people.json': Group matching query does not exist.
- WARNING: No valid fixture data found for 'people'.
- Deserializing /tmp/restore/2017-05-26_051407/accounts.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 90, in loaddata
- self.load_label(fixture_label)
- File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, 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 139, in Deserializer
- obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
- File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
- return self.get(username__iexact=username)
- 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/2017-05-26_051407/accounts.json': Profile matching query does not exist.
- WARNING: No valid fixture data found for 'accounts'.
- Deserializing /tmp/restore/2017-05-26_051407/avatars.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 90, in loaddata
- self.load_label(fixture_label)
- File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, 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 139, in Deserializer
- obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
- File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
- return self.get(username__iexact=username)
- 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/2017-05-26_051407/avatars.json': Profile matching query does not exist.
- WARNING: No valid fixture data found for 'avatars'.
- Deserializing /tmp/restore/2017-05-26_051407/backups.json
- Installed 5 object(s) from 1 fixture(s)
- Deserializing /tmp/restore/2017-05-26_051407/licenses.json
- Installed 8 object(s) from 1 fixture(s)
- Deserializing /tmp/restore/2017-05-26_051407/topiccategories.json
- Installed 19 object(s) from 1 fixture(s)
- Deserializing /tmp/restore/2017-05-26_051407/regions.json
- Installed 259 object(s) from 1 fixture(s)
- Deserializing /tmp/restore/2017-05-26_051407/resourcebases.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 90, in loaddata
- self.load_label(fixture_label)
- File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, 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 139, in Deserializer
- obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
- File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
- return self.get(username__iexact=username)
- 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/2017-05-26_051407/resourcebases.json': Profile matching query does not exist.
- WARNING: No valid fixture data found for 'resourcebases'.
- Deserializing /tmp/restore/2017-05-26_051407/contactroles.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 90, in loaddata
- self.load_label(fixture_label)
- File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, 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 139, in Deserializer
- obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
- File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
- return self.get(username__iexact=username)
- 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/2017-05-26_051407/contactroles.json': Profile matching query does not exist.
- WARNING: No valid fixture data found for 'contactroles'.
- Deserializing /tmp/restore/2017-05-26_051407/links.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 96, in loaddata
- connection.check_constraints(table_names=table_names)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
- self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
- return self.cursor.execute(sql, params)
- File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
- six.reraise(dj_exc_type, dj_exc_value, traceback)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
- return self.cursor.execute(sql)
- IntegrityError: Problem installing fixtures: insert or update on table "base_link" violates foreign key constraint "base_link_resource_id_66e83afffae8bd81_fk_base_resourcebase_id"
- DETAIL: Key (resource_id)=(1) is not present in table "base_resourcebase".
- WARNING: No valid fixture data found for 'links'.
- Deserializing /tmp/restore/2017-05-26_051407/restrictioncodetypes.json
- Installed 8 object(s) from 1 fixture(s)
- Deserializing /tmp/restore/2017-05-26_051407/spatialrepresentationtypes.json
- Installed 6 object(s) from 1 fixture(s)
- Deserializing /tmp/restore/2017-05-26_051407/useropermissions.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 90, in loaddata
- self.load_label(fixture_label)
- File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, 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 139, in Deserializer
- obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
- File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
- return self.get(username__iexact=username)
- 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/2017-05-26_051407/useropermissions.json': Profile matching query does not exist.
- WARNING: No valid fixture data found for 'useropermissions'.
- Deserializing /tmp/restore/2017-05-26_051407/groupopermissions.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 90, in loaddata
- self.load_label(fixture_label)
- File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, 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 139, in Deserializer
- obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
- 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/2017-05-26_051407/groupopermissions.json': Group matching query does not exist.
- WARNING: No valid fixture data found for 'groupopermissions'.
- Deserializing /tmp/restore/2017-05-26_051407/uploadsessions.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 90, in loaddata
- self.load_label(fixture_label)
- File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, 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 139, in Deserializer
- obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
- File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
- return self.get(username__iexact=username)
- 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/2017-05-26_051407/uploadsessions.json': Profile matching query does not exist.
- WARNING: No valid fixture data found for 'uploadsessions'.
- Deserializing /tmp/restore/2017-05-26_051407/styles.json
- Installed 65 object(s) from 1 fixture(s)
- Deserializing /tmp/restore/2017-05-26_051407/layers.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 96, in loaddata
- connection.check_constraints(table_names=table_names)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
- self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
- return self.cursor.execute(sql, params)
- File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
- six.reraise(dj_exc_type, dj_exc_value, traceback)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
- return self.cursor.execute(sql)
- IntegrityError: Problem installing fixtures: insert or update on table "layers_layer" violates foreign key constraint "la_resourcebase_ptr_id_55276820ef646366_fk_base_resourcebase_id"
- DETAIL: Key (resourcebase_ptr_id)=(1) is not present in table "base_resourcebase".
- WARNING: No valid fixture data found for 'layers'.
- Deserializing /tmp/restore/2017-05-26_051407/attributes.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 96, in loaddata
- connection.check_constraints(table_names=table_names)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
- self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
- return self.cursor.execute(sql, params)
- File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
- six.reraise(dj_exc_type, dj_exc_value, traceback)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
- return self.cursor.execute(sql)
- IntegrityError: Problem installing fixtures: insert or update on table "layers_attribute" violates foreign key constraint "l_layer_id_2b0e96763e796a47_fk_layers_layer_resourcebase_ptr_id"
- DETAIL: Key (layer_id)=(1) is not present in table "layers_layer".
- WARNING: No valid fixture data found for 'attributes'.
- Deserializing /tmp/restore/2017-05-26_051407/layerfiles.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 96, in loaddata
- connection.check_constraints(table_names=table_names)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
- self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
- return self.cursor.execute(sql, params)
- File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
- six.reraise(dj_exc_type, dj_exc_value, traceback)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
- return self.cursor.execute(sql)
- IntegrityError: Problem installing fixtures: insert or update on table "layers_layerfile" violates foreign key constraint "l_upload_session_id_55fc511ff9172dc4_fk_layers_uploadsession_id"
- DETAIL: Key (upload_session_id)=(1) is not present in table "layers_uploadsession".
- WARNING: No valid fixture data found for 'layerfiles'.
- Deserializing /tmp/restore/2017-05-26_051407/maps.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 96, in loaddata
- connection.check_constraints(table_names=table_names)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
- self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
- return self.cursor.execute(sql, params)
- File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
- six.reraise(dj_exc_type, dj_exc_value, traceback)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
- return self.cursor.execute(sql)
- IntegrityError: Problem installing fixtures: insert or update on table "maps_map" violates foreign key constraint "map_resourcebase_ptr_id_a6ed5a62d49f3d0_fk_base_resourcebase_id"
- DETAIL: Key (resourcebase_ptr_id)=(38) is not present in table "base_resourcebase".
- WARNING: No valid fixture data found for 'maps'.
- Deserializing /tmp/restore/2017-05-26_051407/maplayers.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 96, in loaddata
- connection.check_constraints(table_names=table_names)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
- self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
- return self.cursor.execute(sql, params)
- File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
- six.reraise(dj_exc_type, dj_exc_value, traceback)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
- return self.cursor.execute(sql)
- IntegrityError: Problem installing fixtures: insert or update on table "maps_maplayer" violates foreign key constraint "maps_map_map_id_ddb6823378b3e35_fk_maps_map_resourcebase_ptr_id"
- DETAIL: Key (map_id)=(38) is not present in table "maps_map".
- WARNING: No valid fixture data found for 'maplayers'.
- Deserializing /tmp/restore/2017-05-26_051407/mapsnapshots.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 90, in loaddata
- self.load_label(fixture_label)
- File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, 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 139, in Deserializer
- obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
- File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
- return self.get(username__iexact=username)
- 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/2017-05-26_051407/mapsnapshots.json': Profile matching query does not exist.
- WARNING: No valid fixture data found for 'mapsnapshots'.
- Deserializing /tmp/restore/2017-05-26_051407/documents.json
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, 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 96, in loaddata
- connection.check_constraints(table_names=table_names)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
- self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
- return self.cursor.execute(sql, params)
- File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
- six.reraise(dj_exc_type, dj_exc_value, traceback)
- File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
- return self.cursor.execute(sql)
- IntegrityError: Problem installing fixtures: insert or update on table "documents_document" violates foreign key constraint "do_resourcebase_ptr_id_7cb83b58cea87e2a_fk_base_resourcebase_id"
- DETAIL: Key (resourcebase_ptr_id)=(90) is not present in table "base_resourcebase".
- WARNING: No valid fixture data found for 'documents'.
- Deserializing /tmp/restore/2017-05-26_051407/tags.json
- Installed 2 object(s) from 1 fixture(s)
- Media Files Restored into '/var/www/geonode/uploaded'.
- Static Root Restored into '/var/www/geonode/static/'.
- Static Root Restored into '/var/www/geonode/static/'.
- Reactivating GeoNode Signals...
- ...done!
- Traceback (most recent call last):
- File "manage.py", line 11, in <module>
- execute_from_command_line(sys.argv)
- File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
- utility.execute()
- File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv
- self.execute(*args, **cmd_options)
- File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
- output = self.handle(*args, **options)
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 287, in handle
- static_files_folder)
- File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py", line 203, in copy_tree
- for item in os.listdir(src):
- OSError: [Errno 2] No such file or directory: '/tmp/restore/2017-05-26_051407/static_dirs/media'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement