[GeoNode-users] Geonode Thumbnails Error

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Thu May 24 08:15:10 PDT 2018


Dear  Toni Schonbuchner,

Thank you very much for your time and for trying to help me always and all
the time.

I have great news: setting "srid": resource.projection, python manage.py
updatelayers is working perfectly fine.

Now I have a good news and a bad one.

*Good News*

If I load the data from geoserver interface, can be either geonode or
another workspace, for the first time I run python manage.py updatelayers,
the thumbnails will be created as shown bellow:

geonode:aeroporto thumbnail link  (works perfectly fine)

http://localhost:8080/geoserver/ows?layers=geonode:aeroporto&crs=EPSG:4326&service=WMS&format=image/png8&request=GetMap&height=150&width=200&version=1.1.1&bbox=-175.135635000000000,-53.781474605831600,179.195442023020000,78.246717000000000

location:rbmc thumbnail link (works perfectly fine)

http://localhost:8080/geoserver/ows?layers=location:rbmc&crs=EPSG:4326&service=WMS&format=image/png8&request=GetMap&height=150&width=200&version=1.1.1&bbox=-69.935496180600000,-29.789445458300000,-35.777101013900000,0.047035064700000

location:200Miles thumbnail link (works perfectly fine)

http://localhost:8080/geoserver/ows?layers=location:200Miles&crs=EPSG:4326&service=WMS&format=image/png8&request=GetMap&height=150&width=200&version=1.1.1&bbox=-50.140337451805300,-35.825188956244400,-25.290947335193900,7.053767046153300

*Bad News*

*Action 1*

If I load the data from geonode interface, the thumbnails will be created
as shown bellow:

location:rbmc thumbnail link (Not working: port 8000 came back)

http://localhost:8000/uploaded/thumbs/layer-91c7cab9-e395-4941-a6b0-acc48c81f67c-thumb.png


geonode:aeroporto thumbnail link (Not working: port 8000 came back)

http://localhost:8000/uploaded/thumbs/layer-06fea76a-302a-4f41-a72f-72802ab89a4f-thumb.png


*Action 2 *

If I try to edit (e. g. give a zoom in the layer)  the layer created
according to *Good News *and set Thumbnails from geonode interface, those
links in *Good News* get all messed up, I mean, they all returned to the
links in *Action1* containing port 8000.

*Action 3*

Running python manage.py updatelayers after *Action 2, *the thumbnails area
created again, but still messed up, containing port 8000, the same links as
in *Action 2.*

I wonder why this is happening. And I can not understand the differences
between links created by geonode and by python manage.py updatelayers when
the command is run for the first time. And why it can not correct the links
when it is run for the second time.

Any help will be very appreciated. Indeed I am running *geonode 2.8.0*
and *geooserver
2.12-SNAPSHOT*

I appreciated your time

Kind regards

Julierme

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

> to be 100% clear: line 614 in helpers.py should say:
>
> "srid": resource.projection,
>
> ;)
>
> After that updatelayer will work.
>
> cheers,
>
> toni
>
> -----------------------------------------------
> 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.
>
> Am 23.05.2018 um 20:25 schrieb Julierme Pinheiro <
> juliermeopensourcedeveloper at gmail.com>:
>
> Hi Toni Schonbuchner,
>
> Sorry for disturbing you during your trip. So please, take your time and
> we discuss this issue later. There is no rush.
>
> Regarding the response to
> for tn in layer:
> print tn.get_thumbnail_url()
>
> You are right. Find the links in the DB bellow:
>
> http://localhost:8000/uploaded/thumbs/layer-bf0b4ae6-5ad3-11e8-b402-
> 0800277e2fd3-thumb.png
> http://localhost:8000/uploaded/thumbs/layer-54f14a4c-5dd6-11e8-840e-
> 0800277e2fd3-thumb.png
>
> Now, I did not want to open topic discussion now, but by the way as you
> mentioned above about python manage.py updatelayers, I am unable to use
> updatelayers function. Please see bellow the response to python manage.py
> updatelayers
>
> python manage.py updatelayers
> Inspecting the available layers in GeoServer ...
> Found 3 layers, starting processing
> Stopping process because --ignore-errors was not set and an error was
> found.
> Traceback (most recent call last):
>   File "manage.py", line 31, in <module>
>     execute_from_command_line(sys.argv)
>   File "/home/geo/Envs/geonode/local/lib/python2.7/site-packages/
> django/core/management/__init__.py", line 354, in
> execute_from_command_line
>     utility.execute()
>   File "/home/geo/Envs/geonode/local/lib/python2.7/site-packages/
> django/core/management/__init__.py", line 346, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "/home/geo/Envs/geonode/local/lib/python2.7/site-packages/
> django/core/management/base.py", line 394, in run_from_argv
>     self.execute(*args, **cmd_options)
>   File "/home/geo/Envs/geonode/local/lib/python2.7/site-packages/
> django/core/management/base.py", line 445, in execute
>     output = self.handle(*args, **options)
>   File "/home/geo/Envs/geonode/local/lib/python2.7/site-packages/
> geonode/geoserver/management/commands/updatelayers.py", line 122, in
> handle
>     execute_signals=True)
>   File "/home/geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/geoserver/helpers.py",
> line 614, in gs_slurp
>     "srid": resource.srid
> Exception: ('Failed to process 200Milhas', AttributeError("'FeatureType'
> object has no attribute 'srid'",))
>
> Again, Take your time.
>
> We come back to this discussion when you can.
>
> I appreciated your time.
>
> Have a great trip
>
> Julierme
>
>
>
>
>
> 2018-05-23 14:44 GMT-03:00 Toni Schönbuchner <toni.schoenbuchner at csgis.de>
> :
>
>> Hey Julierme,
>>
>> Sorry for late reply. I´m currently on travel. I can try to test it
>> tomorrow and give you more information.
>> The Path is saved in your database. So I think it´s like this:
>> > Upload layer > Thumbails created from proxy setting from geoserver as I
>> said > Path saved to db.
>>
>> You can easily check thoes URLs with djangos build in orm.
>> To do so go to you geonode directory and use manage.py like:
>>
>> $ python manage.py shell
>>
>> from geonode.layers.models import Layer
>>
>> layer = Layer.objects.all()
>>
>> for tn in layer:
>> print tn.get_thumbnail_url()
>>
>> You should see that the path is written to your db.
>> Unsure but maybe python manage.py updatelayers
>> corrects the path for you. If not you could easily extend the
>> snippet to replace the port for you.
>>
>> Cheers,
>>
>> Toni
>>
>>
>>
>> -----------------------------------------------
>> 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.
>>
>> Am 23.05.2018 um 19:22 schrieb Julierme Pinheiro <
>> juliermeopensourcedeveloper at gmail.com>:
>>
>> Hi Toni Schonbuchner,
>>
>> I got some more information in here. I used <grep -R '\b:8000\b' *> to
>> search every file that is using port 8000.  I have two layers in
>> geoserver/geonode: geonode:rbmc and geonode:airports
>>
>> This is the response to my grep -R '\b:8000\b' *:
>>
>> geoserver-data/workspaces/geonode/rbmc/rbmc/featuretype.xml:
>> <content>http://localhost:8000//showmetadata/xsl/4</content>
>> geoserver-data/workspaces/geonode/rbmc/rbmc/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fwww.w3.org%2F2005%2FAtom&service=CSW&
>> amp;request=GetRecordById&version=2.0.2&
>> elementsetname=full&id=54f14a4c-5dd6-11e8-840e-0800277e2fd3</content>
>> geoserver-data/workspaces/geonode/rbmc/rbmc/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fgcmd.gsfc.nasa.gov%2FAboutus%2Fxml%2Fdif%2F&
>> amp;service=CSW&request=GetRecordById&version=2.0.2&
>> amp;elementsetname=full&id=54f14a4c-5dd6-11e8-840e-0800277e2fd3
>> </content>
>> geoserver-data/workspaces/geonode/rbmc/rbmc/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2&
>> service=CSW&request=GetRecordById&version=2.0.2&
>> elementsetname=full&id=54f14a4c-5dd6-11e8-840e-0800277e2fd3</content>
>> geoserver-data/workspaces/geonode/rbmc/rbmc/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> urn%3Aoasis%3Anames%3Atc%3Aebxml-regrep%3Axsd%3Arim%
>> 3A3.0&service=CSW&request=GetRecordById&
>> version=2.0.2&elementsetname=full&id=54f14a4c-5dd6-
>> 11e8-840e-0800277e2fd3</content>
>> geoserver-data/workspaces/geonode/rbmc/rbmc/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2Fcsdgm&
>> service=CSW&request=GetRecordById&version=2.0.
>> 2&elementsetname=full&id=54f14a4c-5dd6-11e8-840e-0800277e2fd3
>> </content>
>> geoserver-data/workspaces/geonode/rbmc/rbmc/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&service=CSW&
>> amp;request=GetRecordById&version=2.0.2&
>> elementsetname=full&id=54f14a4c-5dd6-11e8-840e-0800277e2fd3</content>
>> geoserver-data/workspaces/geonode/airports/airports/featuretype.xml:
>> <content>http://localhost:8000//showmetadata/xsl/2</content>
>> geoserver-data/workspaces/geonode/airports/airports/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fwww.w3.org%2F2005%2FAtom&service=CSW&
>> amp;request=GetRecordById&version=2.0.2&
>> elementsetname=full&id=bf0b4ae6-5ad3-11e8-b402-0800277e2fd3</content>
>> geoserver-data/workspaces/geonode/airports/airports/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fgcmd.gsfc.nasa.gov%2FAboutus%2Fxml%2Fdif%2F&
>> amp;service=CSW&request=GetRecordById&version=2.0.2&
>> amp;elementsetname=full&id=bf0b4ae6-5ad3-11e8-b402-0800277e2fd3
>> </content>
>> geoserver-data/workspaces/geonode/airports/airports/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2&
>> service=CSW&request=GetRecordById&version=2.0.2&
>> elementsetname=full&id=bf0b4ae6-5ad3-11e8-b402-0800277e2fd3</content>
>> geoserver-data/workspaces/geonode/airports/airports/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> urn%3Aoasis%3Anames%3Atc%3Aebxml-regrep%3Axsd%3Arim%
>> 3A3.0&service=CSW&request=GetRecordById&
>> version=2.0.2&elementsetname=full&id=bf0b4ae6-5ad3-
>> 11e8-b402-0800277e2fd3</content>
>> geoserver-data/workspaces/geonode/airports/airports/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2Fcsdgm&
>> service=CSW&request=GetRecordById&version=2.0.
>> 2&elementsetname=full&id=bf0b4ae6-5ad3-11e8-b402-0800277e2fd3
>> </content>
>> geoserver-data/workspaces/geonode/airports/airports/featuretype.xml:
>> <content>http://localhost:8000/catalogue/csw?outputschema=
>> http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&service=CSW&
>> amp;request=GetRecordById&version=2.0.2&
>> elementsetname=full&id=bf0b4ae6-5ad3-11e8-b402-0800277e2fd3</content>
>>
>> There is a featuretype.xml using http://localhost:8000, I will chnage
>> this featuretype.xml to http://localhost and see the response.
>>
>> Now, where this configuration to featuretype.xml coming from?
>>
>> Thank you very much for your time
>>
>> Kind regards
>>
>>
>> Julierme
>>
>>
>>
>>
>> 2018-05-23 12:14 GMT-03:00 Julierme Pinheiro <
>> juliermeopensourcedeveloper at gmail.com>:
>>
>>> Hi Toni Schonbuchner,
>>>
>>> I removed tomcat8 and www-data users from group geo. And I still having
>>> the same issue with the Thumbnails. Port 8000 still showing in the
>>> thumbnails links.
>>>
>>> Thank you for your time and attention
>>>
>>> I appreciated it
>>>
>>> Julierme
>>>
>>> 2018-05-23 10:54 GMT-03:00 Julierme Pinheiro <
>>> juliermeopensourcedeveloper at gmail.com>:
>>>
>>>> Dear Toni,
>>>>
>>>> Sorry for that. I got your point now. Yeah, Thumbnails do not work at
>>>> all. Basically, because all the *.png (thumbnails) are linked to port 8000
>>>> http://localhost:8000/uploaded/thumbs/thumbnail.png
>>>>
>>>> Now , where this port 8000 config is coming from, I do not know. I
>>>> checked settings and local_settings.py < vim /8000 /Thumbnails /localhost>.
>>>> Also, going a little bit further then global.xml, I checked:
>>>>
>>>> /data/geoserver-data/security/filter/geonode-oauth2/config.xml
>>>>
>>>> /data/geoserver-data/security/role/geonode\ REST\ role\ service/config.xml
>>>>
>>>> However, I have to make a note here:
>>>>
>>>> /data/geoserver-data/security/auth/geonodeAuthProvider/config.xml
>>>>
>>>> I did not find the directory geonodeAuthProvider.  I have
>>>> /data/geoserver-data/security/auth/geofence/config.xml and
>>>> /data/geoserver-data/security/auth/default/config.xml, but both
>>>> config.xml do not have <baseURL> tag.
>>>>
>>>> Let me give you some more information:
>>>>
>>>> At one stage, we made a copy of files and folders *sudo cp -Rf
>>>> /home/geonode/my_geonode/geoserver/data/* /data/geoserver-data/ *;
>>>> after that we granted tomcat8 access to the following folders:
>>>>
>>>> sudo chown -Rf tomcat8: /data/geoserver-data/
>>>>
>>>> sudo chown -Rf tomcat8: /data/geoserver-logs/
>>>>
>>>> sudo chown -Rf tomcat8: /data/geoserver-logs/
>>>>
>>>>
>>>> But here I have news, I have a group named geo and tomcat8 and www-data users belong to this group. If we go back to
>>>>
>>>> */home/geonode/my_geonode/geoserver/data/* (geonode) geo at gis:/home/geonode/my_geonode/geoserver/data$ ls -l global.xml
>>>>      -rw-rw-r-- 1 geonode geo 1705 Mai 11 17:40 global.xml
>>>>
>>>> And the same in here:
>>>>
>>>> (geonode) geo at gis:/home/geonode/my_geonode/geoserver/data/security/filter/geonode-oauth2$ ls -l config.xml
>>>> -rw-rw-r-- 1 geonode geo 1656 Mai 11 17:40 config.xml
>>>>
>>>> Both these files global.xml has port 8080  and config.xml has port 8080 and pot 8000 and because the group geo has the user tomcat8 and apache2, these settings could not be causing the server (tomcat8) to get confused, I mean gathering information either  in
>>>>
>>>>  /data/geoserver-data/ and /home/geonode/my_geonode/geoserver/data/*
>>>>
>>>>
>>>> What do you think about it? I will try removing tomcat8 and apache2 from the group geo.
>>>>
>>>> Thank you for your time and patience
>>>>
>>>> I appreciated it
>>>>
>>>> Kind regards
>>>>
>>>> Julierme
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 2018-05-22 18:57 GMT-03:00 Toni Schönbuchner <
>>>> toni.schoenbuchner at csgis.de>:
>>>>
>>>>> Dear Julierme,
>>>>>
>>>>> sorry for being unclear.
>>>>>
>>>>> Do no thumbnails work at all or for example:
>>>>> Thumbnails created before your update do not
>>>>> work but thumbails for newly created layers do?
>>>>>
>>>>> Cheers,
>>>>> Toni
>>>>>
>>>>> -----------------------------------------------
>>>>> 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.
>>>>>
>>>>> Am 22.05.2018 um 23:52 schrieb Julierme Pinheiro <
>>>>> juliermeopensourcedeveloper at gmail.com>:
>>>>>
>>>>> Hi Ton Schonbuchner,
>>>>>
>>>>> I am not sure if I understand your question, but this was the only
>>>>> change I made in global.xml
>>>>>
>>>>> <proxyBaseUrl>http://localhost/geoserver</proxyBaseUrl> and I still having problems with the thumbnails (http//:localhost:8000
>>>>>
>>>>> Thank you for your time
>>>>>
>>>>> Best regards
>>>>>
>>>>> Julierme
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 2018-05-22 18:31 GMT-03:00 Toni Schönbuchner <
>>>>> toni.schoenbuchner at csgis.de>:
>>>>>
>>>>>> Hi Julierme,
>>>>>>
>>>>>> okay do no thumbnails resolve or only the one you saved before
>>>>>> change global settings? (You can ignore the id. )
>>>>>>
>>>>>> Cheers,
>>>>>> Toni
>>>>>>
>>>>>>
>>>>>> -----------------------------------------------
>>>>>> 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.
>>>>>>
>>>>>> Am 22.05.2018 um 23:23 schrieb Julierme Pinheiro <
>>>>>> juliermeopensourcedeveloper at gmail.com>:
>>>>>>
>>>>>> Hi Ton Schonbuchner,
>>>>>>
>>>>>> Thank you very much for your reply. I checked
>>>>>> /data/geoserver-data/global.xml
>>>>>>
>>>>>>  <proxyBaseUrl>http://localhost/geoserver</proxyBaseUrl>
>>>>>>
>>>>>> I had changed the port before. Now, I do not know if the id can cause any problem, it is the only one that has 8000. And I am not sure if it is related to port configuration.
>>>>>>
>>>>>> <id>SettingsInfoImpl-2edad420:155c534d13f:-8000</id>
>>>>>>
>>>>>> Thank you for your time.
>>>>>>
>>>>>> I appreciated it
>>>>>>
>>>>>> Kind regards
>>>>>>
>>>>>> Julierme
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2018-05-22 17:38 GMT-03:00 Toni Schönbuchner <
>>>>>> toni.schoenbuchner at csgis.de>:
>>>>>>
>>>>>>> Hi Julierme,
>>>>>>>
>>>>>>> I think this is taken from geoserver. Check global settings -> proxy
>>>>>>> base URL.
>>>>>>> It has the port 8000, right?
>>>>>>>
>>>>>>> Cheers,
>>>>>>>
>>>>>>> Toni
>>>>>>>
>>>>>>> -----------------------------------------------
>>>>>>> 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.
>>>>>>>
>>>>>>>
>>>>>>> Message: 1
>>>>>>> Date: Tue, 22 May 2018 15:51:13 -0300
>>>>>>> From: Julierme Pinheiro <juliermeopensourcedeveloper at gmail.com>
>>>>>>> To: geonode-users <geonode-users at lists.osgeo.org>,  geonode-devel
>>>>>>> <geonode-devel at lists.osgeo.org>
>>>>>>> Subject: [GeoNode-devel] Geonode Thumbnails Error
>>>>>>> Message-ID:
>>>>>>> <CAKTKyJJkCsmLZQQ-jLgSJaaMv+T0kOTFC0Z11--Nvj2WwKHHpQ at mail.gmail.com>
>>>>>>> Content-Type: text/plain; charset="utf-8"
>>>>>>>
>>>>>>>
>>>>>>> Hi Geonode Developers,
>>>>>>>
>>>>>>> I have installed Geonode 2.8 following this tutorial
>>>>>>> http://docs.geonode.org/en/master/tutorials/install_and_admi
>>>>>>> n/geonode_install/index.html.
>>>>>>>
>>>>>>>
>>>>>>> After installing, I checked many times the
>>>>>>> local_settings.py/settings.py
>>>>>>> and apache2 directories permissions and I could not find any
>>>>>>> misconfiguration based on the tutorial, but I am facing a problem:
>>>>>>>
>>>>>>> Geonode is running in http://localhost and geoserver in
>>>>>>> http://localhost/geoserver and http://localhost:8080/geoserver, but
>>>>>>> the
>>>>>>> thumbnails are created using port 8000 as in here:
>>>>>>>
>>>>>>> http://localhost:8000/uploaded/thumbs/layer-54f14a4c-5dd6-11
>>>>>>> e8-840e-0800277e2fd3-thumb.png
>>>>>>>
>>>>>>> This way, I am unable to see the layers thumbnails, but if I change
>>>>>>> the URL
>>>>>>> to
>>>>>>>
>>>>>>> http://localhost/uploaded/thumbs/layer-54f14a4c-5dd6-11e8-84
>>>>>>> 0e-0800277e2fd3-thumb.png
>>>>>>>
>>>>>>> everything works fine.
>>>>>>>
>>>>>>> This is my thumbnails config in settings.py:
>>>>>>>
>>>>>>> # Choose thumbnail generator -- this is the default generator
>>>>>>> THUMBNAIL_GENERATOR = "geonode.layers.utils.create_g
>>>>>>> s_thumbnail_geonode"
>>>>>>>
>>>>>>> I checked the settings.py and local_settings.py looking for port
>>>>>>> 8000 in
>>>>>>> any line, and I could not find it.
>>>>>>>
>>>>>>> Could anyone help me to figure out why this is happening?
>>>>>>>
>>>>>>> Thank you for your time and support in advance.
>>>>>>>
>>>>>>> Kind regards
>>>>>>>
>>>>>>> Julierme
>>>>>>> -------------- next part --------------
>>>>>>> An HTML attachment was scrubbed...
>>>>>>> URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/
>>>>>>> 20180522/5a0a8ae9/attachment-0001.html>
>>>>>>>
>>>>>>> ------------------------------
>>>>>>>
>>>>>>> Message: 2
>>>>>>> Date: Tue, 22 May 2018 20:58:56 +0200
>>>>>>> From: Simone Dalmasso <simone.dalmasso at gmail.com>
>>>>>>> To: Dimitris Kar <dkarakostis at gmail.com>
>>>>>>> Cc: geonode-devel at lists.osgeo.org
>>>>>>> Subject: Re: [GeoNode-devel] Unable to install correctly geonode2.8
>>>>>>> in
>>>>>>> remote VM (Toni Schönbuchner)
>>>>>>> Message-ID:
>>>>>>> <CAAHAC+caQfJ8UpFUruEgHvzfAKzXhsCNV4sbweuCiK35WPa+gQ at mail.gmail.com>
>>>>>>> Content-Type: text/plain; charset="utf-8"
>>>>>>>
>>>>>>> Hm do you have debug set to true? This could be one reason but also
>>>>>>> looks
>>>>>>> like the Apache rules for the static folders aren’t correctly set as
>>>>>>> well.
>>>>>>> Check also that one. Django is trying to deal with your css rather
>>>>>>> than
>>>>>>> Apache but in production it shouldn’t be.
>>>>>>>
>>>>>>> Il giorno mar 22 mag 2018 alle 18:17 Dimitris Kar <
>>>>>>> dkarakostis at gmail.com>
>>>>>>> ha scritto:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180524/d9e920c0/attachment-0001.html>


More information about the geonode-users mailing list