<div dir="ltr">Hello dear devs I would like to add to this question, because my problem involves <div>the same topic... when I want to add a "remote service" through CSW, I have the</div><div>next issues:</div><div><br></div><div>1) The auto detect option for this service is not working.</div><div><br></div><div>2) After I've added the catalogue service and i want to add a layer through the ccomposer,</div><div>I cannot see the layers, it sends a connection refused error.</div><div><br></div><div>3) I don't know how many layers the catalogue have when i add the service, I doesn't </div><div>create local layers as the wms remote service.</div><div><br></div><div>How can I harvest the CSW catalog?<br></div><div><br></div><div>Thanks in advance.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-09 10:37 GMT-05:00 Cliff Patterson <span dir="ltr"><<a href="mailto:cliffpatterson@gmail.com" target="_blank">cliffpatterson@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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>Proxy Error<br>The proxy server received an invalid response from an upstream server.<br>The proxy server could not handle the request POST /geomet/.<br>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>The server encountered an internal error or misconfiguration and was unable to complete your request.<br>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>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!<span class="HOEnZb"><font color="#888888"><div><div dir="ltr"></div></div>
<div><br></div><div>Cliff</div></font></span></div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div>