Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/geonode/layers/views.py", line 1247, in layer_replace charset=form.cleaned_data["charset"], File "/usr/local/lib/python2.7/site-packages/geonode/layers/utils.py", line 650, in file_upload layer.save() File "/usr/local/lib/python2.7/site-packages/polymorphic/models.py", line 82, in save return super(PolymorphicModel, self).save(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 734, in save force_update=force_update, update_fields=update_fields) File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 771, in save_base update_fields=update_fields, raw=raw, using=using) File "/usr/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 189, in send response = receiver(signal=self, sender=sender, **named) File "/usr/local/lib/python2.7/site-packages/geonode/decorators.py", line 44, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/geonode/geoserver/signals.py", line 92, in geoserver_post_save producer.geoserver_upload_layer(payload) File "", line 2, in geoserver_upload_layer File "/usr/local/lib/python2.7/site-packages/geonode/messaging/producer.py", line 71, in sync_if_local_memory worker.run(timeout=broker_socket_timeout) File "/usr/local/lib/python2.7/site-packages/kombu/mixins.py", line 170, in run for _ in self.consume(limit=None, **kwargs): File "/usr/local/lib/python2.7/site-packages/kombu/mixins.py", line 192, in consume conn.drain_events(timeout=safety_interval) File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 301, in drain_events return self.transport.drain_events(self.connection, **kwargs) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 961, in drain_events get(self._deliver, timeout=timeout) File "/usr/local/lib/python2.7/site-packages/kombu/utils/scheduling.py", line 56, in get return self.fun(resource, callback, **kwargs) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 999, in _drain_channel return channel.drain_events(callback=callback, timeout=timeout) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 745, in drain_events return self._poll(self.cycle, callback, timeout=timeout) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 402, in _poll return cycle.get(callback) File "/usr/local/lib/python2.7/site-packages/kombu/utils/scheduling.py", line 56, in get return self.fun(resource, callback, **kwargs) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 406, in _get_and_deliver callback(message, queue) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 981, in _deliver callback(message) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 633, in _callback return callback(message) File "/usr/local/lib/python2.7/site-packages/kombu/messaging.py", line 624, in _receive_callback return on_m(message) if on_m else self.receive(decoded, message) File "/usr/local/lib/python2.7/site-packages/kombu/messaging.py", line 590, in receive [callback(body, message) for callback in callbacks] File "/usr/local/lib/python2.7/site-packages/geonode/messaging/consumer.py", line 104, in on_geoserver_messages geoserver_post_save_local(layer) File "/usr/local/lib/python2.7/site-packages/geonode/geoserver/signals.py", line 348, in geoserver_post_save_local link_type='original', File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 405, in get_or_create return self.get(**lookup), False File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 338, in get (self.model._meta.object_name, num) MultipleObjectsReturned: get() returned more than one Link -- it returned 2!
I am substituting raster layers for EQ- GLOBAL - GAR17. The procedure went fine for 4 layers, one layer (https://www.geonode-gfdrrlab.org/layers/hazard:gar17pga1500) keeps getting me this error:
Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/geonode/layers/views.py", line 1247, in layer_replace charset=form.cleaned_data["charset"], File "/usr/local/lib/python2.7/site-packages/geonode/layers/utils.py", line 650, in file_upload layer.save() File "/usr/local/lib/python2.7/site-packages/polymorphic/models.py", line 82, in save return super(PolymorphicModel, self).save(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 734, in save force_update=force_update, update_fields=update_fields) File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 771, in save_base update_fields=update_fields, raw=raw, using=using) File "/usr/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 189, in send response = receiver(signal=self, sender=sender, **named) File "/usr/local/lib/python2.7/site-packages/geonode/decorators.py", line 44, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/geonode/geoserver/signals.py", line 92, in geoserver_post_save producer.geoserver_upload_layer(payload) File "", line 2, in geoserver_upload_layer File "/usr/local/lib/python2.7/site-packages/geonode/messaging/producer.py", line 71, in sync_if_local_memory worker.run(timeout=broker_socket_timeout) File "/usr/local/lib/python2.7/site-packages/kombu/mixins.py", line 170, in run for _ in self.consume(limit=None, **kwargs): File "/usr/local/lib/python2.7/site-packages/kombu/mixins.py", line 192, in consume conn.drain_events(timeout=safety_interval) File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 301, in drain_events return self.transport.drain_events(self.connection, **kwargs) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 961, in drain_events get(self._deliver, timeout=timeout) File "/usr/local/lib/python2.7/site-packages/kombu/utils/scheduling.py", line 56, in get return self.fun(resource, callback, **kwargs) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 999, in _drain_channel return channel.drain_events(callback=callback, timeout=timeout) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 745, in drain_events return self._poll(self.cycle, callback, timeout=timeout) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 402, in _poll return cycle.get(callback) File "/usr/local/lib/python2.7/site-packages/kombu/utils/scheduling.py", line 56, in get return self.fun(resource, callback, **kwargs) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 406, in _get_and_deliver callback(message, queue) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 981, in _deliver callback(message) File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/base.py", line 633, in _callback return callback(message) File "/usr/local/lib/python2.7/site-packages/kombu/messaging.py", line 624, in _receive_callback return on_m(message) if on_m else self.receive(decoded, message) File "/usr/local/lib/python2.7/site-packages/kombu/messaging.py", line 590, in receive [callback(body, message) for callback in callbacks] File "/usr/local/lib/python2.7/site-packages/geonode/messaging/consumer.py", line 104, in on_geoserver_messages geoserver_post_save_local(layer) File "/usr/local/lib/python2.7/site-packages/geonode/geoserver/signals.py", line 348, in geoserver_post_save_local link_type='original', File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 405, in get_or_create return self.get(**lookup), False File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 338, in get (self.model._meta.object_name, num) MultipleObjectsReturned: get() returned more than one Link -- it returned 2!