[GeoNode-devel] Layers on Geocode being redirected to localhost after production server migration

Toni Schönbuchner toni.schoenbuchner at csgis.de
Mon Aug 13 22:47:15 PDT 2018


Dear Lydia,

in case you installed geonode 2.8 via apt-get you can just run 

$ geonode-updateip http://geoportal-test.memphis.edu

In case you installed with form github source (with pip and paver)
Either dump database geonode as sql, search after localhost and replace
it with you url, and restore the database.

As alternative you can try these sql command (meant to be run from cli)
https://hastebin.com/ipapejinex.sql <https://hastebin.com/ekodomixuc.sql>
After using the first two pink tiles should be gone. The rest should
correct several other fields which have the old url.

best regards,

Toni

-----------------------------------------------
CSGIS

-----------------------------------------------
Kolonnadenstraße 1
04109 Leipzig
-----------------------------------------------
Mobil	+49/ (0) 176 6680 3198
Tel 		+49/ (0) 341 24 04 738
Fax 		+49/ (0) 341 24 04 73
Web		http://csgis.de
-----------------------------------------------

Hinweis gemäß § 33 BDSG
Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den 
Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich 
erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht 
von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, 
Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.

> Am 14.08.2018 um 00:18 schrieb geonode-devel-request at lists.osgeo.org:
> 
> Send geonode-devel mailing list submissions to
> 	geonode-devel at lists.osgeo.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.osgeo.org/mailman/listinfo/geonode-devel
> or, via email, send a message with subject or body 'help' to
> 	geonode-devel-request at lists.osgeo.org
> 
> You can reach the person managing the list at
> 	geonode-devel-owner at lists.osgeo.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of geonode-devel digest..."
> 
> 
> Today's Topics:
> 
>   1. Layers on Geocode being redirected to localhost after
>      production server migration (Lian Feng (lfeng))
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 13 Aug 2018 22:11:55 +0000
> From: "Lian Feng (lfeng)" <lfeng at memphis.edu>
> To: "geonode-devel at lists.osgeo.org" <geonode-devel at lists.osgeo.org>
> Subject: [GeoNode-devel] Layers on Geocode being redirected to
> 	localhost after production server migration
> Message-ID: <C79FD08F-F674-4000-965C-3B7DFB8D310D at memphis.edu>
> Content-Type: text/plain; charset="utf-8"
> 
> Dear all,
> 
> I installed geonode 2.8 on a 16.04 Ubuntu virtualbox and migrated localhost and localhost:8080 to http://geoportal-test.memphis.edu/ and http://geoportal-test.memphis.edu/geoserver/. I was able to upload three layers in geoserver and layer previews work well for them. However, on geonode UI, GET requests are redirected to localhost (see attached). Also, I noticed I have pink tiles for openstreetmap but not sure if they’re related. geoserver.log file is also attached.
> 
> I followed this installation guide http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html. And I have thoroughly googled pink tiles and url redirect issues but haven’t had any luck yet. I would appreciate any help very much! Thanks.
> 
> Lydia Lian Feng
> Senior Research Software Developer  | CAESER
> Center for Applied Earth Science and Engineering Research
> 
> [cid:image001.jpg at 01D1B286.94FA79E0]
> 
> The University of Memphis
> Wilder Tower Suite 900
> 3675 Alumni Drive
> Memphis, TN 38152<http://www.memphis.edu/emailsignatures/emailsignaturepc.php>
> 
> 901.678.<http://www.memphis.edu/emailsignatures/emailsignaturepc.php>5110 | http://strengthencommunities.com/
> 
> 
> [cid:image002.jpg at 01D1B286.94FA79E0]<https://www.facebook.com/CAESER.UofM>
> 
> [cid:image003.jpg at 01D1B286.94FA79E0]<https://twitter.com/CAESER_UofM>
> 
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180813/62a58ccf/attachment.html>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image001.jpg
> Type: image/jpeg
> Size: 34647 bytes
> Desc: image001.jpg
> URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180813/62a58ccf/attachment.jpg>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image002.jpg
> Type: image/jpeg
> Size: 9111 bytes
> Desc: image002.jpg
> URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180813/62a58ccf/attachment-0001.jpg>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image003.jpg
> Type: image/jpeg
> Size: 9962 bytes
> Desc: image003.jpg
> URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180813/62a58ccf/attachment-0002.jpg>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: geonode_re-route.png
> Type: image/png
> Size: 578003 bytes
> Desc: geonode_re-route.png
> URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180813/62a58ccf/attachment.png>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: geoserver.log
> Type: application/octet-stream
> Size: 332617 bytes
> Desc: geoserver.log
> URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180813/62a58ccf/attachment.obj>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
> 
> 
> ------------------------------
> 
> End of geonode-devel Digest, Vol 43, Issue 11
> *********************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180814/fa3138c9/attachment.html>


More information about the geonode-devel mailing list