<div dir="ltr">Hi, the OsGEO live is not meant to (and cannot) be used in production but for testing as some of the functionalities (like permissions) are disabled there.<div><br></div><div>The best way to install geonode is using apt-get on ubuntu 16.04</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-26 15:12 GMT+02:00 Sampson, David (EC) <span dir="ltr"><<a href="mailto:david.sampson@canada.ca" target="_blank">david.sampson@canada.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-8412217736836488932WordSection1">
<p class="MsoNormal">Hey Folks,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Attached documents:<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>GeoNodeProxyError.txt<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Local_settings.py<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>ApacheErrorWSGI.txt<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The Problem:<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>From an external IP address access geonode install<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>As a logged in, Admin or non-logged in user<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Click on layers: Appropriate layer appears<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Select Layer: Appropriate layer appears on the interactive map<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Click “Create Map”<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Map application loads with “500 error” dialogue box<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Debug = True<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Error output attached (Note the references to the IP address was replaced with ‘MYGEONODESERVERIP’)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This issue also occurs under the following scenario:<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>From home page<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Click on Maps<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Click on Create Map<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">GeoServer Link status:<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><a href="http://SERVER/geoserver" target="_blank">http://SERVER/geoserver</a> (fails)<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><a href="http://SERVER:8082/geoserver" target="_blank">http://SERVER:8082/geoserver</a> (passes)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Proxy Link status:<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><a href="http://SERVER/proxy" target="_blank">http://SERVER/proxy</a> (The proxy service requires a URL-encoded URL as a parameter)<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><a href="http://SERVER/proxy/?url=http%3A%2F%2FMYGEONODESERVERIP%3A8082%2Fgeoserver%2Fwms%3FSERVICE%3DWMS%26REQUEST%3DGetCapabilities%26TILED%3Dtrue%26VERSION%3D1.1.1" target="_blank">http://SERVER/proxy/?url=http%<wbr>3A%2F%2FMYGEONODESERVERIP%<wbr>3A8082%2Fgeoserver%2Fwms%<wbr>3FSERVICE%3DWMS%26REQUEST%<wbr>3DGetCapabilities%26TILED%<wbr>3Dtrue%26VERSION%3D1.1.1</a>
<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph" style="margin-left:72.0pt">
<u></u><span style="font-family:"Courier New""><span>o<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Error At Proxy, Errno 111 Connection Refused<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph" style="margin-left:72.0pt">
<u></u><span style="font-family:"Courier New""><span>o<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Exception Location: /usr/lib/python2.7/socket.py in create_connection, line 575<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph" style="margin-left:72.0pt">
<u></u><span style="font-family:"Courier New""><span>o<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Proxy Allowed Hosts: (Not sure why so many duplicate GEOSERVERIP entries. Note these point to public IP)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:91.6pt"><span style="font-size:10.0pt;font-family:"Courier New"">['127.0.0.1',<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:91.6pt"><span style="font-size:10.0pt;font-family:"Courier New"">'localhost',<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:91.6pt"><span style="font-size:10.0pt;font-family:"Courier New"">'::1',<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:91.6pt"><span style="font-size:10.0pt;font-family:"Courier New"">'MYGEONODESERVERIP',<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:91.6pt"><span style="font-size:10.0pt;font-family:"Courier New"">'*',<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:91.6pt"><span style="font-size:10.0pt;font-family:"Courier New"">'MYGEONODESERVERIP',<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:91.6pt"><span style="font-size:10.0pt;font-family:"Courier New"">'MYGEONODESERVERIP',<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:91.6pt"><span style="font-size:10.0pt;font-family:"Courier New"">'MYGEONODESERVERIP',…]<u></u><u></u></span></p>
<p class="m_-8412217736836488932MsoListParagraph" style="margin-left:72.0pt">
<u></u><span style="font-size:10.0pt;font-family:"Courier New""><span>o<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:10.0pt;font-family:"Courier New"">PROXY_URL '/proxy/?url='<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Apache Error Log:<u></u><u></u></span></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-size:10.0pt;font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:10.0pt;font-family:"Courier New"">Looks like a WGSI error.<u></u><u></u></span></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-size:10.0pt;font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:10.0pt;font-family:"Courier New"">Full Log attached to message<u></u><u></u></span></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-size:10.0pt;font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:10.0pt;font-family:"Courier New"">First and last lines of error:
<u></u><u></u></span></p>
<p class="m_-8412217736836488932MsoListParagraph"><span style="font-size:10.0pt;font-family:"Courier New"">[Wed Jul 26 07:55:19.835894 2017] [wsgi:error] [pid 1181] Internal Server Error: /proxy/<u></u><u></u></span></p>
<p class="m_-8412217736836488932MsoListParagraph"><span style="font-size:10.0pt;font-family:"Courier New"">…</span>
<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><span style="font-size:10.0pt;font-family:"Courier New"">[Wed Jul 26 07:55:19.851453 2017] [wsgi:error] [pid 1181] error: [Errno 111] Connection refused<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The Setup:<u></u><u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Host system: Ubuntu 16.04<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Virtual environment: Virtualbox 5.0.40<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Virtual Machine: OSGEO Live DVD ISO image installed to HD<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Django version: 1.6.11<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Python Version: 2.7.12<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>VM is placed in network DMZ for public access while we wait for real servers<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Attempted fixes:<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Regularly clearing browser cache upon apache restarts<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Settings.py:<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph" style="margin-left:72.0pt">
<u></u><span style="font-family:"Courier New""><span>o<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Proxy Allowed included public IP (then removed to keep settings.py un-poluted<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Local_settings.py (Attached and IP modified)<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph" style="margin-left:72.0pt">
<u></u><span style="font-family:"Courier New""><span>o<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Proxy Allowed included public IP<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph" style="margin-left:72.0pt">
<u></u><span style="font-family:"Courier New""><span>o<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>Tried editing OGC_SERVER section<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph" style="margin-left:108.0pt">
<u></u><span style="font-family:Wingdings"><span>§<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>I had to comment out LOG_FILE since the settings were not letting GeoNode start up on Apache restart<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u>geonode-updateip (fails, no such tool installed on OsgeoLive that I could find)<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Other Reading:<u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><a href="https://lists.osgeo.org/pipermail/geonode-users/2015-June/000434.html" target="_blank">https://lists.osgeo.org/<wbr>pipermail/geonode-users/2015-<wbr>June/000434.html</a><u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><a href="http://osgeo-org.1560.x6.nabble.com/proxy-error-in-geoexplorer-when-adding-wms-server-tt5278365.html#none" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/proxy-error-in-<wbr>geoexplorer-when-adding-wms-<wbr>server-tt5278365.html#none</a><u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><a href="https://github.com/GeoNode/geonode/issues/2090" target="_blank">https://github.com/GeoNode/<wbr>geonode/issues/2090</a><u></u><u></u></p>
<p class="m_-8412217736836488932MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any other ideas or missing information?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">David Sampson<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Free Agent – IN·spire, NRCan’<wbr>s Innovation Hub<br>
Posted to,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">National Environmental Emergency Centre (NEEC) <u></u><u></u></p>
<p class="MsoNormal">Environment and Climate Change Canada / Government of Canada<u></u><u></u></p>
<p class="MsoNormal"><a href="mailto:David.sampson@canada.ca" target="_blank"><span lang="FR-CA">David.sampson@canada.ca</span></a>
<span lang="FR-CA"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="FR-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="FR-CA">Agent libre – IN·spire, <wbr>Carrefour d’Innovation de <wbr>RNCan<br>
Affecté à,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="FR-CA"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="FR-CA">Centre national des urgences environnementales (CNUE)
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="FR-CA">Environnement et Changement climatique Canada / Gouvernement du Canada<u></u><u></u></span></p>
<p class="MsoNormal"><a href="mailto:David.sampson@canada.ca" target="_blank">David.sampson@canada.ca</a>
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>