<div dir="ltr"><div dir="ltr">Also happens when I try sync_geofence:<div><br></div><div><div>('Unexpected error:', <type 'exceptions.RuntimeError'>)</div><div>perm_spec is {u'users': {u'AnonymousUser': [u'view_resourcebase', u'download_resourcebase'], u'lprca': [u'view_resourcebase', u'download_resourcebase', u'change_resourcebase_metadata', u'change_resourcebase', u'delete_resourcebase', u'change_resourcebase_permissions', u'publish_resourcebase', u'change_layer_data', u'change_layer_style']}, u'groups': {u'anonymous': [u'view_resourcebase', u'download_resourcebase']}}</div></div><div><br></div><div>Interestingly enough; fix_geofence_rules fails for all of the layers where sync_geofence works. </div><div><br></div><div><br></div></div></div><div dir="ltr"><div dir="ltr"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 12, 2018 at 3:12 PM Paolo Corti <<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am getting exactly the same error, using master and GeoServer 2.13-SNAPSHOT<br>
In the stack I also see "Could not retrieve GeoFence Rules count."<br>
best<br>
Paolo<br>
On Fri, Oct 12, 2018 at 1:11 PM Michael Fedak <<a href="mailto:mikefedak@gmail.com" target="_blank">mikefedak@gmail.com</a>> wrote:<br>
><br>
> I am using the latest 2.8.x branch with Geoserver 2.12.2 and I keep receiving the following error when attempting to run the updatelayers command (Below).<br>
><br>
> I am also having trouble with users not being sync'd with geoserver. I have gone through the documentation for security configuration, and checked that the geonode role/user apis are accessible to geoserver. As far as I can tell, nothing is blocking either geonode from reaching geofence or vice-versa.<br>
><br>
><br>
> Traceback (most recent call last):<br>
> File "manage.py", line 29, in <module><br>
> execute_from_command_line(sys.argv)<br>
> File "/home/gnode/gndev/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line<br>
> utility.execute()<br>
> File "/home/gnode/gndev/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute<br>
> self.fetch_command(subcommand).run_from_argv(self.argv)<br>
> File "/home/gnode/gndev/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv<br>
> self.execute(*args, **cmd_options)<br>
> File "/home/gnode/gndev/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute<br>
> output = self.handle(*args, **options)<br>
> File "/home/gnode/geonode_dev/geonode/geonode/geoserver/management/commands/updatelayers.py", line 124, in handle<br>
> execute_signals=True)<br>
> File "/home/gnode/geonode_dev/geonode/geonode/geoserver/helpers.py", line 636, in gs_slurp<br>
> layer.set_permissions(perm_spec)<br>
> File "/home/gnode/geonode_dev/geonode/geonode/security/models.py", line 216, in set_permissions<br>
> sync_geofence_with_guardian(self.layer, perms, group=group)<br>
> File "/home/gnode/geonode_dev/geonode/geonode/decorators.py", line 44, in wrapper<br>
> return func(*args, **kwargs)<br>
> File "/home/gnode/geonode_dev/geonode/geonode/security/utils.py", line 393, in sync_geofence_with_guardian<br>
> _update_geofence_rule(<a href="http://layer.name" rel="noreferrer" target="_blank">layer.name</a>, layer.workspace, service)<br>
> File "/home/gnode/geonode_dev/geonode/geonode/security/utils.py", line 564, in _update_geofence_rule<br>
> raise RuntimeError(msg)<br>
> Exception: ('Failed to process lprca_ws_boundarywgs84', RuntimeError("Could not ADD GeoServer User None Rule for Layer u'lprca_ws_boundarywgs84'",))<br>
> _______________________________________________<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>
<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>
</blockquote></div>