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

xbartolone@gmail.com xbartolone at gmail.com
Wed Sep 28 11:01:50 PDT 2016


Hi Florian,

Are you using docker-compose and the link strategy? In such a case I'd suggest to have a look at the work already done by the team under the github repos django-docker, geoserver-docker, nginx-docker, data-docker

Francesco

Inviato da TypeApp per iPhone
On 28 set 2016 at 18:10, Florian Detsch <florian.detsch at staff.uni-marburg.de> wrote:

Hi,

I am going through the tutorial about 'GeoNode (v2.4) installation on  
Ubuntu 14.04'  
(http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html)  
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  
/var/lib/tomcat7/webapps/geoserver/data/security/auth/geonodeAuthProvider/config.xml
as described in the tutorial's subsection 'Install GeoServer  
Application'  
(http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/install_geoserver_application.html).  


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  
(http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html),  
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  
procedure.

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

--  
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/

_______________________________________________
geonode-devel mailing list
geonode-devel at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geonode-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160928/dd794883/attachment-0001.html>


More information about the geonode-devel mailing list