[GeoNode-devel] Geonode Thumbnails Error

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Mon May 28 07:20:20 PDT 2018


Dear Toni Schonbuchner,

Thank you very much for your reply. While tweaking through settings.py and
local_settings.py [1], trying to find any port 8000 set to geoserver URL, I
got some questions:

1 - regarding local_settings.py

OGC_SERVER : {
          ' default' : {
                          .
                          .
                          .
            'LOG_FILE' : '%s/geoserver/data/logs/geoserver.log' % os.path.
abspath(os.path.join(PROJECT_ROOT, os.pardir)),

                          }}




[1]
http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html





2018-05-25 17:02 GMT-03:00 Toni Schönbuchner <toni.schoenbuchner at csgis.de>:

> 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
> [2] https://github.com/GeoNode/geonode/blob/master/
> geonode/geoserver/helpers.py#L1730
> [3] https://github.com/GeoNode/geonode/blob/df12893ced001973bd748f86d08fa6
> ae4c10dde9/geonode/geoserver/signals.py#L497
> [4] https://github.com/GeoNode/geonode/blob/df12893ced001973bd748f86d08fa6
> ae4c10dde9/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
>
> -----------------------------------------------
> CSGIS
>
> -----------------------------------------------
> Kolonnadenstraße 1
> <https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g>
> 04109 Leipzig
> <https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g>
> -----------------------------------------------
> 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>
> To: Toni Schönbuchner <toni.schoenbuchner at csgis.de>, geonode-users
> <geonode-users at lists.osgeo.org>,  geonode-devel
> <geonode-devel at lists.osgeo.org>
> Subject: Re: [GeoNode-devel] Geonode Thumbnails Error
> Message-ID:
> <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/
> 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/>,
> 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/
> 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/",
> 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 -d is_staff=false
> -H 'Accept: application/json; indent=4' -u admin:password
> 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/",
> 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/>,
> 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/
> geo/Envs/geonode/lib/python2.7/site-packages/djangorestframework-3.8.2.
> dist-info/METADATA:
> "url": "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 -d is_staff=false
> -H 'Accept: application/json; indent=4' -u admin:password
> http://127.0.0.1:8000/users/
>
> [...]
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180528/150743bd/attachment-0001.html>


More information about the geonode-devel mailing list