[GeoNode-users] [Can't communicate with GeoServer: port 8000 vs 8080][Geonode 2.10 in Development Mode]

Toni Schönbuchner toni.schoenbuchner at csgis.de
Tue Apr 16 14:29:04 PDT 2019


Hi Tomás,

have you tried setting 8080 here?
https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L752 <https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L752>

I do know of the problem with wrong redirect to geoserver from the top nav menu
but had never problems with uploading / viewing of layers.

Cheers,

Toni



> 
> Hi all,
> 
> I've just installed successfully GeoNode 2.10rc4 for development.
> After running paver start I can enter GeoNode app, and also GeoServer app
> if I put the correct URL in the browser. But the comunication between
> GeoNode and GeoServer is not working. I cannot see from GeoNode any layers
> uploaded, and when I try to enter GeoServer from the link in GeoNode, it
> fails to redirect because it's going to port 8000, and GeoServer is in port
> 8080.
> 
> Is there any proxy configuration for django that i'm missing?
> 
> Thanks in advance,
> 
> Tomás
> 
> 
> 
> -- 
> 
> 
> Tomás Juan Link
> 
> Software Developer
> 
> +54 (11) 4342-2976/84
> 
> www.spacesur.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190416/c95e60a8/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 16 Apr 2019 17:41:10 -0300
> From: 1520 gis <juliermeopensourcedeveloper at gmail.com>
> To: Tomas Link <tomaslink at spacesur.com>
> Cc: geonode-users <geonode-users at lists.osgeo.org>
> Subject: Re: [GeoNode-users] [Can't communicate with GeoServer: port
> 	8000 vs 8080][Geonode 2.10 in Development Mode]
> Message-ID:
> 	<CAKTKyJJEor1y4s3=2RvJrKMUy_SswhQSnbwxYp0x=1n+dA4kUQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi Tomas,
> 
> What GeoNode installation method are you using?
> 
> In your local_settings.py, see if this change can help you:
> 
> *# **C**omment the line**s*#GEOSERVER_PUBLIC_PORT = os.getenv(#
> 'GEOSERVER_PUBLIC_PORT', *SITE_HOST_PORT*#)*# Add the
> lines*GEOSERVER_PUBLIC_PORT = os.getenv(    'GEOSERVER_PUBLIC_PORT',
> '*8080*')
> 
> I hope it helps
> 
> Julierme
> 
> On Tue, Apr 16, 2019 at 4:48 PM Tomas Link <tomaslink at spacesur.com> wrote:
> 
>> Hi all,
>> 
>> I've just installed successfully GeoNode 2.10rc4 for development.
>> After running paver start I can enter GeoNode app, and also GeoServer app
>> if I put the correct URL in the browser. But the comunication between
>> GeoNode and GeoServer is not working. I cannot see from GeoNode any layers
>> uploaded, and when I try to enter GeoServer from the link in GeoNode, it
>> fails to redirect because it's going to port 8000, and GeoServer is in port
>> 8080.
>> 
>> Is there any proxy configuration for django that i'm missing?
>> 
>> Thanks in advance,
>> 
>> Tomás
>> 
>> 
>> 
>> --
>> 
>> 
>> Tomás Juan Link
>> 
>> Software Developer
>> 
>> +54 (11) 4342-2976/84
>> 
>> www.spacesur.com
>> 
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190416/7fcf32ec/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 3
> Date: Tue, 16 Apr 2019 18:16:22 -0300
> From: Tomas Link <tomaslink at spacesur.com>
> To: 1520 gis <juliermeopensourcedeveloper at gmail.com>
> Cc: geonode-users <geonode-users at lists.osgeo.org>
> Subject: Re: [GeoNode-users] [Can't communicate with GeoServer: port
> 	8000 vs 8080][Geonode 2.10 in Development Mode]
> Message-ID:
> 	<CAFDUhCuSdsuKb7Vf9F-QA9hd9PC1LzAMM9SoH56FEu2P8Z=yew at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi Julierme,
> 
> Thanks for the reply.
> 
> I'm using this guide, more or less:
> http://docs.geonode.org/en/master/tutorials/install_and_admin/quick_install.html#ubuntu-for-development
> In Ubuntu 16.04 and the tag from 2.10rc4.
> I had to make a couple of changes to make work the *paver setup* command.
> But I successfully started GeoNode after that.
> GeoServer is wroking well also, in port 8080.
> 
> I don't have the variable* GEOSERVER_PUBLIC_PORT* declared in my
> settings.py.
> I tried add that one in the settings.py as you suggested but the problem is
> still there.
> 
> I debbuged the code in *geonode/proxy/views.py*, in the "proxy" function
> and what I can see is that, for every request, redirects to *host*:*port*{
> *locator*} where *locator* = '/geoserver/' in this case, and *host* and
> *port* are the the ones from GeoNode. The request parameter holds correctly
> the *host:8080/geoserver* URL, but this code always redirects to the same
> host and port of GeoNode.
> 
> I don't had this problem when I deployed 2.8 for production, because Apache
> Server redirects geoserver requests to port 8080 correctly. But in this
> development environment, I don't know how we must handle that.
> 
> 
> 
> El mar., 16 abr. 2019 a las 17:41, 1520 gis (<
> juliermeopensourcedeveloper at gmail.com>) escribió:
> 
>> Hi Tomas,
>> 
>> What GeoNode installation method are you using?
>> 
>> In your local_settings.py, see if this change can help you:
>> 
>> *# **C**omment the line**s*#GEOSERVER_PUBLIC_PORT = os.getenv(#    'GEOSERVER_PUBLIC_PORT', *SITE_HOST_PORT*#)*# Add the lines*GEOSERVER_PUBLIC_PORT = os.getenv(    'GEOSERVER_PUBLIC_PORT', '*8080*')
>> 
>> I hope it helps
>> 
>> Julierme
>> 
>> On Tue, Apr 16, 2019 at 4:48 PM Tomas Link <tomaslink at spacesur.com> wrote:
>> 
>>> Hi all,
>>> 
>>> I've just installed successfully GeoNode 2.10rc4 for development.
>>> After running paver start I can enter GeoNode app, and also GeoServer app
>>> if I put the correct URL in the browser. But the comunication between
>>> GeoNode and GeoServer is not working. I cannot see from GeoNode any layers
>>> uploaded, and when I try to enter GeoServer from the link in GeoNode, it
>>> fails to redirect because it's going to port 8000, and GeoServer is in port
>>> 8080.
>>> 
>>> Is there any proxy configuration for django that i'm missing?
>>> 
>>> Thanks in advance,
>>> 
>>> Tomás
>>> 
>>> 
>>> 
>>> --
>>> 
>>> 
>>> Tomás Juan Link
>>> 
>>> Software Developer
>>> 
>>> +54 (11) 4342-2976/84
>>> 
>>> www.spacesur.com
>>> 
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>> 
>> 
> 
> -- 
> 
> 
> Tomás Juan Link
> 
> Software Developer
> 
> +54 (11) 4342-2976/84
> 
> www.spacesur.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190416/2f1fb578/attachment.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
> 
> 
> ------------------------------
> 
> End of geonode-users Digest, Vol 51, Issue 12
> *********************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190416/6d235404/attachment.html>


More information about the geonode-users mailing list