<div dir="ltr">Thanks,<div><br></div><div>I have removed some layers from geoserver and now the command works fine!<br></div><div><br></div><div>Thanks for your help</div><div><br></div><div>Fede</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-16 16:27 GMT+01:00 Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you correctly access the layer which is causing the problem in GeoNode?<br>
<br>
Try to updatelayers just for one layer to see if it works.<br>
By the way, also saving the layer metadata will update the thumbnail<br>
(at least in master)<br>
<span class="HOEnZb"><font color="#888888"><br>
p<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thu, Nov 16, 2017 at 10:18 AM, Federico Gianoli <<a href="mailto:alpacagis@gmail.com">alpacagis@gmail.com</a>> wrote:<br>
> Thanks Paolo,<br>
><br>
> I ran "geonode updatelayers" without results.<br>
><br>
> The command give me the following message, should I give another command<br>
> before to run updatelayers?<br>
><br>
><br>
><br>
> # geonode updatelayers<br>
><br>
> Inspecting the available layers in GeoServer ...<br>
> Traceback (most recent call last):<br>
>   File "/usr/bin/django-admin", line 21, in <module><br>
>     management.execute_from_<wbr>command_line()<br>
>   File<br>
> "/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py", line<br>
> 354, in execute_from_command_line<br>
>     utility.execute()<br>
>   File<br>
> "/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/__init__.py", line<br>
> 346, in execute<br>
>     self.fetch_command(subcommand)<wbr>.run_from_argv(self.argv)<br>
>   File "/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/base.py",<br>
> line 394, in run_from_argv<br>
>     self.execute(*args, **cmd_options)<br>
>   File "/usr/lib/python2.7/dist-<wbr>packages/django/core/<wbr>management/base.py",<br>
> line 445, in execute<br>
>     output = self.handle(*args, **options)<br>
>   File<br>
> "/usr/local/lib/python2.7/<wbr>dist-packages/geonode/<wbr>geoserver/management/commands/<wbr>updatelayers.py",<br>
> line 119, in handle<br>
>     execute_signals=True)<br>
>   File<br>
> "/usr/local/lib/python2.7/<wbr>dist-packages/geonode/<wbr>geoserver/helpers.py", line<br>
> 439, in gs_slurp<br>
>     resources = [k for k in resources if k.enabled in ["true", True]]<br>
>   File "/usr/lib/python2.7/dist-<wbr>packages/geoserver/support.py"<wbr>, line 67, in<br>
> getter<br>
>     self.fetch()<br>
>   File "/usr/lib/python2.7/dist-<wbr>packages/geoserver/support.py"<wbr>, line 176, in<br>
> fetch<br>
>     self.dom = self.catalog.get_xml(self.<wbr>href)<br>
>   File "/usr/lib/python2.7/dist-<wbr>packages/geoserver/catalog.py"<wbr>, line 214, in<br>
> get_xml<br>
>     return parse_or_raise(content)<br>
>   File "/usr/lib/python2.7/dist-<wbr>packages/geoserver/catalog.py"<wbr>, line 205, in<br>
> parse_or_raise<br>
>     raise Exception(msg, e)<br>
> Exception: ('GeoServer gave non-XML response for [GET<br>
> <a href="http://localhost:8080/geoserver/rest/workspaces/geonode/datastores/datastore/featuretypes/salah_aldin_wells_iraq_unesco_ll_point.xml" rel="noreferrer" target="_blank">http://localhost:8080/<wbr>geoserver/rest/workspaces/<wbr>geonode/datastores/datastore/<wbr>featuretypes/salah_aldin_<wbr>wells_iraq_unesco_ll_point.xml</a><wbr>]:<br>
> <featureType>\n  <name>salah_aldin_wells_iraq_<wbr>unesco_ll_point</name>\n<br>
> <nativeName>salah_aldin_wells_<wbr>iraq_unesco_ll_point</<wbr>nativeName>\n<br>
> <namespace>\n    <name>geonode</name>\n    <atom:link<br>
> xmlns:atom="<a href="http://www.w3.org/2005/Atom" rel="noreferrer" target="_blank">http://www.w3.org/<wbr>2005/Atom</a>" rel="alternate"<br>
> href="<a href="http://localhost:8080/geoserver/rest/namespaces/geonode.xml" rel="noreferrer" target="_blank">http://localhost:8080/<wbr>geoserver/rest/namespaces/<wbr>geonode.xml</a>"<br>
> type="application/xml"/>\n  </namespace>\n<br>
> <title>salah_aldin_wells_iraq_<wbr>unesco_ll_point</title>\n  <keywords>\n<br>
> <string>features</string>\n<br>
> <string>salah_aldin_wells_<wbr>iraq_unesco_ll_point</string>\<wbr>n  </keywords>\n<br>
> <nativeCRS>GEOGCS[&quot;WGS 84&quot;, \n  DATUM[&quot;World Geodetic System<br>
> 1984&quot;, \n    SPHEROID[&quot;WGS 84&quot;, 6378137.0, 298.257223563,<br>
> AUTHORITY[&quot;EPSG&quot;,&<wbr>quot;7030&quot;]], \n<br>
> AUTHORITY[&quot;EPSG&quot;,&<wbr>quot;6326&quot;]], \n<br>
> PRIMEM[&quot;Greenwich&quot;, 0.0,<br>
> AUTHORITY[&quot;EPSG&quot;,&<wbr>quot;8901&quot;]], \n  UNIT[&quot;degree&quot;,<br>
> 0.017453292519943295], \n  AXIS[&quot;Geodetic longitude&quot;, EAST], \n<br>
> AXIS[&quot;Geodetic latitude&quot;, NORTH], \n<br>
> AUTHORITY[&quot;EPSG&quot;,&<wbr>quot;4326&quot;]]</nativeCRS>\<wbr>n<br>
> <srs>EPSG:4326</srs>\n  <nativeBoundingBox>\n<br>
> <minx>43.0292000000001</minx>\<wbr>n    <maxx>44.8967</maxx>\n<br>
> <miny>33.7583000000001</miny>\<wbr>n    <maxy>35.2347000000001</maxy>\<wbr>n<br>
> <crs>EPSG:4326</crs>\n  </nativeBoundingBox>\n  <latLonBoundingBox>\n<br>
> <minx>43.0292000000001</minx>\<wbr>n    <maxx>44.8967</maxx>\n<br>
> <miny>33.7583000000001</miny>\<wbr>n    <maxy>35.2347000000001</maxy>\<wbr>n<br>
> <crs>GEOGCS[&quot;WGS84(DD)&<wbr>quot;, \n  DATUM[&quot;WGS84&quot;, \n<br>
> SPHEROID[&quot;WGS84&quot;, 6378137.0, 298.257223563]], \n<br>
> PRIMEM[&quot;Greenwich&quot;, 0.0], \n  UNIT[&quot;degree&quot;,<br>
> 0.017453292519943295], \n  AXIS[&quot;Geodetic longitude&quot;, EAST], \n<br>
> AXIS[&quot;Geodetic latitude&quot;, NORTH]]</crs>\n  </latLonBoundingBox>\n<br>
> <projectionPolicy>FORCE_<wbr>DECLARED</projectionPolicy>\n<br>
> <enabled>true</enabled>\n  <store class="dataStore">\n<br>
> <name>geonode:datastore</name><wbr>\n    <atom:link<br>
> xmlns:atom="<a href="http://www.w3.org/2005/Atom" rel="noreferrer" target="_blank">http://www.w3.org/<wbr>2005/Atom</a>" rel="alternate"<br>
> href="<a href="http://localhost:8080/geoserver/rest/workspaces/geonode/datastores/datastore.xml" rel="noreferrer" target="_blank">http://localhost:8080/<wbr>geoserver/rest/workspaces/<wbr>geonode/datastores/datastore.<wbr>xml</a>"<br>
> type="application/xml"/>\n  </store>\n  <maxFeatures>0</maxFeatures>\n<br>
> <numDecimals>0</numDecimals>\n<br>
> <overridingServiceSRS>false</<wbr>overridingServiceSRS>\n<br>
> <skipNumberMatched>false</<wbr>skipNumberMatched>\n<br>
> <circularArcPresent>false</<wbr>circularArcPresent>\n  <attributes',<br>
> ParseError(ExpatError('<wbr>unclosed token: line 54, column 2',),))<br>
><br>
><br>
> 2017-11-16 15:48 GMT+01:00 Paolo Corti <<a href="mailto:pcorti@gmail.com">pcorti@gmail.com</a>>:<br>
>><br>
>> Hi Federico<br>
>> updatelayers will regenerate thumbnails for layers.<br>
>> Unfortunately there isn't a solution for maps right now. You can only<br>
>> manually regenerate them by using the "Set thumbnail" button<br>
>> cheers<br>
>> p<br>
>><br>
>> On Thu, Nov 16, 2017 at 7:15 AM, Federico Gianoli <<a href="mailto:alpacagis@gmail.com">alpacagis@gmail.com</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> > I have, maybe a stupid question.<br>
>> > I am using GeoNode 2.6.3.<br>
>> > Is there any way to regenerate all the layers and maps thumbnails?<br>
>> ><br>
>> > Thanks<br>
>> ><br>
>> > Federico<br>
>> ><br>
>> > ______________________________<wbr>_________________<br>
>> > geonode-users mailing list<br>
>> > <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
>> > <a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Paolo Corti<br>
>> Geospatial software developer<br>
>> web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br>
>> twitter: @capooti<br>
>> skype: capooti<br>
><br>
><br>
<br>
<br>
<br>
--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</div></div></blockquote></div><br></div>