[GeoNode-users] Geonode 2.6c1, admin user is not automatically logged into geoserver

Eric Goddard egoddard1010 at gmail.com
Thu Apr 13 13:35:43 PDT 2017


Hi all,

I'm running Geonode 2.6c1 on Ubuntu 16.04 installed using Ansible
(with geoserver-2.9.x-oauth2). My geonode instance is served over
https with a LetsEncrypt certificate.

After enabling ssl, I've gone through and changed the URLS for geonode
and geoserver everywhere that I can think of so that it uses the https
endpoint:

/var/lib/tomcat8/webapps/geoserver/data/security/role/geonode REST
role service/config.xml
/var/lib/tomcat8/webapps/geoserver/data/security/auth/geonodeAuthProvider/config.xml
/var/lib/tomcat8/webapps/geoserver/data/security/filter/geonode-oauth2/config.xml
/var/lib/tomcat8/webapps/geoserver/data/global.xml

GEOSERVER_LOCATION in local_settings.py has also been updated to the
https endpoint.

I also changed the redirect uris in the GeoServer application entry in
the geonode admin panel under Django Oauth2 Toolkit > GeoServer to the
https endpoint.


The geoserver log after attempting to access geoserver from the logged
in admin account:

2017-04-13 15:13:14,757 DEBUG
[org.geoserver.security.IncludeQueryStringAntPathRequestMatcher] -
Checking match of request : 'Path: /, QueryString: null'; against
'/web/**'
2017-04-13 15:13:14,757 DEBUG
[org.geoserver.security.IncludeQueryStringAntPathRequestMatcher] -
Checking match of request : 'Path: /, QueryString: null'; against
'/gwc/rest/web/**'
2017-04-13 15:13:14,757 DEBUG
[org.geoserver.security.IncludeQueryStringAntPathRequestMatcher] -
Checking match of request : 'Path: /, QueryString: null'; against '/'
2017-04-13 15:13:14,758 DEBUG
[org.geoserver.security.IncludeQueryStringAntPathRequestMatcher] -
Matched Path: /, QueryString: null with /
2017-04-13 15:13:14,758 DEBUG [org.geoserver.security] - Inspecting
the http request looking for the GeoNode Session ID.
2017-04-13 15:13:14,758 DEBUG [org.geoserver.security] - Found 9 cookies!
2017-04-13 15:13:14,759 DEBUG [org.geoserver.security] - Found GeoNode
cookie: fgalnbhxuf3ynqazgs3bfm0uqqkk71l0
2017-04-13 15:13:14,761 DEBUG [org.geoserver.security] -
preAuthenticatedPrincipal = null, trying to authenticate
2017-04-13 15:13:14,768 TRACE [org.geoserver.ows.OWSHandlerMapping] -
No handler mapping found for [/]
2017-04-13 15:13:14,769 DEBUG
[org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1]
- SecurityContextHolder now cleared, as request processing completed
2017-04-13 15:13:14,944 DEBUG
[org.geoserver.security.IncludeQueryStringAntPathRequestMatcher] -
Checking match of request : 'Path: /web/, QueryString: null'; against
'/web/**'
2017-04-13 15:13:14,944 DEBUG
[org.geoserver.security.IncludeQueryStringAntPathRequestMatcher] -
Matched Path: /web/, QueryString: null with /web/**
2017-04-13 15:13:14,944 DEBUG [org.geoserver.security] - Inspecting
the http request looking for the GeoNode Session ID.
2017-04-13 15:13:14,944 DEBUG [org.geoserver.security] - Found 9 cookies!
2017-04-13 15:13:14,945 DEBUG [org.geoserver.security] - Found GeoNode
cookie: fgalnbhxuf3ynqazgs3bfm0uqqkk71l0
2017-04-13 15:13:14,946 DEBUG [org.geoserver.security] -
preAuthenticatedPrincipal = null, trying to authenticate
2017-04-13 15:13:14,953 TRACE [org.geoserver.ows.OWSHandlerMapping] -
No handler mapping found for [/web/]
2017-04-13 15:13:15,021 DEBUG [org.geoserver.filters] - Compressing
output for mimetype: text/html;charset=UTF-8
2017-04-13 15:13:15,028 DEBUG
[org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1]
- SecurityContextHolder now cleared, as request processing completed


I'm not really sure where go from here with troubleshooting, so any
help is greatly appreciated. I've tried to include everything that
that would be relevant to this issue, but if there is some other
information that's needed please let me know.

Thanks!

Eric


More information about the geonode-users mailing list