[GeoNode-devel] Geonode Thumbnails Error

Toni Schönbuchner toni.schoenbuchner at csgis.de
Fri May 25 13:02:12 PDT 2018


Dear Julierme,

I think  using grep does not really help to get insights.
Why not look at the code? The geoserver URL is composed
in settings.py [1]. I think here you will find your 8000.

Next I think the best way to see what´s going on is to have
a look at the helpers.py [2]. Here you should find the code which
is responsible for creating thumbnails and here [3] the signal
which you see in stdout logging. If there is some time I will
do a dev installation and will test it as well.

Further you´ve asked if there is something like geonode-updateip 
for an installation by source? Not that I know of but yes it would be helpful.
But it should not be to hard to write a little script which does the job.
Have a look what geonode-updateip actually does [4] it programatically changes
the parts which the documentation [5] explains regarding auth.

I hope this helps a bit.
Best greetings to Brasilia!

Toni


[1] https://github.com/GeoNode/geonode/blob/2.8.0/geonode/settings.py#L650 <https://github.com/GeoNode/geonode/blob/2.8.0/geonode/settings.py#L650>
[2] https://github.com/GeoNode/geonode/blob/master/geonode/geoserver/helpers.py#L1730 <https://github.com/GeoNode/geonode/blob/master/geonode/geoserver/helpers.py#L1730>
[3] https://github.com/GeoNode/geonode/blob/df12893ced001973bd748f86d08fa6ae4c10dde9/geonode/geoserver/signals.py#L497 <https://github.com/GeoNode/geonode/blob/df12893ced001973bd748f86d08fa6ae4c10dde9/geonode/geoserver/signals.py#L497>
[4] https://github.com/GeoNode/geonode/blob/df12893ced001973bd748f86d08fa6ae4c10dde9/package/support/geonode.updateip#L126 <https://github.com/GeoNode/geonode/blob/df12893ced001973bd748f86d08fa6ae4c10dde9/package/support/geonode.updateip#L126>
[5] http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/install_geoserver_application.html#geonode-authentication-integration <http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/install_geoserver_application.html#geonode-authentication-integration>

-----------------------------------------------
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.

> From: Julierme Pinheiro <juliermeopensourcedeveloper at gmail.com <mailto:juliermeopensourcedeveloper at gmail.com>>
> To: Toni Schönbuchner <toni.schoenbuchner at csgis.de <mailto:toni.schoenbuchner at csgis.de>>, geonode-users
> 	<geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>>,  geonode-devel
> 	<geonode-devel at lists.osgeo.org <mailto:geonode-devel at lists.osgeo.org>>
> Subject: Re: [GeoNode-devel] Geonode Thumbnails Error
> Message-ID:
> 	<CAKTKyJJmjL0QBMuZvw0DsBzeCu2yW5vKCj5dMjDN=cddheWJ+g at mail.gmail.com <mailto:CAKTKyJJmjL0QBMuZvw0DsBzeCu2yW5vKCj5dMjDN=cddheWJ+g at mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> Here are some more paths that port 8000 could be coming from:
> 
> geo/Envs/geonode/lib/python2.7/site-packages/pycsw/wsgi.py:#
> http://localhost:8000/ <http://localhost:8000/>
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/DESCRIPTION.rst:You
> can now open the API in your browser at ``http://127.0.0.1:8000/`` <http://127.0.0.1:8000/%60%60>,
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/DESCRIPTION.rst:
> $ curl -H 'Accept: application/json; indent=4' -u admin:password
> http://127.0.0.1:8000/users/ <http://127.0.0.1:8000/users/>
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/DESCRIPTION.rst:
> "url": "http://127.0.0.1:8000/users/1/ <http://127.0.0.1:8000/users/1/>",
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/DESCRIPTION.rst:
> $ curl -X POST -d username=new -d email=new at example.com <mailto:email=new at example.com> -d is_staff=false
> -H 'Accept: application/json; indent=4' -u admin:password
> http://127.0.0.1:8000/users/ <http://127.0.0.1:8000/users/>
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/DESCRIPTION.rst:
> "url": "http://127.0.0.1:8000/users/2/ <http://127.0.0.1:8000/users/2/>",
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/METADATA:You
> can now open the API in your browser at ``http://127.0.0.1:8000/`` <http://127.0.0.1:8000/%60%60>,
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/METADATA:
> $ curl -H 'Accept: application/json; indent=4' -u admin:password
> http://127.0.0.1:8000/users/ <http://127.0.0.1:8000/users/>
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/METADATA:
> "url": "http://127.0.0.1:8000/users/1/ <http://127.0.0.1:8000/users/1/>",
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/METADATA:
> $ curl -X POST -d username=new -d email=new at example.com <mailto:email=new at example.com> -d is_staff=false
> -H 'Accept: application/json; indent=4' -u admin:password
> http://127.0.0.1:8000/users/ <http://127.0.0.1:8000/users/>
> 
> [...]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180525/99f39b1c/attachment.html>


More information about the geonode-devel mailing list