[GeoNode-devel] errors with style creation during layer upload to PostGIS

Alessio Fabiani alessio.fabiani at geo-solutions.it
Thu Sep 5 05:56:24 PDT 2019


@Paolo any chanche to test the update of the library

(maybe be sure you first removed completely the old one, gsconfig)

pip install geoserver-restconfig==1.0.3



Il giorno mer 4 set 2019 alle ore 23:11 Paolo Corti <pcorti at gmail.com> ha
scritto:

> Looking in the GeoServer log, it appears that GeoNode upload fails to
> create the style (and then the layer) in step 7 because it cannot find
> the newly created GeoServer layer (even if this was already created at
> step 4 in the upload process). This is the error I see in GeoServer:
>
> 2019-09-04 21:05:42,632 ERROR [geoserver.rest] - No such layer:
> geonode:rivers
> org.geoserver.rest.ResourceNotFoundException 404 NOT_FOUND: No such
> layer: geonode:rivers
>
> That looks like a regression? Or some configuration which is not correct?
> In my case I am using DELAYED_SECURITY_SIGNAL set to True.
>
> thanks
> Paolo
>
> On Wed, Sep 4, 2019 at 5:01 PM Paolo Corti <pcorti at gmail.com> wrote:
> >
> > Hi devs
> >
> > I am experiencing the following issue on an instance using GeoNode
> > master from a GeoNode project and PostGIS as a datastore. When
> > uploading a layer, I see the following
> > error message:
> >
> > >>> Step 7. Creating style for [rivers]
> > Traceback (most recent call last):
> >   File "/home/ubuntu/geonode/geonode/geoserver/helpers.py", line 246,
> > in get_sld_for
> >     _default_style = layer.default_style
> > AttributeError: 'FeatureType' object has no attribute 'default_style'
> > Traceback (most recent call last):
> >   File "/home/ubuntu/geonode/geonode/geoserver/helpers.py", line 255,
> > in get_sld_for
> >     name = gs_layer.default_style.name if gs_layer.default_style is
> > not None else "raster"
> > AttributeError: 'NoneType' object has no attribute 'default_style'
> >
> > after that, the layer is created in Django but not in GeoServer. Any
> > hint why this could be happening before I debug it on my own?
> >
> > I noticed that after restarting GeoServer the layer is again uploaded
> correctly.
> > Paolo
> >
> > --
> > Paolo Corti
> > Geospatial software developer
> > web: http://www.paolocorti.net
> > twitter: @capooti
> > skype: capooti
> > #drt3jc1
>
>
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
> #drt3jc1
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>


-- 

==

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

@alfa7691
Founder/Technical Lead


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


http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.


This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190905/28c07ac1/attachment-0001.html>


More information about the geonode-devel mailing list