Security Geonode中未显示图层

Security Geonode中未显示图层,security,tomcat,oauth,geoserver,geofence,Security,Tomcat,Oauth,Geoserver,Geofence,管理员登录到GeoServer时,Geonode中将显示一个图层。管理员在GeoServer中注销时,该层不会显示在Geonode中 似乎geoserver geonode的oauth配置没有正确完成(默认设置没有更改),我无法解决这个问题 geoserver日志显示错误/异常,如下所示: ERROR [geoserver.ows] - org.geoserver.platform.ServiceException: Could not find layer geonode:nepalNat

管理员登录到GeoServer时,Geonode中将显示一个图层。管理员在GeoServer中注销时,该层不会显示在Geonode中

似乎geoserver geonode的oauth配置没有正确完成(默认设置没有更改),我无法解决这个问题

geoserver日志显示错误/异常,如下所示:

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
我的系统配置是安装在Ubuntu 18.04上的GeoNode 3.1.0和GeoServer 2.16.2。较大的日志文件是


谢谢。

我认为您需要从“地理围栏数据规则”菜单添加新的地理围栏规则
(地理围栏数据规则>>添加新规则>>)
,如下所示

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

或者,只需更改参数,即可为特定服务、工作区或层应用所需角色。

@Tekson谢谢您的建议。 我也试着玩地球围栏规则。但是,我认为问题是由于OAuth设置中的错误配置造成的。当我用正确的IP地址和URL重新安装Geonode(并且没有更改GeoFenceing规则)时,问题就解决了

我跟着。在我以前的安装中,错误配置可能发生在第节附近 更新设置以更新在公共IP或主机名上运行的GeoNode和GeoServer服务,特别是在步骤3中(更新OAuth2配置以访问新主机名)