<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hi Paolo,
<div dir="auto"><br /></div>
<div dir="auto">I haven’t found the ticket, did you already open it? </div>
</div>
</div>
<div name="messageSignatureSection"><br />
<div dir="auto">Thanks,
<div dir="auto">Francesco</div>
</div>
</div>
<div name="messageReplySection">Il 5 set 2019, 16:42 +0200, Paolo Corti <pcorti@gmail.com>, ha scritto:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">Hi Simone<br />
I tried the reset call from API, it is much faster but unfortunately<br />
it doesn't fix the issue as a reload does.<br />
So at this point the only option is to adopt a more sophisticated<br />
layer naming mechanism, unless this can be fixed at GeoServer level.<br />
I will open a ticket now, thanks for helping with this<br />
Paolo<br />
<br />
On Thu, Sep 5, 2019 at 10:21 AM Paolo Corti <pcorti@gmail.com> wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;"><br />
Hi Simone<br />
I will try the reset and let you know.<br />
I just checked the approach of using a more sophisticated approach to<br />
name a layer, and this is solving the problem.<br />
Right now when uploading a new layer, GeoNode checks if there is<br />
already a layer with the same name in the prefix. If this is the case,<br />
it appends a +1 to the layer name. This create a problem when removing<br />
the layer and reloading it a second time, because for some reason<br />
GeoServer still has that name in same part of the catalog (I believe<br />
the problem is connected with styles catalog, as it raises when<br />
GeoNode tries to create a style for the layer).<br />
If we use a more complex naming mechanism this will be sorted - I just<br />
tried a primitive approach to append a random number to the layer name<br />
and it works.<br />
So, definitely I can create a ticket: we can discuss if we should fix<br />
this at GeoServer lever (cleaner for sure), or at GeoNode level using<br />
a more complex layer naming mechanism<br />
thanks to you, Alessio and GeoSolutions for helping with this!<br />
Paolo<br />
<br />
On Thu, Sep 5, 2019 at 10:10 AM Simone Giannecchini<br />
<simone.giannecchini@geo-solutions.it> wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #3498db;"><br />
Ciao Paolo,<br />
doing a full reload for each layer removal is out of question as it becomes exponentially slower with the number of layers.<br />
<br />
A reset ( https://docs.geoserver.org/stable/en/user/rest/api/reset.html ) can be a quick solution to try.<br />
However, I would want to investigate this further next week with our GeoServer devs.<br />
Do we have an issue for this yet?<br />
<br />
Regards,<br />
Simone Giannecchini<br />
==<br />
GeoServer Professional Services from the experts!<br />
Visit http://bit.ly/gs-services for more information.<br />
==<br />
Ing. Simone Giannecchini<br />
@simogeo<br />
Founder/Director<br />
<br />
GeoSolutions S.A.S.<br />
Via di Montramito 3/A<br />
55054 Massarosa (LU)<br />
Italy<br />
phone: +39 0584 962313<br />
fax: +39 0584 1660272<br />
mob: +39 333 8128928<br />
<br />
http://www.geo-solutions.it<br />
http://twitter.com/geosolutions_it<br />
<br />
-------------------------------------------------------<br />
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.<br />
<br />
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.<br />
<br />
<br />
On Thu, Sep 5, 2019 at 4:02 PM Paolo Corti <pcorti@gmail.com> wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #d35400;"><br />
can I do that just from API or is there a tool in GS admin site like for reload?<br />
<br />
On Thu, Sep 5, 2019 at 9:55 AM Alessio Fabiani<br />
<alessio.fabiani@geo-solutions.it> wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #34495e;"><br />
Also, maybe just try a reset instead of a reload.<br />
<br />
Moreover, is this problem related to raster data too?<br />
<br />
Il giorno gio 5 set 2019 alle ore 15:49 Alessio Fabiani <alessio.fabiani@geo-solutions.it> ha scritto:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #2ecc71;"><br />
Uhm, might be a problem if you have thousands of layers on GeoServer. We need to be careful hitting the catalog reload everytime.<br />
<br />
Do you have the chance to try a reload with a huge GeoServer catalog?<br />
<br />
Il giorno gio 5 set 2019 alle ore 15:45 Paolo Corti <pcorti@gmail.com> ha scritto:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #9b59b6;"><br />
Hi Alessio<br />
reloading the catalog seems to have fixed it. Maybe we should reload<br />
the catalog after a layer remove? (I thought it is already the case)<br />
thanks<br />
Paolo<br />
<br />
On Thu, Sep 5, 2019 at 9:35 AM Alessio Fabiani<br />
<alessio.fabiani@geo-solutions.it> wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e74c3c;"><br />
It looks something related to GeoServer catalog.<br />
<br />
Could you try if just reloading it, instead of restarting GeoServer, also works?<br />
<br />
Il giorno gio 5 set 2019 alle ore 15:31 Paolo Corti <pcorti@gmail.com> ha scritto:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;"><br />
Dear Alessio<br />
<br />
unfortunately this doesn't appear to be helpful. My idea is that there<br />
is something wrong in authorization from GeoFence.<br />
<br />
Here is what happening:<br />
* Restart GeoServer<br />
* First layer upload works correctly<br />
* I then remove the layer and I upload it again<br />
* I get the error. Checkin in GeoServer log I see:<br />
<br />
2019-09-05 13:25:39,175 ERROR [geoserver.rest] - No such datastore:<br />
geonode,rivers<br />
org.geoserver.rest.ResourceNotFoundException 404 NOT_FOUND: No such<br />
datastore: geonode,rivers<br />
<br />
Restarting GeoServer will fix this.<br />
This is happening in a GeoNode project, let me see if I can experience<br />
the same locally.<br />
<br />
ps: I have seen your PR with the changes in gsconfig, I believe anyway<br />
that they are useful, will merge it as soon as build is finalized.<br />
thanks for helping with this<br />
Paolo<br />
<br />
On Thu, Sep 5, 2019 at 8:56 AM Alessio Fabiani<br />
<alessio.fabiani@geo-solutions.it> wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;"><br />
@Paolo any chanche to test the update of the library<br />
<br />
(maybe be sure you first removed completely the old one, gsconfig)<br />
<br />
pip install geoserver-restconfig==1.0.3<br />
<br />
<br />
<br />
Il giorno mer 4 set 2019 alle ore 23:11 Paolo Corti <pcorti@gmail.com> ha scritto:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #3498db;"><br />
Looking in the GeoServer log, it appears that GeoNode upload fails to<br />
create the style (and then the layer) in step 7 because it cannot find<br />
the newly created GeoServer layer (even if this was already created at<br />
step 4 in the upload process). This is the error I see in GeoServer:<br />
<br />
2019-09-04 21:05:42,632 ERROR [geoserver.rest] - No such layer: geonode:rivers<br />
org.geoserver.rest.ResourceNotFoundException 404 NOT_FOUND: No such<br />
layer: geonode:rivers<br />
<br />
That looks like a regression? Or some configuration which is not correct?<br />
In my case I am using DELAYED_SECURITY_SIGNAL set to True.<br />
<br />
thanks<br />
Paolo<br />
<br />
On Wed, Sep 4, 2019 at 5:01 PM Paolo Corti <pcorti@gmail.com> wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #d35400;"><br />
Hi devs<br />
<br />
I am experiencing the following issue on an instance using GeoNode<br />
master from a GeoNode project and PostGIS as a datastore. When<br />
uploading a layer, I see the following<br />
error message:<br />
<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #34495e;">
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #2ecc71;">
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #9b59b6;">Step 7. Creating style for [rivers]<br /></blockquote>
</blockquote>
</blockquote>
Traceback (most recent call last):<br />
File "/home/ubuntu/geonode/geonode/geoserver/helpers.py", line 246,<br />
in get_sld_for<br />
_default_style = layer.default_style<br />
AttributeError: 'FeatureType' object has no attribute 'default_style'<br />
Traceback (most recent call last):<br />
File "/home/ubuntu/geonode/geonode/geoserver/helpers.py", line 255,<br />
in get_sld_for<br />
name = gs_layer.default_style.name if gs_layer.default_style is<br />
not None else "raster"<br />
AttributeError: 'NoneType' object has no attribute 'default_style'<br />
<br />
after that, the layer is created in Django but not in GeoServer. Any<br />
hint why this could be happening before I debug it on my own?<br />
<br />
I noticed that after restarting GeoServer the layer is again uploaded correctly.<br />
Paolo<br />
<br />
--<br />
Paolo Corti<br />
Geospatial software developer<br />
web: http://www.paolocorti.net<br />
twitter: @capooti<br />
skype: capooti<br />
#drt3jc1<br /></blockquote>
<br />
<br />
<br />
--<br />
Paolo Corti<br />
Geospatial software developer<br />
web: http://www.paolocorti.net<br />
twitter: @capooti<br />
skype: capooti<br />
#drt3jc1<br />
_______________________________________________<br />
geonode-devel mailing list<br />
geonode-devel@lists.osgeo.org<br />
https://lists.osgeo.org/mailman/listinfo/geonode-devel<br /></blockquote>
<br />
<br />
<br />
--<br />
<br />
==<br />
<br />
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.<br />
==<br />
Ing. Alessio Fabiani<br />
<br />
@alfa7691<br />
Founder/Technical Lead<br />
<br />
<br />
GeoSolutions S.A.S.<br />
Via di Montramito 3/A - 55054 Massarosa (LU) - Italy<br />
phone: +39 0584 962313<br />
fax: +39 0584 1660272<br />
mob: +39 331 6233686<br />
<br />
<br />
http://www.geo-solutions.it<br />
http://twitter.com/geosolutions_it<br />
-------------------------------------------------------<br />
<br />
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.<br />
<br />
<br />
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.<br /></blockquote>
<br />
<br />
<br />
--<br />
Paolo Corti<br />
Geospatial software developer<br />
web: http://www.paolocorti.net<br />
twitter: @capooti<br />
skype: capooti<br />
#drt3jc1<br /></blockquote>
<br />
<br />
<br />
--<br />
<br />
==<br />
<br />
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.<br />
==<br />
Ing. Alessio Fabiani<br />
<br />
@alfa7691<br />
Founder/Technical Lead<br />
<br />
<br />
GeoSolutions S.A.S.<br />
Via di Montramito 3/A - 55054 Massarosa (LU) - Italy<br />
phone: +39 0584 962313<br />
fax: +39 0584 1660272<br />
mob: +39 331 6233686<br />
<br />
<br />
http://www.geo-solutions.it<br />
http://twitter.com/geosolutions_it<br />
-------------------------------------------------------<br />
<br />
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.<br />
<br />
<br />
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.<br /></blockquote>
<br />
<br />
<br />
--<br />
Paolo Corti<br />
Geospatial software developer<br />
web: http://www.paolocorti.net<br />
twitter: @capooti<br />
skype: capooti<br />
#drt3jc1<br /></blockquote>
<br />
<br />
<br />
--<br />
<br />
==<br />
<br />
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.<br />
==<br />
Ing. Alessio Fabiani<br />
<br />
@alfa7691<br />
Founder/Technical Lead<br />
<br />
<br />
GeoSolutions S.A.S.<br />
Via di Montramito 3/A - 55054 Massarosa (LU) - Italy<br />
phone: +39 0584 962313<br />
fax: +39 0584 1660272<br />
mob: +39 331 6233686<br />
<br />
<br />
http://www.geo-solutions.it<br />
http://twitter.com/geosolutions_it<br />
-------------------------------------------------------<br />
<br />
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.<br />
<br />
<br />
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.<br /></blockquote>
<br />
<br />
<br />
--<br />
<br />
==<br />
<br />
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.<br />
==<br />
Ing. Alessio Fabiani<br />
<br />
@alfa7691<br />
Founder/Technical Lead<br />
<br />
<br />
GeoSolutions S.A.S.<br />
Via di Montramito 3/A - 55054 Massarosa (LU) - Italy<br />
phone: +39 0584 962313<br />
fax: +39 0584 1660272<br />
mob: +39 331 6233686<br />
<br />
<br />
http://www.geo-solutions.it<br />
http://twitter.com/geosolutions_it<br />
-------------------------------------------------------<br />
<br />
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.<br />
<br />
<br />
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.<br /></blockquote>
<br />
<br />
<br />
--<br />
Paolo Corti<br />
Geospatial software developer<br />
web: http://www.paolocorti.net<br />
twitter: @capooti<br />
skype: capooti<br />
#drt3jc1<br />
_______________________________________________<br />
geonode-devel mailing list<br />
geonode-devel@lists.osgeo.org<br />
https://lists.osgeo.org/mailman/listinfo/geonode-devel<br /></blockquote>
</blockquote>
<br />
<br />
<br />
--<br />
Paolo Corti<br />
Geospatial software developer<br />
web: http://www.paolocorti.net<br />
twitter: @capooti<br />
skype: capooti<br />
#drt3jc1<br /></blockquote>
<br />
<br />
<br />
--<br />
Paolo Corti<br />
Geospatial software developer<br />
web: http://www.paolocorti.net<br />
twitter: @capooti<br />
skype: capooti<br />
#drt3jc1<br />
_______________________________________________<br />
geonode-devel mailing list<br />
geonode-devel@lists.osgeo.org<br />
https://lists.osgeo.org/mailman/listinfo/geonode-devel<br /></blockquote>
</div>
</body>
</html>