[GeoNode-devel] GeoNode and GeoServer in different LXD containers, automatic login failure

Florian Detsch florian.detsch at staff.uni-marburg.de
Wed Sep 28 08:58:25 PDT 2016


I am going through the tutorial about 'GeoNode (v2.4) installation on 
Ubuntu 14.04' 
in order to setup GeoNode v2.5.x 
(https://github.com/GeoNode/geonode/tree/2.5.x) in an LXD container on 
Ubuntu 16.04. When running GeoNode and GeoServer in the same container - 
i.e., with an identical IP address - everything works fine.

However, my overall goal is to have GeoNode run on one machine, and 
GeoServer on another. Therefore, I installed GeoServer in a second LXD 
container just like before. Then, I modified
1. /var/lib/tomcat7/webapps/geoserver/WEB-INF/web.xml, changing 
parameter GEONODE_BASE_URL to the IP address and port of the GeoNode 
container, and
2. did the same for parameter baseUrl in 
as described in the tutorial's subsection 'Install GeoServer 

Furthermore, in the initial GeoNode container, I modified parameters 
ProxyPass and ProxyPassReverse in 
/etc/apache2/sites-available/geonode.conf to match with the new IP 
address of the GeoServer container 
and did the same for the OGC_SERVER settings in GeoNode's local_settings.py.

Now, I can login to GeoNode as admin. When I open the admin menu in the 
top-right corner and select GeoServer, I am redirected to the desired 
GeoServer as expected. However, the automatic login - which initially 
worked when both components ran in the same container - fails, letting 
me assume that there's something going wrong during the authentication 

Any advice on that issue would be highly appreciated. In addition, 
please let me know if further information, log files, etc. are required 
in order to solve my problem.

Many thanks in advance,

Florian Detsch (M.Sc. Physical Geography)
Environmental Informatics
Department of Geography
Philipps-Universit├Ąt Marburg
Deutschhausstra├če 12
35032 (parcel post: 35037) Marburg, Germany

Phone: +49 (0) 6421 28-25323
Web: http://umweltinformatik-marburg.de/en/staff/florian-detsch/

More information about the geonode-devel mailing list