[GeoNode-users] geonode 2.8 updatelayers error

Alessio Fabiani alessio.fabiani at geo-solutions.it
Wed Apr 11 09:10:58 PDT 2018

this issue has been fixed on master branch (future 2.8.1 version).

For a quick fix just do

vim  /usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py

-- go to line  614


    "srid": resource.srid


    "srid": resource.projection


Alessio Fabiani

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

Ing. Alessio Fabiani

Founder/Technical Lead

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




Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

2018-04-11 18:02 GMT+02:00 Andres Juarez <albertoandres.juarez at gmail.com>:

> Hello everyone
> I just installed stable version 2.8 using APT in Ubuntu 16.04 also newly
> installed. Geonode works and I can load layers, edit metadata, etc.
> I have found two problems, perhaps related:
> 1- When viewing the layer information, the preview takes me to an
> erroneous extension, however if I look for the location manually the layer
> looks correct. The same happens when creating a map with any layer.
> 2- I have connected in geoserver another postgis database and published
> several layers. When executing "updatelayers" it shows me the following
> error:
> Traceback (most recent call last):
>   File "/usr/bin/django-admin", line 9, in <module>
>     load_entry_point('Django==1.8.19', 'console_scripts',
> 'django-admin')()
>   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/
> geoserver/management/commands/updatelayers.py", line 122, in handle
>     execute_signals=True)
>   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py",
> line 614, in gs_slurp
>     "srid": resource.srid
> Exception: ('Failed to process ancho_calle', AttributeError("'FeatureType'
> object has no attribute 'srid'",))
> The same happens with the layers loaded by the Geonode interface, it shows
> the same error.
> What can I do to solve it?
> Greetings and thanks in advance.
> --
>    Andrés Juarez
> _______________________________________________
> 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/20180411/2a162023/attachment-0001.html>

More information about the geonode-users mailing list