[GeoNode-users] Recurring User 'None' Error Geofence/Geoserver
Michael Fedak
mikefedak at gmail.com
Fri Oct 12 15:02:57 PDT 2018
Also happens when I try sync_geofence:
('Unexpected error:', <type 'exceptions.RuntimeError'>)
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']}}
Interestingly enough; fix_geofence_rules fails for all of the layers where
sync_geofence works.
On Fri, Oct 12, 2018 at 3:12 PM Paolo Corti <pcorti at gmail.com> wrote:
> I am getting exactly the same error, using master and GeoServer
> 2.13-SNAPSHOT
> In the stack I also see "Could not retrieve GeoFence Rules count."
> best
> Paolo
> On Fri, Oct 12, 2018 at 1:11 PM Michael Fedak <mikefedak at gmail.com> wrote:
> >
> > 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).
> >
> > 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.
> >
> >
> > Traceback (most recent call last):
> > File "manage.py", line 29, in <module>
> > execute_from_command_line(sys.argv)
> > File
> "/home/gnode/gndev/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 354, in execute_from_command_line
> > utility.execute()
> > File
> "/home/gnode/gndev/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 346, in execute
> > self.fetch_command(subcommand).run_from_argv(self.argv)
> > File
> "/home/gnode/gndev/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 394, in run_from_argv
> > self.execute(*args, **cmd_options)
> > File
> "/home/gnode/gndev/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 445, in execute
> > output = self.handle(*args, **options)
> > File
> "/home/gnode/geonode_dev/geonode/geonode/geoserver/management/commands/updatelayers.py",
> line 124, in handle
> > execute_signals=True)
> > File "/home/gnode/geonode_dev/geonode/geonode/geoserver/helpers.py",
> line 636, in gs_slurp
> > layer.set_permissions(perm_spec)
> > File "/home/gnode/geonode_dev/geonode/geonode/security/models.py",
> line 216, in set_permissions
> > sync_geofence_with_guardian(self.layer, perms, group=group)
> > File "/home/gnode/geonode_dev/geonode/geonode/decorators.py", line 44,
> in wrapper
> > return func(*args, **kwargs)
> > File "/home/gnode/geonode_dev/geonode/geonode/security/utils.py", line
> 393, in sync_geofence_with_guardian
> > _update_geofence_rule(layer.name, layer.workspace, service)
> > File "/home/gnode/geonode_dev/geonode/geonode/security/utils.py", line
> 564, in _update_geofence_rule
> > raise RuntimeError(msg)
> > Exception: ('Failed to process lprca_ws_boundarywgs84',
> RuntimeError("Could not ADD GeoServer User None Rule for Layer
> u'lprca_ws_boundarywgs84'",))
> > _______________________________________________
> > geonode-users mailing list
> > geonode-users at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181012/301f3260/attachment.html>
More information about the geonode-users
mailing list