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

Ariel Nunez ingenieroariel at gmail.com
Fri Sep 30 07:07:03 PDT 2016


Hello Florian,

The only way I have been able to reliable reuse login between GeoNode and
GeoServer is to put them both under the same reverse proxy (nginx or
apache).

If you access them in different IP addresses the cookies are not shared.

-a

On Fri, Sep 30, 2016 at 4:32 AM, Florian Detsch <
florian.detsch at staff.uni-marburg.de> wrote:

> Hi,
>
> I already posted this issue to the geonode-devel mailing list, with no
> success so far...
>
> I am going through the tutorial about 'GeoNode (v2.4) installation on
> Ubuntu 14.04' (http://docs.geonode.org/en/master/tutorials/install_and_adm
> in/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/geose
> rver/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_adm
> in/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_adm
> in/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
>
> Tel +49 (0) 6421 28-25323
> http://umweltinformatik-marburg.de/en/staff/florian-detsch/
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160930/2148b0c4/attachment.html>


More information about the geonode-users mailing list