Advertisement
Guest User

Untitled

a guest
May 29th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.78 KB | None | 0 0
  1. $ sudo python manage.py restore --backup-file=/tmp/backup /2017-05-26_051407.zip
  2. Before proceeding with the Restore, please ensure that:
  3. 1. The backend (DB or whatever) is accessible and you have rights
  4. 2. The GeoServer is up and running and reachable from this machine
  5. WARNING: The restore will overwrite ALL GeoNode data. You want to proceed? [n]|y : y
  6. Restoring 'GeoServer Catalog [http://212.237.232.12/geoserver/]' into '/tmp/restore/2017-05-26_051407/geoserver_catalog.zip'.
  7. STARTED - 1/9
  8. STARTED - 8/9
  9. FAILED - 8/9
  10. GeoServer Uploaded Data Restored to '/opt/gs_data_dir/data/geonode'.
  11. Restoring GeoServer Vectorial Data : proposed_exploration_wells_sgi_rti_point
  12. Restoring GeoServer Vectorial Data : groundwater_divide
  13. Restoring GeoServer Vectorial Data : governorates
  14. Restoring GeoServer Vectorial Data : gcgw_wells_tayarat
  15. Restoring GeoServer Vectorial Data : soil_hydraulic_productivity
  16. Restoring GeoServer Vectorial Data : tigris_paleo_dejection_fan_region
  17. Restoring GeoServer Vectorial Data : tds_map_area
  18. Restoring GeoServer Vectorial Data : soil_texture2
  19. Restoring GeoServer Vectorial Data : water_bodies
  20. Restoring GeoServer Vectorial Data : city
  21. Restoring GeoServer Vectorial Data : karstic_dischares_kurdistan_region
  22. Restoring GeoServer Vectorial Data : karstic_moisture_wdesert_region
  23. Restoring GeoServer Vectorial Data : permo_trias_faults_polyline
  24. Restoring GeoServer Vectorial Data : tds_water_quality_map_who
  25. Restoring GeoServer Vectorial Data : alluvial_aquifers_high_probability_region
  26. Restoring GeoServer Vectorial Data : permo_trias_unconformity_region
  27. Restoring GeoServer Vectorial Data : micro_dams_sites_pointnn_inserire
  28. Restoring GeoServer Vectorial Data : permo_trias_aquifer_targets_region
  29. Restoring GeoServer Vectorial Data : minor_faults_polyline
  30. Restoring GeoServer Vectorial Data : anticlines_polyline
  31. Restoring GeoServer Vectorial Data : permian_wajid_gaara_aquifers_region
  32. Restoring GeoServer Vectorial Data : alluvial_aquifers_medium_probability_region
  33. Restoring GeoServer Vectorial Data : recharge_areas
  34. Restoring GeoServer Vectorial Data : iraq_boundary
  35. Restoring GeoServer Vectorial Data : upper_triassic_mulussa_region
  36. Restoring GeoServer Vectorial Data : paleozoic_sandstones_recharge_region
  37. Restoring GeoServer Vectorial Data : gcgw_wells_cl1
  38. Restoring GeoServer Vectorial Data : swl_asl
  39. Restoring GeoServer Vectorial Data : water_lifted_irrigation_region
  40. Restoring GeoServer Vectorial Data : contour_lines
  41. Restoring GeoServer Vectorial Data : upper_devonian_juba_sandstones_region
  42. Restoring GeoServer Vectorial Data : main_river
  43. Restoring GeoServer Vectorial Data : abu_jihr_fault_system_polyline
  44. Restoring GeoServer Vectorial Data : abu_jihr_fault_system_region
  45. Restoring GeoServer Vectorial Data : permo_trias_isobaths_polyline
  46. Restoring GeoServer Vectorial Data : land_capability_subclass_1
  47. Restoring GeoServer Vectorial Data : micro_dams_sites_region
  48. Restoring GeoServer Vectorial Data : swl_asl_map_area
  49. Restoring GeoServer Vectorial Data : tds_wells
  50. Restoring GeoServer Vectorial Data : land_capability
  51. Restoring GeoServer Vectorial Data : lakes
  52. Restoring GeoServer Vectorial Data : devonian_jauf_limestones_region
  53. Restoring GeoServer Vectorial Data : syncline_potential_aquifers_region
  54. Restoring GeoServer Vectorial Data : maania_depression_region
  55. Restoring GeoServer Vectorial Data : springs_perennial_no_data
  56. Restoring GeoServer Vectorial Data : rti_sgi_geologic_crosssection_polyline
  57. Restoring GeoServer Vectorial Data : fan_deltas_region
  58. Restoring GeoServer Vectorial Data : urbanareas
  59. Restoring GeoServer Vectorial Data : major_faults_polyline
  60. Restoring GeoServer Vectorial Data : fan_delta_discharges_region
  61. Restoring GeoServer Vectorial Data : oil_gas_fields_middle_east_region
  62. Restoring GeoServer Vectorial Data : triassic_formations_region
  63. Restoring GeoServer Vectorial Data : tectonic_structures
  64. Restoring GeoServer Vectorial Data : saudi_phosphate_mines_point
  65. Restoring GeoServer Vectorial Data : land_system
  66. Restoring GeoServer Vectorial Data : abu_jihr_discharges_region
  67. Restoring GeoServer Vectorial Data : valley_wadi
  68. Restoring GeoServer Vectorial Data : devonian_tawil_sandstones_region
  69. Restoring GeoServer Vectorial Data : groundwater_flows_polyline
  70. Restoring GeoServer Vectorial Data : cambro_ordovician_sandstones_region
  71. Restoring GeoServer Vectorial Data : springs_perennial
  72. Restoring GeoServer Vectorial Data : springs_temporary
  73. Restoring GeoServer Vectorial Data : minor_river
  74. Restoring GeoServer Vectorial Data : hydrogeological_units
  75. Operations to perform:
  76. 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
  77. 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
  78. Synchronizing apps without migrations:
  79. Creating tables...
  80. Running deferred SQL...
  81. Installing custom SQL...
  82. Running migrations:
  83. No migrations to apply.
  84. Your models have changes that are not yet reflected in a migration, and so won't be applied.
  85. Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
  86. Deactivating GeoNode Signals...
  87. ...done!
  88. Deserializing /tmp/restore/2017-05-26_051407/people.json
  89. Traceback (most recent call last):
  90. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  91. call_command('loaddata', fixture_file, app_label=app_name)
  92. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  93. return command.execute(*args, **defaults)
  94. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  95. output = self.handle(*args, **options)
  96. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  97. return super(Command, self).handle(*fixture_labels, **options)
  98. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  99. self.loaddata(fixture_labels)
  100. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
  101. self.load_label(fixture_label)
  102. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, in load_label
  103. for obj in objects:
  104. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 85, in Deserializer
  105. six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  106. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 79, in Deserializer
  107. for obj in PythonDeserializer(objects, **options):
  108. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 132, in Deserializer
  109. m2m_data[field.name] = [m2m_convert(pk) for pk in field_value]
  110. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 127, in m2m_convert
  111. return field.rel.to._default_manager.db_manager(db).get_by_natural_key(*value).pk
  112. File "/usr/lib/python2.7/dist-packages/django/contrib/auth/models.py", line 94, in get_by_natural_key
  113. return self.get(name=name)
  114. File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
  115. return getattr(self.get_queryset(), name)(*args, **kwargs)
  116. File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
  117. self.model._meta.object_name
  118. DeserializationError: Problem installing fixture '/tmp/restore/2017-05-26_051407/people.json': Group matching query does not exist.
  119. WARNING: No valid fixture data found for 'people'.
  120. Deserializing /tmp/restore/2017-05-26_051407/accounts.json
  121. Traceback (most recent call last):
  122. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  123. call_command('loaddata', fixture_file, app_label=app_name)
  124. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  125. return command.execute(*args, **defaults)
  126. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  127. output = self.handle(*args, **options)
  128. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  129. return super(Command, self).handle(*fixture_labels, **options)
  130. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  131. self.loaddata(fixture_labels)
  132. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
  133. self.load_label(fixture_label)
  134. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, in load_label
  135. for obj in objects:
  136. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 85, in Deserializer
  137. six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  138. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 79, in Deserializer
  139. for obj in PythonDeserializer(objects, **options):
  140. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 139, in Deserializer
  141. obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
  142. File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
  143. return self.get(username__iexact=username)
  144. File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
  145. return getattr(self.get_queryset(), name)(*args, **kwargs)
  146. File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
  147. self.model._meta.object_name
  148. DeserializationError: Problem installing fixture '/tmp/restore/2017-05-26_051407/accounts.json': Profile matching query does not exist.
  149. WARNING: No valid fixture data found for 'accounts'.
  150. Deserializing /tmp/restore/2017-05-26_051407/avatars.json
  151. Traceback (most recent call last):
  152. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  153. call_command('loaddata', fixture_file, app_label=app_name)
  154. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  155. return command.execute(*args, **defaults)
  156. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  157. output = self.handle(*args, **options)
  158. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  159. return super(Command, self).handle(*fixture_labels, **options)
  160. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  161. self.loaddata(fixture_labels)
  162. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
  163. self.load_label(fixture_label)
  164. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, in load_label
  165. for obj in objects:
  166. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 85, in Deserializer
  167. six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  168. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 79, in Deserializer
  169. for obj in PythonDeserializer(objects, **options):
  170. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 139, in Deserializer
  171. obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
  172. File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
  173. return self.get(username__iexact=username)
  174. File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
  175. return getattr(self.get_queryset(), name)(*args, **kwargs)
  176. File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
  177. self.model._meta.object_name
  178. DeserializationError: Problem installing fixture '/tmp/restore/2017-05-26_051407/avatars.json': Profile matching query does not exist.
  179. WARNING: No valid fixture data found for 'avatars'.
  180. Deserializing /tmp/restore/2017-05-26_051407/backups.json
  181. Installed 5 object(s) from 1 fixture(s)
  182. Deserializing /tmp/restore/2017-05-26_051407/licenses.json
  183. Installed 8 object(s) from 1 fixture(s)
  184. Deserializing /tmp/restore/2017-05-26_051407/topiccategories.json
  185. Installed 19 object(s) from 1 fixture(s)
  186. Deserializing /tmp/restore/2017-05-26_051407/regions.json
  187. Installed 259 object(s) from 1 fixture(s)
  188. Deserializing /tmp/restore/2017-05-26_051407/resourcebases.json
  189. Traceback (most recent call last):
  190. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  191. call_command('loaddata', fixture_file, app_label=app_name)
  192. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  193. return command.execute(*args, **defaults)
  194. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  195. output = self.handle(*args, **options)
  196. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  197. return super(Command, self).handle(*fixture_labels, **options)
  198. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  199. self.loaddata(fixture_labels)
  200. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
  201. self.load_label(fixture_label)
  202. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, in load_label
  203. for obj in objects:
  204. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 85, in Deserializer
  205. six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  206. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 79, in Deserializer
  207. for obj in PythonDeserializer(objects, **options):
  208. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 139, in Deserializer
  209. obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
  210. File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
  211. return self.get(username__iexact=username)
  212. File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
  213. return getattr(self.get_queryset(), name)(*args, **kwargs)
  214. File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
  215. self.model._meta.object_name
  216. DeserializationError: Problem installing fixture '/tmp/restore/2017-05-26_051407/resourcebases.json': Profile matching query does not exist.
  217. WARNING: No valid fixture data found for 'resourcebases'.
  218. Deserializing /tmp/restore/2017-05-26_051407/contactroles.json
  219. Traceback (most recent call last):
  220. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  221. call_command('loaddata', fixture_file, app_label=app_name)
  222. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  223. return command.execute(*args, **defaults)
  224. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  225. output = self.handle(*args, **options)
  226. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  227. return super(Command, self).handle(*fixture_labels, **options)
  228. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  229. self.loaddata(fixture_labels)
  230. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
  231. self.load_label(fixture_label)
  232. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, in load_label
  233. for obj in objects:
  234. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 85, in Deserializer
  235. six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  236. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 79, in Deserializer
  237. for obj in PythonDeserializer(objects, **options):
  238. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 139, in Deserializer
  239. obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
  240. File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
  241. return self.get(username__iexact=username)
  242. File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
  243. return getattr(self.get_queryset(), name)(*args, **kwargs)
  244. File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
  245. self.model._meta.object_name
  246. DeserializationError: Problem installing fixture '/tmp/restore/2017-05-26_051407/contactroles.json': Profile matching query does not exist.
  247. WARNING: No valid fixture data found for 'contactroles'.
  248. Deserializing /tmp/restore/2017-05-26_051407/links.json
  249. Traceback (most recent call last):
  250. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  251. call_command('loaddata', fixture_file, app_label=app_name)
  252. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  253. return command.execute(*args, **defaults)
  254. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  255. output = self.handle(*args, **options)
  256. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  257. return super(Command, self).handle(*fixture_labels, **options)
  258. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  259. self.loaddata(fixture_labels)
  260. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 96, in loaddata
  261. connection.check_constraints(table_names=table_names)
  262. File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
  263. self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
  264. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  265. return self.cursor.execute(sql, params)
  266. File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
  267. six.reraise(dj_exc_type, dj_exc_value, traceback)
  268. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
  269. return self.cursor.execute(sql)
  270. IntegrityError: Problem installing fixtures: insert or update on table "base_link" violates foreign key constraint "base_link_resource_id_66e83afffae8bd81_fk_base_resourcebase_id"
  271. DETAIL: Key (resource_id)=(1) is not present in table "base_resourcebase".
  272.  
  273. WARNING: No valid fixture data found for 'links'.
  274. Deserializing /tmp/restore/2017-05-26_051407/restrictioncodetypes.json
  275. Installed 8 object(s) from 1 fixture(s)
  276. Deserializing /tmp/restore/2017-05-26_051407/spatialrepresentationtypes.json
  277. Installed 6 object(s) from 1 fixture(s)
  278. Deserializing /tmp/restore/2017-05-26_051407/useropermissions.json
  279. Traceback (most recent call last):
  280. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  281. call_command('loaddata', fixture_file, app_label=app_name)
  282. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  283. return command.execute(*args, **defaults)
  284. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  285. output = self.handle(*args, **options)
  286. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  287. return super(Command, self).handle(*fixture_labels, **options)
  288. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  289. self.loaddata(fixture_labels)
  290. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
  291. self.load_label(fixture_label)
  292. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, in load_label
  293. for obj in objects:
  294. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 85, in Deserializer
  295. six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  296. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 79, in Deserializer
  297. for obj in PythonDeserializer(objects, **options):
  298. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 139, in Deserializer
  299. obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
  300. File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
  301. return self.get(username__iexact=username)
  302. File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
  303. return getattr(self.get_queryset(), name)(*args, **kwargs)
  304. File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
  305. self.model._meta.object_name
  306. DeserializationError: Problem installing fixture '/tmp/restore/2017-05-26_051407/useropermissions.json': Profile matching query does not exist.
  307. WARNING: No valid fixture data found for 'useropermissions'.
  308. Deserializing /tmp/restore/2017-05-26_051407/groupopermissions.json
  309. Traceback (most recent call last):
  310. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  311. call_command('loaddata', fixture_file, app_label=app_name)
  312. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  313. return command.execute(*args, **defaults)
  314. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  315. output = self.handle(*args, **options)
  316. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  317. return super(Command, self).handle(*fixture_labels, **options)
  318. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  319. self.loaddata(fixture_labels)
  320. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
  321. self.load_label(fixture_label)
  322. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, in load_label
  323. for obj in objects:
  324. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 85, in Deserializer
  325. six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  326. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 79, in Deserializer
  327. for obj in PythonDeserializer(objects, **options):
  328. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 139, in Deserializer
  329. obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
  330. File "/usr/lib/python2.7/dist-packages/django/contrib/auth/models.py", line 94, in get_by_natural_key
  331. return self.get(name=name)
  332. File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
  333. return getattr(self.get_queryset(), name)(*args, **kwargs)
  334. File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
  335. self.model._meta.object_name
  336. DeserializationError: Problem installing fixture '/tmp/restore/2017-05-26_051407/groupopermissions.json': Group matching query does not exist.
  337. WARNING: No valid fixture data found for 'groupopermissions'.
  338. Deserializing /tmp/restore/2017-05-26_051407/uploadsessions.json
  339. Traceback (most recent call last):
  340. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  341. call_command('loaddata', fixture_file, app_label=app_name)
  342. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  343. return command.execute(*args, **defaults)
  344. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  345. output = self.handle(*args, **options)
  346. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  347. return super(Command, self).handle(*fixture_labels, **options)
  348. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  349. self.loaddata(fixture_labels)
  350. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
  351. self.load_label(fixture_label)
  352. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, in load_label
  353. for obj in objects:
  354. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 85, in Deserializer
  355. six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  356. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 79, in Deserializer
  357. for obj in PythonDeserializer(objects, **options):
  358. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 139, in Deserializer
  359. obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
  360. File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
  361. return self.get(username__iexact=username)
  362. File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
  363. return getattr(self.get_queryset(), name)(*args, **kwargs)
  364. File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
  365. self.model._meta.object_name
  366. DeserializationError: Problem installing fixture '/tmp/restore/2017-05-26_051407/uploadsessions.json': Profile matching query does not exist.
  367. WARNING: No valid fixture data found for 'uploadsessions'.
  368. Deserializing /tmp/restore/2017-05-26_051407/styles.json
  369. Installed 65 object(s) from 1 fixture(s)
  370. Deserializing /tmp/restore/2017-05-26_051407/layers.json
  371. Traceback (most recent call last):
  372. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  373. call_command('loaddata', fixture_file, app_label=app_name)
  374. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  375. return command.execute(*args, **defaults)
  376. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  377. output = self.handle(*args, **options)
  378. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  379. return super(Command, self).handle(*fixture_labels, **options)
  380. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  381. self.loaddata(fixture_labels)
  382. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 96, in loaddata
  383. connection.check_constraints(table_names=table_names)
  384. File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
  385. self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
  386. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  387. return self.cursor.execute(sql, params)
  388. File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
  389. six.reraise(dj_exc_type, dj_exc_value, traceback)
  390. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
  391. return self.cursor.execute(sql)
  392. IntegrityError: Problem installing fixtures: insert or update on table "layers_layer" violates foreign key constraint "la_resourcebase_ptr_id_55276820ef646366_fk_base_resourcebase_id"
  393. DETAIL: Key (resourcebase_ptr_id)=(1) is not present in table "base_resourcebase".
  394.  
  395. WARNING: No valid fixture data found for 'layers'.
  396. Deserializing /tmp/restore/2017-05-26_051407/attributes.json
  397. Traceback (most recent call last):
  398. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  399. call_command('loaddata', fixture_file, app_label=app_name)
  400. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  401. return command.execute(*args, **defaults)
  402. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  403. output = self.handle(*args, **options)
  404. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  405. return super(Command, self).handle(*fixture_labels, **options)
  406. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  407. self.loaddata(fixture_labels)
  408. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 96, in loaddata
  409. connection.check_constraints(table_names=table_names)
  410. File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
  411. self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
  412. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  413. return self.cursor.execute(sql, params)
  414. File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
  415. six.reraise(dj_exc_type, dj_exc_value, traceback)
  416. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
  417. return self.cursor.execute(sql)
  418. 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"
  419. DETAIL: Key (layer_id)=(1) is not present in table "layers_layer".
  420.  
  421. WARNING: No valid fixture data found for 'attributes'.
  422. Deserializing /tmp/restore/2017-05-26_051407/layerfiles.json
  423. Traceback (most recent call last):
  424. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  425. call_command('loaddata', fixture_file, app_label=app_name)
  426. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  427. return command.execute(*args, **defaults)
  428. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  429. output = self.handle(*args, **options)
  430. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  431. return super(Command, self).handle(*fixture_labels, **options)
  432. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  433. self.loaddata(fixture_labels)
  434. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 96, in loaddata
  435. connection.check_constraints(table_names=table_names)
  436. File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
  437. self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
  438. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  439. return self.cursor.execute(sql, params)
  440. File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
  441. six.reraise(dj_exc_type, dj_exc_value, traceback)
  442. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
  443. return self.cursor.execute(sql)
  444. IntegrityError: Problem installing fixtures: insert or update on table "layers_layerfile" violates foreign key constraint "l_upload_session_id_55fc511ff9172dc4_fk_layers_uploadsession_id"
  445. DETAIL: Key (upload_session_id)=(1) is not present in table "layers_uploadsession".
  446.  
  447. WARNING: No valid fixture data found for 'layerfiles'.
  448. Deserializing /tmp/restore/2017-05-26_051407/maps.json
  449. Traceback (most recent call last):
  450. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  451. call_command('loaddata', fixture_file, app_label=app_name)
  452. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  453. return command.execute(*args, **defaults)
  454. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  455. output = self.handle(*args, **options)
  456. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  457. return super(Command, self).handle(*fixture_labels, **options)
  458. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  459. self.loaddata(fixture_labels)
  460. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 96, in loaddata
  461. connection.check_constraints(table_names=table_names)
  462. File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
  463. self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
  464. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  465. return self.cursor.execute(sql, params)
  466. File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
  467. six.reraise(dj_exc_type, dj_exc_value, traceback)
  468. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
  469. return self.cursor.execute(sql)
  470. IntegrityError: Problem installing fixtures: insert or update on table "maps_map" violates foreign key constraint "map_resourcebase_ptr_id_a6ed5a62d49f3d0_fk_base_resourcebase_id"
  471. DETAIL: Key (resourcebase_ptr_id)=(38) is not present in table "base_resourcebase".
  472.  
  473. WARNING: No valid fixture data found for 'maps'.
  474. Deserializing /tmp/restore/2017-05-26_051407/maplayers.json
  475. Traceback (most recent call last):
  476. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  477. call_command('loaddata', fixture_file, app_label=app_name)
  478. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  479. return command.execute(*args, **defaults)
  480. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  481. output = self.handle(*args, **options)
  482. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  483. return super(Command, self).handle(*fixture_labels, **options)
  484. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  485. self.loaddata(fixture_labels)
  486. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 96, in loaddata
  487. connection.check_constraints(table_names=table_names)
  488. File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
  489. self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
  490. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  491. return self.cursor.execute(sql, params)
  492. File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
  493. six.reraise(dj_exc_type, dj_exc_value, traceback)
  494. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
  495. return self.cursor.execute(sql)
  496. 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"
  497. DETAIL: Key (map_id)=(38) is not present in table "maps_map".
  498.  
  499. WARNING: No valid fixture data found for 'maplayers'.
  500. Deserializing /tmp/restore/2017-05-26_051407/mapsnapshots.json
  501. Traceback (most recent call last):
  502. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  503. call_command('loaddata', fixture_file, app_label=app_name)
  504. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  505. return command.execute(*args, **defaults)
  506. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  507. output = self.handle(*args, **options)
  508. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  509. return super(Command, self).handle(*fixture_labels, **options)
  510. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  511. self.loaddata(fixture_labels)
  512. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
  513. self.load_label(fixture_label)
  514. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 141, in load_label
  515. for obj in objects:
  516. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 85, in Deserializer
  517. six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  518. File "/usr/lib/python2.7/dist-packages/django/core/serializers/json.py", line 79, in Deserializer
  519. for obj in PythonDeserializer(objects, **options):
  520. File "/usr/lib/python2.7/dist-packages/django/core/serializers/python.py", line 139, in Deserializer
  521. obj = field.rel.to._default_manager.db_manager(db).get_by_natural_key(*field_value)
  522. File "/usr/local/lib/python2.7/dist-packages/geonode/people/models.py", line 43, in get_by_natural_key
  523. return self.get(username__iexact=username)
  524. File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
  525. return getattr(self.get_queryset(), name)(*args, **kwargs)
  526. File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 334, in get
  527. self.model._meta.object_name
  528. DeserializationError: Problem installing fixture '/tmp/restore/2017-05-26_051407/mapsnapshots.json': Profile matching query does not exist.
  529. WARNING: No valid fixture data found for 'mapsnapshots'.
  530. Deserializing /tmp/restore/2017-05-26_051407/documents.json
  531. Traceback (most recent call last):
  532. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 218, in handle
  533. call_command('loaddata', fixture_file, app_label=app_name)
  534. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command
  535. return command.execute(*args, **defaults)
  536. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  537. output = self.handle(*args, **options)
  538. File "/usr/lib/python2.7/dist-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
  539. return super(Command, self).handle(*fixture_labels, **options)
  540. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 60, in handle
  541. self.loaddata(fixture_labels)
  542. File "/usr/lib/python2.7/dist-packages/django/core/management/commands/loaddata.py", line 96, in loaddata
  543. connection.check_constraints(table_names=table_names)
  544. File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 225, in check_constraints
  545. self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE')
  546. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  547. return self.cursor.execute(sql, params)
  548. File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__
  549. six.reraise(dj_exc_type, dj_exc_value, traceback)
  550. File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
  551. return self.cursor.execute(sql)
  552. IntegrityError: Problem installing fixtures: insert or update on table "documents_document" violates foreign key constraint "do_resourcebase_ptr_id_7cb83b58cea87e2a_fk_base_resourcebase_id"
  553. DETAIL: Key (resourcebase_ptr_id)=(90) is not present in table "base_resourcebase".
  554.  
  555. WARNING: No valid fixture data found for 'documents'.
  556. Deserializing /tmp/restore/2017-05-26_051407/tags.json
  557. Installed 2 object(s) from 1 fixture(s)
  558. Media Files Restored into '/var/www/geonode/uploaded'.
  559. Static Root Restored into '/var/www/geonode/static/'.
  560. Static Root Restored into '/var/www/geonode/static/'.
  561. Reactivating GeoNode Signals...
  562. ...done!
  563. Traceback (most recent call last):
  564. File "manage.py", line 11, in <module>
  565. execute_from_command_line(sys.argv)
  566. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
  567. utility.execute()
  568. File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute
  569. self.fetch_command(subcommand).run_from_argv(self.argv)
  570. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv
  571. self.execute(*args, **cmd_options)
  572. File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
  573. output = self.handle(*args, **options)
  574. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py", line 287, in handle
  575. static_files_folder)
  576. File "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py", line 203, in copy_tree
  577. for item in os.listdir(src):
  578. 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