Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Layer NOT shown in Geonode

A layer is displayed in Geonode when admin is logged in GeoServer. When the admin logs off in GeoServer the layer is not displayed in Geonode.

enter image description here

It seems like oauth configuration of geoserver-geonode is not done properly (the default settings are not changed) which I am not able to solve.

The geoserver log shows errors/exceptions as follows:

ERROR [geoserver.ows] - 
org.geoserver.platform.ServiceException: Could not find layer geonode:nepalNationalParks
.
.
WARN [geofence.cache] - org.geoserver.geofence.cache.CachedRuleReader$NoAuthException: Can't auth user [admin]
WARN [geoserver.security] - Failed login, user admin from 192.168.10.66

My System Configuration is GeoNode 3.1.0 , GeoServer 2.16.2 installed on Ubuntu 18.04. The larger log file is here.

Thank You.

like image 331
bdur Avatar asked Jun 16 '26 17:06

bdur


1 Answers

I think you need to add new geofench rule from GeoFence Data Rules menu (GeoFence Data Rules>>Add new rule>>) as below,

Priority: 0
Role: *
Username: *
Service: *
Request: *
Workspace: *
Layer: *
Access: ALLOW

Or you can apply the required role for specific serice, workspace, or layer by just changing the parameter.

like image 115
Tekson Avatar answered Jun 20 '26 23:06

Tekson