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

Florian Detsch florian.detsch at staff.uni-marburg.de
Thu Sep 29 02:24:03 PDT 2016


Nope, no Docker involved so far. I'll have a look into it... thanks!
As said, I created LXD containers and installed GeoNode / GeoServer 
according to the respective tutorials. Any further suggestions on how to 
succeed in establishing the link?

Florian


On 28.09.2016 20:01, "xbartolone at gmail.com" wrote:
>
> 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 <http://www.typeapp.com/r> per iPhone
>
> On 28 set 2016 at 18:10 <x-apple-data-detectors://1>, Florian Detsch 
> <florian.detsch at staff.uni-marburg.de 
> <mailto: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 <x-apple-data-detectors://8/1>
> 35032 (parcel post: 35037) Marburg, Germany
>
> Phone: +49 (0) 6421 28-25323 <tel:+49%206421%2028-25323>
> Web: http://umweltinformatik-marburg.de/en/staff/florian-detsch/
>
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org <mailto:geonode-devel at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/geonode-devel

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160929/6735e70f/attachment.html>


More information about the geonode-devel mailing list