[GeoNode-users] Error on updatelayers
Abel Quesi
aquesi at itssaconsulting.com
Mon Jan 7 08:29:23 PST 2019
Hi Stefan, haw are u?
Yes, that had already tried but it does not work either.
Simply that option does not show me the error.
That's why I put the error detail
geo at geonode-ubuntu:~/geonode$ python manage.py updatelayers --ignore-errors
Inspecting the available layers in GeoServer ...
Found 2 layers, starting processing
Could not retrieve GeoFence Rules count.
Could not retrieve GeoFence Rules count.
[failed] Layer parcelas0 (1/2)
Could not retrieve GeoFence Rules count.
Could not retrieve GeoFence Rules count.
[failed] Layer v_inmuebles (2/2)
Finished processing 2 layers in 2.0 seconds.
0 Created layers
0 Updated layers
2 Failed layers
1.000000 seconds per layer
Thank you
Regards
Abel Quesi
[its] Information Technology & Services
Mariano Moreno 746 Cuerpo 2 1° “A”– Lujan (CP: 6700) Buenos Aires – Argentina
+54-2323-435160 / 61 – Fax: +54-2323-435161
aquesi at itssaconsulting.com - www.itssaconsulting.com
Descripción: Descripción: C:\Users\aquesi\Documents\ISO_veritas_1.jpg
_____
Este mensaje y sus adjuntos son confidenciales y de uso exclusivo para el usuario de la dirección de correo electrónico a quien esta dirigido. Puede contener información amparada por el secreto profesional. Si hubiese recibido este mensaje por error, por favor informe tal situación al emisor, devolviéndole el correo electrónico y eliminándolo de su sistema, no pudiendo en tal caso copiar, enviar, revelar el contenido o utilizar alguna parte de este mensaje o de sus adjuntos. No se garantiza la seguridad o la exactitud de las comunicaciones por Internet debido a que la información puede ser interceptada, modificada, perdida, llegar tarde o contener virus. El emisor, por lo tanto, no acepta responsabilidad por errores u omisiones en el texto de este mensaje que surjan a partir de una transmisión por Internet.
_____
De: Stefan Steiniger [mailto:ssteiniger at uc.cl]
Enviado el: sábado, 05 de enero de 2019 09:26 a.m.
Para: aquesi at itssaconsulting.com
Asunto: Re: [GeoNode-users] Error on updatelayers
Exactly as it says:
python manage.py updatelayers --ignore-errors
Stefan
On Fri, Jan 4, 2019, 16:26 Abel Quesi <aquesi at itssaconsulting.com wrote:
Hi!
I created a layer in geoserver from postgis. And it's work.
But when I execute python manage.py updatelayers I have this error
geo at geonode-ubuntu:~/geonode$ python manage.py updatelayers
Inspecting the available layers in GeoServer ...
Found 1 layers, starting processing
Could not retrieve GeoFence Rules count.
Could not retrieve GeoFence Rules count.
Stopping process because --ignore-errors was not set and an error was found.
Traceback (most recent call last):
File "manage.py", line 29, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/local/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/local/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/home/geo/geonode/geonode/geoserver/management/commands/updatelayers.py", line 124, in handle
execute_signals=True)
File "/home/geo/geonode/geonode/geoserver/helpers.py", line 632, in gs_slurp
"srid": resource.projection
File "/usr/local/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/modeltranslation/manager.py", line 389, in get_or_create
return super(MultilingualQuerySet, self).get_or_create(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 407, in get_or_create
return self._create_object_from_params(lookup, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 439, in _create_object_from_params
obj = self.create(**params)
File "/usr/lib/python2.7/dist-packages/modeltranslation/manager.py", line 381, in create
return super(MultilingualQuerySet, self).create(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 348, in create
obj.save(force_insert=True, using=self.db)
File "/usr/lib/python2.7/dist-packages/polymorphic/models.py", line 74, in save
return super(PolymorphicModel, self).save(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 734, in save
force_update=force_update, update_fields=update_fields)
File "/usr/local/lib/python2.7/dist-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/dist-packages/django/dispatch/dispatcher.py", line 189, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/geo/geonode/geonode/catalogue/models.py", line 60, in catalogue_post_save
record = catalogue.get_record(instance.uuid)
File "/home/geo/geonode/geonode/catalogue/backends/pycsw_local.py", line 75, in get_record
results = self._csw_local_dispatch(identifier=uuid)
File "/home/geo/geonode/geonode/catalogue/backends/pycsw_local.py", line 174, in _csw_local_dispatch
response = csw.dispatch()
File "/usr/lib/python2.7/dist-packages/pycsw/server.py", line 577, in dispatch
self.response = self.iface.getrecordbyid()
File "/usr/lib/python2.7/dist-packages/pycsw/ogc/csw/csw2.py", line 1042, in getrecordbyid
results = self.parent.repository.query_ids(self.parent.kvp['id'])
Exception: ('Failed to process v_inmuebles', AttributeError("'Csw' object has no attribute 'repository'",))
How can I solve it?
Thank you!
Abel Quesi
[its] Information Technology & Services
Mariano Moreno 746 Cuerpo 2 1° “A”– Lujan (CP: 6700) Buenos Aires – Argentina
+54-2323-435160 / 61 – Fax: +54-2323-435161
aquesi at itssaconsulting.com - www.itssaconsulting.com
Descripción: Descripción: C:\Users\aquesi\Documents\ISO_veritas_1.jpg
_____
Este mensaje y sus adjuntos son confidenciales y de uso exclusivo para el usuario de la dirección de correo electrónico a quien esta dirigido. Puede contener información amparada por el secreto profesional. Si hubiese recibido este mensaje por error, por favor informe tal situación al emisor, devolviéndole el correo electrónico y eliminándolo de su sistema, no pudiendo en tal caso copiar, enviar, revelar el contenido o utilizar alguna parte de este mensaje o de sus adjuntos. No se garantiza la seguridad o la exactitud de las comunicaciones por Internet debido a que la información puede ser interceptada, modificada, perdida, llegar tarde o contener virus. El emisor, por lo tanto, no acepta responsabilidad por errores u omisiones en el texto de este mensaje que surjan a partir de una transmisión por Internet.
_____
_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geonode-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190107/ee4b9508/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5894 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190107/ee4b9508/attachment-0001.jpg>
More information about the geonode-users
mailing list