<div dir="ltr"><p style="margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px;margin-top:0px!important">Greetings GeoNode users! </p><p style="margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px;margin-top:0px!important">Using GeoNode 2.4, I tried to add a remote service but once added, I am unable to use these layers in GeoExplorer without getting 502 and 505 errors. Except for the changes below, I have made no changes to the configuration. This is a fresh installation on Ubuntu Server 14.04. Here's what I did:</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px">1) Add remote service URL in GeoNode using auto-detect selection. To recreate, this is the URL I used:</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px"><a href="http://geo.weather.gc.ca/geomet/?lang=E&service=WMS&request=GetCapabilities" style="color:rgb(64,120,192);text-decoration:none;background-color:transparent">http://geo.weather.gc.ca/geomet/?lang=E&service=WMS&request=GetCapabilities</a></p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px">More info about this service can be found <a href="https://ec.gc.ca/meteo-weather/default.asp?lang=En&n=C0D9B3D8-1" style="color:rgb(64,120,192);text-decoration:none;background-color:transparent">here</a></p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px">2) Edit local_settings.py file and add PROXY_ALLOWED_HOSTS = ('<a href="http://geo.weather.gc.ca">geo.weather.gc.ca</a>', )</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px">3) Added the following line to mapfish config.yaml (I assume this is required)</p><p style="margin-top:0px;margin-bottom:16px"><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"><span style="font-size:14px;line-height:22.4px">  - !dnsMatch</span></font></p><p style="margin-top:0px;margin-bottom:16px"><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"><span style="font-size:14px;line-height:22.4px">    host: <a href="http://geo.weather.gc.ca">geo.weather.gc.ca</a></span></font></p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px">3) Increase timeout of Apache server to 600 seconds (I read that this may contribute to 502 errors)</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px">4) Restart Apache server</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px">Result:</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px">When loading WMS layer in GeoExplorer the layers load perfectly with the legend. However, when the map first loads and when I try to basically do anything such as change the opacity or press print, I get this error. </p><blockquote style="margin:0px 0px 16px;padding:0px 15px;color:rgb(119,119,119);border-left-width:4px;border-left-style:solid;border-left-color:rgb(221,221,221);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px"><p style="margin-top:0px;margin-bottom:0px">502 BAD GATEWAY<br style="">Proxy Error<br style="">The proxy server received an invalid response from an upstream server.<br style="">The proxy server could not handle the request POST /geomet/.<br style="">Reason: Error reading from remote server</p></blockquote><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px"><span style="line-height:22.4px">When trying to save a map containing a WMS layer from a remote server (NOTE: map does not save, only a blank map saves with no layers nor basemap):</span><br></p><blockquote style="margin:0px 0px 16px;padding:0px 15px;color:rgb(119,119,119);border-left-width:4px;border-left-style:solid;border-left-color:rgb(221,221,221);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px"><p style="margin-top:0px;margin-bottom:16px">500 Internal Server Error</p><p style="margin-top:0px;margin-bottom:0px">Internal Server Error<br style="">The server encountered an internal error or misconfiguration and was unable to complete your request.<br style="">Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.<br style="">More information about this error may be available in the server error log.</p></blockquote><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:22.4px"><span style="line-height:22.4px">Note that these errors do not occur when using local Geoserver layers.</span><br></p><div><br></div>Thank!<div class="gmail_signature"><div dir="ltr"></div></div>
<div><br></div><div>Cliff</div></div>