[GeoNode-devel] [GeoNode-users] updatelayers not working: NoneType object has no attribute find

Jeffrey Johnson ortelius at gmail.com
Mon Oct 26 09:34:13 PDT 2015


Florian,

Can you add your stack trace to the ticket and re-open?

Jeff

On Mon, Oct 26, 2015 at 2:44 AM, Florian Hoedt <florian.hoedt at hs-owl.de> wrote:
> Hello List,
> Seems like this error still is present:
> https://github.com/GeoNode/geonode/issues/869
>
> I have created and deleted a lot of datastores in GeoServer (still learning) and after beeing happy with my aerials tried to:
> sudo geonode updatelayers --skip-geonode-registered
>
> which gave me:
> --
> Traceback (most recent call last):
>   File "/usr/bin/django-admin", line 5, in <module>
>     management.execute_from_command_line()
>   File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
>     utility.execute()
>   File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, 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 242, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
>     output = self.handle(*args, **options)
>   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/management/commands/updatelayers.py", line 108, in handle
>     remove_deleted=remove_deleted)
>   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 458, in gs_slurp
>     "bbox_y1": Decimal(resource.latlon_bbox[3])
>   File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 154, in get_or_create
>     return self.get_queryset().get_or_create(**kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/modeltranslation/manager.py", line 341, 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 383, in get_or_create
>     obj.save(force_insert=True, using=self.db)
>   File "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line 90, in save
>     return super(PolymorphicModel, self).save(*args, **kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save
>     force_update=force_update, update_fields=update_fields)
>   File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 582, in save_base
>     update_fields=update_fields, raw=raw, using=using)
>   File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send
>     response = receiver(signal=self, sender=sender, **named)
>   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/signals.py", line 470, in geoserver_post_save
>     set_styles(instance, gs_catalog)
>   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 777, in set_styles
>     layer.default_style = save_style(default_style)
>   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 792, in save_style
>     style.sld_title = gs_style.sld_title
>   File "/usr/lib/python2.7/dist-packages/geoserver/style.py", line 49, in sld_title
>     title_node = user_style.find("{http://www.opengis.net/sld}Title")
> Exception: ('Failed to process DOP Hx 2014', AttributeError("'NoneType' object has no attribute 'find'",))
> --
>
> I use the raster sld as default renderer. The layer DOP Hx 2014 is an RGB ImageMosaic Datastore.
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users


More information about the geonode-devel mailing list