[GeoNode-users] GeoNode 2.4 Proxy 500 Error "Connection Refused" (OSGEOLIVE DVD Image)

Sampson, David (EC) david.sampson at canada.ca
Wed Jul 26 06:12:07 PDT 2017


Hey Folks,

I am currently having issues with a test install of GeoNode 2.4 related to a 500 proxy Error in the Maps app. I have made a number of change to various config files to get the majority of functionality working on an external IP address despite the missing tool for "geonode-updateip". I hope the proxy is the final issue. Any help is appreciated.

Attached documents:

·        GeoNodeProxyError.txt

·        Local_settings.py

·        ApacheErrorWSGI.txt

The Problem:

·        From an external IP address access geonode install

·        As a logged in, Admin or non-logged in user

·        Click on layers: Appropriate layer appears

·        Select Layer: Appropriate layer appears on the interactive map

·        Click "Create Map"

·        Map application loads with "500 error" dialogue box

·        Debug = True

·        Error output attached (Note the references to the IP address was replaced with 'MYGEONODESERVERIP')

This issue also occurs under the following scenario:

·        From home page

·        Click on Maps

·        Click on Create Map

GeoServer Link status:

·        http://SERVER/geoserver (fails)

·        http://SERVER:8082/geoserver (passes)

Proxy Link status:

·        http://SERVER/proxy (The proxy service requires a URL-encoded URL as a parameter)

·        http://SERVER/proxy/?url=http%3A%2F%2FMYGEONODESERVERIP%3A8082%2Fgeoserver%2Fwms%3FSERVICE%3DWMS%26REQUEST%3DGetCapabilities%26TILED%3Dtrue%26VERSION%3D1.1.1

o   Error At Proxy, Errno 111 Connection Refused

o   Exception Location: /usr/lib/python2.7/socket.py in create_connection, line 575

o   Proxy Allowed Hosts: (Not sure why so many duplicate GEOSERVERIP entries. Note these point to public IP)
['127.0.0.1',
'localhost',
'::1',
'MYGEONODESERVERIP',
'*',
'MYGEONODESERVERIP',
'MYGEONODESERVERIP',
'MYGEONODESERVERIP',...]

o   PROXY_URL '/proxy/?url='

Apache Error Log:

·        Looks like a WGSI error.

·        Full Log attached to message

·        First and last lines of error:

[Wed Jul 26 07:55:19.835894 2017] [wsgi:error] [pid 1181] Internal Server Error: /proxy/

...

[Wed Jul 26 07:55:19.851453 2017] [wsgi:error] [pid 1181] error: [Errno 111] Connection refused


The Setup:
Due to various issues with installing GeoNode from scratch on a stand alone Ubuntu VM I have decided to use the following setup. Once I get this working to demo to my team then I can tackle the bigger issues around GeoServer Ubuntu installation.

·        Host system: Ubuntu 16.04

·        Virtual environment: Virtualbox 5.0.40

·        Virtual Machine: OSGEO Live DVD ISO image installed to HD

·        Django version: 1.6.11

·        Python Version: 2.7.12

·        VM is placed in network DMZ for public access while we wait for real servers

·


Attempted fixes:

·        Regularly clearing browser cache upon apache restarts

·        Settings.py:

o   Proxy Allowed included public IP (then removed to keep settings.py un-poluted

·        Local_settings.py (Attached and IP modified)

o   Proxy Allowed included public IP

o   Tried editing OGC_SERVER section

§  I had to comment out LOG_FILE since the settings were not letting GeoNode start up on Apache restart

·        geonode-updateip (fails, no such tool installed on OsgeoLive that I could find)

·

Other Reading:

·        https://lists.osgeo.org/pipermail/geonode-users/2015-June/000434.html

·        http://osgeo-org.1560.x6.nabble.com/proxy-error-in-geoexplorer-when-adding-wms-server-tt5278365.html#none

·        https://github.com/GeoNode/geonode/issues/2090

·


Any other ideas or missing information?




David Sampson

Free Agent - IN·spire, NRCan's Innovation Hub
Posted to,

National Environmental Emergency Centre (NEEC)
Environment and Climate Change Canada / Government of Canada
David.sampson at canada.ca<mailto:David.sampson at canada.ca>

Agent libre - IN·spire, Carrefour d'Innovation de RNCan
Affecté à,

Centre national des urgences environnementales (CNUE)
Environnement et Changement climatique Canada / Gouvernement du Canada
David.sampson at canada.ca<mailto:David.sampson at canada.ca>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170726/e3115d92/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: GeoNodeProxyError-2.4.txt
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170726/e3115d92/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local_settings.py
Type: application/octet-stream
Size: 2463 bytes
Desc: local_settings.py
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170726/e3115d92/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ApacheErrorWSGI.txt
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170726/e3115d92/attachment-0001.txt>


More information about the geonode-users mailing list