<div dir="ltr">Maybe your default style for that layer is set to the wrong one. Did you check what is the default style for that layer in GeoServer?<br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Mar 6, 2018 at 2:54 AM Franklin, Chris - Perth. <<a href="mailto:CFranklin@rml.com.au">CFranklin@rml.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-AU" link="#0563C1" vlink="#954F72">
<div class="m_370104716211340238WordSection1">
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Arial",sans-serif">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Arial",sans-serif">Im running Geonode 2.4 on windows 2012 r2, I now get this error message when running the
</span>python manage.py updatelayers<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal">(geonode-2.4.x) C:\GeoNode-2.4.x\geonode-2.4.x>python manage.py updatelayers<u></u><u></u></p>
<p class="MsoNormal">[updated] Layer Basemaps_Bibiani_50cm_z30n_UTM_WGS84_CIR-2018-02-23.ERS (1/46)<u></u><u></u></p>
<p class="MsoNormal">[updated] Layer Basemaps_Bibiani_50cm_z30n_UTM_WGS84_RGB-2018-02-23.ERS (2/46)<u></u><u></u></p>
<p class="MsoNormal">[updated] Layer RAV_ENV_locations (3/46)<u></u><u></u></p>
<p class="MsoNormal">[updated] Layer a__1290linesNEW (4/46)<u></u><u></u></p>
<p class="MsoNormal">[updated] Layer Boscut_Area_Plan (5/46)<u></u><u></u></p>
<p class="MsoNormal">Stopping process because --ignore-errors was not set and an error was found.<u></u><u></u></p>
<p class="MsoNormal">Traceback (most recent call last):<u></u><u></u></p>
<p class="MsoNormal"> File "manage.py", line 28, in <module><u></u><u></u></p>
<p class="MsoNormal"> execute_from_command_line(sys.argv)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\django\core\management\<u></u><u></u></p>
<p class="MsoNormal">__init__.py", line 399, in execute_from_command_line<u></u><u></u></p>
<p class="MsoNormal"> utility.execute()<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\django\core\management\<u></u><u></u></p>
<p class="MsoNormal">__init__.py", line 392, in execute<u></u><u></u></p>
<p class="MsoNormal"> self.fetch_command(subcommand).run_from_argv(self.argv)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\django\core\management\<u></u><u></u></p>
<p class="MsoNormal">base.py", line 242, in run_from_argv<u></u><u></u></p>
<p class="MsoNormal"> self.execute(*args, **options.__dict__)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\django\core\management\<u></u><u></u></p>
<p class="MsoNormal">base.py", line 285, in execute<u></u><u></u></p>
<p class="MsoNormal"> output = self.handle(*args, **options)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\geonode\geoserver\management\commands\upd<u></u><u></u></p>
<p class="MsoNormal">atelayers.py", line 108, in handle<u></u><u></u></p>
<p class="MsoNormal"> remove_deleted=remove_deleted)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\geonode\geoserver\helpers.py", line 458,<u></u><u></u></p>
<p class="MsoNormal">in gs_slurp<u></u><u></u></p>
<p class="MsoNormal"> "bbox_y1": Decimal(resource.latlon_bbox[3])<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\django\db\models\manage<u></u><u></u></p>
<p class="MsoNormal">r.py", line 154, in get_or_create<u></u><u></u></p>
<p class="MsoNormal"> return self.get_queryset().get_or_create(**kwargs)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\modeltranslation\manage<u></u><u></u></p>
<p class="MsoNormal">r.py", line 341, in get_or_create<u></u><u></u></p>
<p class="MsoNormal"> return super(MultilingualQuerySet, self).get_or_create(**kwargs)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\django\db\models\query.<u></u><u></u></p>
<p class="MsoNormal">py", line 383, in get_or_create<u></u><u></u></p>
<p class="MsoNormal"> obj.save(force_insert=True, using=self.db)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\polymorphic\polymorphic<u></u><u></u></p>
<p class="MsoNormal">_model.py", line 90, in save<u></u><u></u></p>
<p class="MsoNormal"> return super(PolymorphicModel, self).save(*args, **kwargs)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\django\db\models\base.p<u></u><u></u></p>
<p class="MsoNormal">y", line 545, in save<u></u><u></u></p>
<p class="MsoNormal"> force_update=force_update, update_fields=update_fields)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\django\db\models\base.p<u></u><u></u></p>
<p class="MsoNormal">y", line 582, in save_base<u></u><u></u></p>
<p class="MsoNormal"> update_fields=update_fields, raw=raw, using=using)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\lib\site-packages\django\dispatch\dispatc<u></u><u></u></p>
<p class="MsoNormal">her.py", line 185, in send<u></u><u></u></p>
<p class="MsoNormal"> response = receiver(signal=self, sender=sender, **named)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\geonode\geoserver\signals.py", line 470,<u></u><u></u></p>
<p class="MsoNormal">in geoserver_post_save<u></u><u></u></p>
<p class="MsoNormal"> set_styles(instance, gs_catalog)<u></u><u></u></p>
<p class="MsoNormal"> File "C:\GeoNode-2.4.x\geonode-2.4.x\geonode\geoserver\helpers.py", line 776,<u></u><u></u></p>
<p class="MsoNormal">in set_styles<u></u><u></u></p>
<p class="MsoNormal"> default_style = gs_layer.default_style<u></u><u></u></p>
<p class="MsoNormal">Exception: ('Failed to process boxcut_des201802_3d_decline_line', AttributeError<u></u><u></u></p>
<p class="MsoNormal">("'NoneType' object has no attribute 'default_style'",))<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">(geonode-2.4.x) C:\GeoNode-2.4.x\geonode-2.4.x><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I don’t have a style called boxcut_des201802_3d_decline_line, but do have called boxcut_des201802_3d_decline_polyline, which I use on that layer, the layer work fine, but I can’t run the python manage.py updatelayers<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><?xml version="1.0" encoding="ISO-8859-1"?><u></u><u></u></p>
<p class="MsoNormal"><StyledLayerDescriptor version="1.0.0"<u></u><u></u></p>
<p class="MsoNormal"> xsi:schemaLocation="<a href="http://www.opengis.net/sld" target="_blank">http://www.opengis.net/sld</a> <a href="http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" target="_blank">http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd</a>"<u></u><u></u></p>
<p class="MsoNormal"> xmlns="<a href="http://www.opengis.net/sld" target="_blank">http://www.opengis.net/sld</a>" xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"<u></u><u></u></p>
<p class="MsoNormal"> xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.org/1999/xlink</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> <NamedLayer><u></u><u></u></p>
<p class="MsoNormal"> <Name>boxcut_des201802_3d_decline_polyline</Name><u></u><u></u></p>
<p class="MsoNormal"> <UserStyle><u></u><u></u></p>
<p class="MsoNormal"> <Title>A violet line style</Title><u></u><u></u></p>
<p class="MsoNormal"> <FeatureTypeStyle><u></u><u></u></p>
<p class="MsoNormal"> <Rule><u></u><u></u></p>
<p class="MsoNormal"> <Title>violet line</Title><u></u><u></u></p>
<p class="MsoNormal"> <LineSymbolizer><u></u><u></u></p>
<p class="MsoNormal"> <Stroke><u></u><u></u></p>
<p class="MsoNormal"> <CssParameter name="stroke">#FF0000</CssParameter><u></u><u></u></p>
<p class="MsoNormal"> </Stroke><u></u><u></u></p>
<p class="MsoNormal"> </LineSymbolizer><u></u><u></u></p>
<p class="MsoNormal"> </Rule><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> </FeatureTypeStyle><u></u><u></u></p>
<p class="MsoNormal"> </UserStyle><u></u><u></u></p>
<p class="MsoNormal"> </NamedLayer><u></u><u></u></p>
<p class="MsoNormal"></StyledLayerDescriptor><u></u><u></u></p>
<p class="MsoNormal">Can someone point me in the right direction? <u></u><u></u></p>
</div>
</div>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">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/mailman/listinfo/geonode-users</a><br>
</blockquote></div>