[GeoNode-users] Issue on updateip in migration to 2.6

Toni Schönbuchner toni.schoenbuchner at csgis.de
Mon Jul 3 01:07:33 PDT 2017


Hi Annalisa,

> I setted the ip address in geonode-oauth2 in a couple of lines they still
> point to "localhost“.

You could grep your files to see if somewhere localhost is still mentioned:

grep -rn --include="*.py“ „192.68.31.80" 2>/dev/null

> Here it is an example of a wrong preview link:
> http://192.168.31.80/geoserver/geonode/wms?access_token=SFtO1m1uwzKVWzOmJmsQi72nMQyEfi?service=WMS&version=1.1.0&request=GetMap&layers=geonode:v_staz_aria_attive&styles=&bbox=1647277.811,4991070.397,1798213.0,5117620.0&width=768&height=643&srs=EPSG:3003&format=application/openlayers <http://192.168.31.80/geoserver/geonode/wms?access_token=SFtO1m1uwzKVWzOmJmsQi72nMQyEfi?service=WMS&version=1.1.0&request=GetMap&layers=geonode:v_staz_aria_attive&styles=&bbox=1647277.811,4991070.397,1798213.0,5117620.0&width=768&height=643&srs=EPSG:3003&format=application/openlayers>

You want the local IP to be a public, right?
Stupid question. Have you restarted your web servers?

> Then, I've some old layers in geonode that doesn't more exists in
> geoserver. If I try to remove from geonode ui It fails. Also the "geonode
> updatelayers --remove-deleted" fails on those layers

updatelayers has a verbose option.
http://docs.geonode.org/en/master/tutorials/admin/admin_mgmt_commands/#updatelayers <http://docs.geonode.org/en/master/tutorials/admin/admin_mgmt_commands/#updatelayers>
can you provide a detailed error output?

> There are geonode commands for clean or syncronize databases? Some docs?
> syncdb is now deprecated, right?

I think to remember that from Django 1.9 synchdb is depreceated. Instead migrate
should work. F.e.:

python manage.py migrate auth
# performs migrations for auth and contenttypes contrib apps

python manage.py migrate --run-syncdb
# creates the rest of the database
I couldn´t find any updated documentation either.
When searching for things like that I often have a look in pavement.py  ;)
https://github.com/GeoNode/geonode/blob/master/pavement.py#L213 <https://github.com/GeoNode/geonode/blob/master/pavement.py#L213>




Cheers,

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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170703/3d92b618/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170703/3d92b618/attachment.sig>


More information about the geonode-users mailing list