[GeoNode-users] Error Updating Ip

Paolo Corti pcorti at gmail.com
Fri Jun 17 06:48:15 PDT 2016


I am not sure why for you it is not working, but updatelayers should have
fixed this according that SITEURL is set correctly and read from config
when running updatelayers
p

On Fri, Jun 17, 2016 at 5:20 AM, Finnegan Pope-Carter <
f.pope-carter at magnitudesurveys.co.uk> wrote:

> Hi Paolo
>
>
>
> Thanks for your help, I checked and one layer had the incorrect ows_url
> field which I’ve updated to match the rest.
>
>
>
> This appears to have had the desired effect for that one layer (Which is
> an external cascading wms layer) however it hasn’t worked for the layers
> which are stored on geoserver
>
>
>
> These layers are still being loaded from geonode.magnitudesurveys.com
> even though the ows_url field for these layers is gis.magnitudesurveys.com
> as shown below:
>
>
>
> 124;37;8;"image/png";"geonode:MSSP14_MG_Poly";1;"''";TRUE;FALSE;"";TRUE;"
> http://gis.magnitudesurveys.com/geoserver/wms";"{"attribution": null,
> "restUrl": "/gs/rest", "bbox": [-175047.00181363, 6868012.1607306,
> -174085.22390339, 6868848.3795379], "cached": false, "title":
> "MSSP14_MG_Poly", "url": "
> http://geonode.magnitudesurveys.com/geoserver/wms", "selected": false,
> "srs": "EPSG:900913", "queryable": true, "tiled": true}";"{"restUrl":
> "/gs/rest", "title": "My GeoServer WMS", "baseParams": {"VERSION": "1.1.1",
> "REQUEST": "GetCapabilities", "TILED": true, "SERVICE": "WMS"}, "ptype":
> "gxp_wmscsource", "id": "3"}";TRUE
>
>
>
> It appears that the url parameter in layar_params_text is overriding the
> ows_url field
>
>
>
> I’m not particularly strong on postgres commands so I’m not sure how to
> automatically change the values. It also appears that the keys are still
> loading from geonode.magnitudesurveys.com
>
>
>
> Thanks
>
>
>
> FInn
>
> *From:* Paolo Corti [mailto:pcorti at gmail.com]
> *Sent:* 16 June 2016 15:41
>
> *To:* Finnegan Pope-Carter <f.pope-carter at magnitudesurveys.co.uk>
> *Cc:* geonode-users at lists.osgeo.org
> *Subject:* Re: [GeoNode-users] Error Updating Ip
>
>
>
> After looking at your screenshot, it looks to me that updatemaplayerip did
> not work properly for all layers (not sure why).
>
>
>
> Is the ows_url field correctly updated in the maps_maplayer table?
>
> You can check with:
>
>
>
> select ows_url from maps_maplayer;
>
> p
>
>
>
> On Thu, Jun 16, 2016 at 10:28 AM, Finnegan Pope-Carter <
> f.pope-carter at magnitudesurveys.co.uk> wrote:
>
> Hi Paolo
>
>
>
> Yes updatelayers has also completed successfully.
>
>
>
> Finn
>
>
>
> *From:* Paolo Corti [mailto:pcorti at gmail.com]
> *Sent:* 16 June 2016 15:23
>
>
> *To:* Finnegan Pope-Carter <f.pope-carter at magnitudesurveys.co.uk>
> *Cc:* geonode-users at lists.osgeo.org
> *Subject:* Re: [GeoNode-users] Error Updating Ip
>
>
>
> Oh I was not aware that updateip is also changing SITEURL in settings,
> good to know.
>
> Did the updatelayers command within geonode.updateip also completed
> successfully?
>
>
>
> p
>
>
>
> On Thu, Jun 16, 2016 at 10:08 AM, Finnegan Pope-Carter <
> f.pope-carter at magnitudesurveys.co.uk> wrote:
>
> SITEURL was updated automatically by updateip and I’ve manually checked
> local_settings and printed the settings out of the Django shell. SITEURL is
> definitely gis.magnitudesurveys.com
>
>
>
> *From:* Paolo Corti [mailto:pcorti at gmail.com]
> *Sent:* 16 June 2016 14:44
> *To:* Finnegan Pope-Carter <f.pope-carter at magnitudesurveys.co.uk>
> *Cc:* geonode-users at lists.osgeo.org
> *Subject:* Re: [GeoNode-users] Error Updating Ip
>
>
>
> Did you change SITEURL in your settings file?
>
> p
>
>
>
> On Thu, Jun 16, 2016 at 5:05 AM, Finnegan Pope-Carter <
> f.pope-carter at magnitudesurveys.co.uk> wrote:
>
> I originally had geonode running on the domain
> geonode.magnitudesurveys.com, I wanted to update the domain name to
> gis.magnitudesurveys.com.
>
>
>
> I’ve run sudo geonode-updateip gis.magnitudesurveys.com which completes
> successfully.
>
>
>
> When I navigate to a map view and inspect sources the majority of layers
> are still loading from geonode.magnitudesurveys.com. Am I missing a
> setting anywhere that needs updating as well as running updateip?
>
>
>
>
>
> Thanks in advance for your assistance
>
>
>
> Finn
>
>
>
> *Finnegan Pope-Carter BSc (Hons) MSc FGS*
>
> Director of Research & Development
>
>
>
> [image: horizontal-alpha_300px] <http://www.magnitudesurveys.co.uk/>
>
>
>
> www.magnitudesurveys.co.uk
>
> f.pope-carter at magnitudesurveys.co.uk
>
> Office: +44(0)1274 926020
>
> Mobile: +44(0)1274 926022
>
>
>
> *The information in this email is confidential and solely for the use of
> the intended recipient(s). If you receive this email in error, please
> notify the sender and delete the email from your system immediately. In
> such circumstances, you must not make any use of the email or its contents.*
>
>
>
> *Magnitude Surveys Ltd. Registered office: 50 Kirkgate, Shipley, West
> Yorkshire, BD18 3EL. Registered in England. Registered number: 09605400.*
>
>
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
>
>
> --
>
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
>
>
>
>
>
> --
>
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
>
>
>
>
>
> --
>
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
>



-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160617/fbd59984/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 11610 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160617/fbd59984/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 46364 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160617/fbd59984/attachment-0003.png>


More information about the geonode-users mailing list