Geonode Thumbnails Error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Geonode Thumbnails Error

juliermeopensourcedeveloper
Hi Geonode Developers,


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:


This way, I am unable to see the layers thumbnails, but if I change the URL to


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

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode Thumbnails Error

juliermeopensourcedeveloper
The differences, I mean, while manage.py updatelayers creates a wms request, in the other hand geonode creates just a path to the thumbnail.

Cheers

Julierme

2018-05-24 12:15 GMT-03:00 Julierme Pinheiro <[hidden email]>:
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)


location:rbmc thumbnail link (works perfectly fine)


location:200Miles thumbnail link (works perfectly fine)


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)



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


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 <[hidden email]>:
to be 100% clear: line 614 in helpers.py should say:

"srid": resource.projection,

;)

After that updatelayer will work.

cheers,

toni

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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>:

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:

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 <[hidden email]>:
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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>:

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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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 <[hidden email]>:
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 <[hidden email]>:
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@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@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 <[hidden email]>:
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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>:

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 <[hidden email]>:
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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>:

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 <[hidden email]>:
Hi Julierme,

I think this is taken from geoserver. Check global settings -> proxy base URL. 
It has the port 8000, right?

Cheers,

Toni

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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>
To: geonode-users <[hidden email]>,  geonode-devel
<[hidden email]>
Subject: [GeoNode-devel] Geonode Thumbnails Error
Message-ID:
<[hidden email]>
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_admin/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-11e8-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-840e-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_gs_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 <[hidden email]>
To: Dimitris Kar <[hidden email]>
Cc: [hidden email]
Subject: Re: [GeoNode-devel] Unable to install correctly geonode2.8 in
remote VM (Toni Schönbuchner)
Message-ID:
<[hidden email]>
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 <[hidden email]>
ha scritto:














_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode Thumbnails Error

juliermeopensourcedeveloper
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 ``<a href="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=[hidden email] -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 ``<a href="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=[hidden email] -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/METADATA:        "url": "http://127.0.0.1:8000/users/2/",
Binary file geo/Envs/geonode/lib/python2.7/site-packages/pip/_vendor/ipaddress.pyc matches
geo/Envs/geonode/lib/python2.7/site-packages/pip/_vendor/ipaddress.py:                 ip_network('2001:db8:8000::/33')]
geo/Envs/geonode/lib/python2.7/site-packages/GeoNode-2.8.dist-info/METADATA:  Development Geonode is running at http://localhost:8000/
geo/Envs/geonode/lib/python2.7/site-packages/django_cors_headers-2.2.0.dist-info/DESCRIPTION.rst:        'localhost:8000',
geo/Envs/geonode/lib/python2.7/site-packages/django_cors_headers-2.2.0.dist-info/METADATA:        'localhost:8000',
Binary file geo/Envs/geonode/lib/python2.7/site-packages/ipaddress.pyc matches
geo/Envs/geonode/lib/python2.7/site-packages/ipaddress.py:                 ip_network('2001:db8:8000::/33')]
geo/Envs/geonode/lib/python2.7/site-packages/geonode/upload/tests/test_settings.py:SITEURL = "http://localhost:8000"
geo/Envs/geonode/lib/python2.7/site-packages/geonode/settings.py:os.environ['DJANGO_LIVE_TEST_SERVER_ADDRESS'] = 'localhost:8000'
geo/Envs/geonode/lib/python2.7/site-packages/geonode/settings.py:SITEURL = os.getenv('SITEURL', "http://localhost:8000/")
Binary file geo/Envs/geonode/lib/python2.7/site-packages/geonode/settings.pyc matches
geo/Envs/geonode/lib/python2.7/site-packages/geonode/qgis_server/helpers.py:            site_url = 'http://localhost:8000'
Binary file geo/Envs/geonode/lib/python2.7/site-packages/geonode/tests/csw.pyc matches
geo/Envs/geonode/lib/python2.7/site-packages/geonode/tests/csw.py:                        'http://localhost:8000/qgis-server/ogc/'
geo/Envs/geonode/lib/python2.7/site-packages/geonode/tests/csw.py:                        'http://localhost:8000/qgis-server/ogc/'
geo/Envs/geonode/lib/python2.7/site-packages/geonode/tests/csw.py:                        'http://localhost:8000/qgis-server/ogc/'
geo/Envs/geonode/lib/python2.7/site-packages/geonode/tests/csw.py:                        'http://localhost:8000/qgis-server/ogc/'
geo/Envs/geonode/lib/python2.7/site-packages/geonode/tests/integration.py:        url = 'http://localhost:8000/gs/rest/styles/san_andres_y_providencia_poi.xml'
geo/Envs/geonode/lib/python2.7/site-packages/geonode/contrib/monitoring/frontend/webpack.config.js:      target: 'http://localhost:8000',
geo/Envs/geonode/lib/python2.7/site-packages/geonode/contrib/monitoring/frontend/webpack.config.js:      target: 'http://localhost:8000',
geo/Envs/geonode/lib/python2.7/site-packages/geonode/contrib/monitoring/frontend/webpack.config.js:      target: 'http://localhost:8000',
geo/Envs/geonode/lib/python2.7/site-packages/geonode/local_settings.py.geoserver.sample:SITEURL = "http://localhost:8000"
Binary file geo/Envs/geonode/lib/python2.7/site-packages/geonode/development.db matches
geo/Envs/geonode/local/lib/python2.7/site-packages/pycsw/wsgi.py:# http://localhost:8000/
geo/Envs/geonode/local/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/DESCRIPTION.rst:You can now open the API in your browser at ``<a href="http://127.0.0.1:8000/``">http://127.0.0.1:8000/``,
geo/Envs/geonode/local/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/local/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/local/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/DESCRIPTION.rst:    $ curl -X POST -d username=new -d email=[hidden email] -d is_staff=false -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/
geo/Envs/geonode/local/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/local/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/METADATA:You can now open the API in your browser at ``<a href="http://127.0.0.1:8000/``">http://127.0.0.1:8000/``,
geo/Envs/geonode/local/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/local/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/METADATA:            "url": "http://127.0.0.1:8000/users/1/",
geo/Envs/geonode/local/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/METADATA:    $ curl -X POST -d username=new -d email=[hidden email] -d is_staff=false -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/
geo/Envs/geonode/local/lib/python2.7/site-packages/djangorestframework-3.8.2.dist-info/METADATA:        "url": "http://127.0.0.1:8000/users/2/",
Binary file geo/Envs/geonode/local/lib/python2.7/site-packages/pip/_vendor/ipaddress.pyc matches
geo/Envs/geonode/local/lib/python2.7/site-packages/pip/_vendor/ipaddress.py:                 ip_network('2001:db8:8000::/33')]
geo/Envs/geonode/local/lib/python2.7/site-packages/GeoNode-2.8.dist-info/METADATA:  Development Geonode is running at http://localhost:8000/
geo/Envs/geonode/local/lib/python2.7/site-packages/django_cors_headers-2.2.0.dist-info/DESCRIPTION.rst:        'localhost:8000',
geo/Envs/geonode/local/lib/python2.7/site-packages/django_cors_headers-2.2.0.dist-info/METADATA:        'localhost:8000',
Binary file geo/Envs/geonode/local/lib/python2.7/site-packages/ipaddress.pyc matches
geo/Envs/geonode/local/lib/python2.7/site-packages/ipaddress.py:                 ip_network('2001:db8:8000::/33')]
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/upload/tests/test_settings.py:SITEURL = "http://localhost:8000"
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/settings.py:os.environ['DJANGO_LIVE_TEST_SERVER_ADDRESS'] = 'localhost:8000'
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/settings.py:SITEURL = os.getenv('SITEURL', "http://localhost:8000/")
Binary file geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/settings.pyc matches
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/qgis_server/helpers.py:            site_url = 'http://localhost:8000'
Binary file geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/tests/csw.pyc matches
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/tests/csw.py:                        'http://localhost:8000/qgis-server/ogc/'
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/tests/csw.py:                        'http://localhost:8000/qgis-server/ogc/'
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/tests/csw.py:                        'http://localhost:8000/qgis-server/ogc/'
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/tests/csw.py:                        'http://localhost:8000/qgis-server/ogc/'
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/tests/integration.py:        url = 'http://localhost:8000/gs/rest/styles/san_andres_y_providencia_poi.xml'
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/contrib/monitoring/frontend/webpack.config.js:      target: 'http://localhost:8000',
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/contrib/monitoring/frontend/webpack.config.js:      target: 'http://localhost:8000',
geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/contrib/monitoring/frontend/webpack.config.js:      target: 'http://localhost:8000',
geo/Envs/geonode/local/lib/pytho

Best regards

Julierme


2018-05-24 12:52 GMT-03:00 Julierme Pinheiro <[hidden email]>:
The differences, I mean, while manage.py updatelayers creates a wms request, in the other hand geonode creates just a path to the thumbnail.

Cheers

Julierme

2018-05-24 12:15 GMT-03:00 Julierme Pinheiro <[hidden email]>:
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)


location:rbmc thumbnail link (works perfectly fine)


location:200Miles thumbnail link (works perfectly fine)


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)



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


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 <[hidden email]>:
to be 100% clear: line 614 in helpers.py should say:

"srid": resource.projection,

;)

After that updatelayer will work.

cheers,

toni

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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>:

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:

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 <[hidden email]>:
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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>:

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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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&amp;service=CSW&amp;request=GetRecordById&amp;version=2.0.2&amp;elementsetname=full&amp;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 <[hidden email]>:
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 <[hidden email]>:
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@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@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 <[hidden email]>:
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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>:

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 <[hidden email]>:
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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>:

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 <[hidden email]>:
Hi Julierme,

I think this is taken from geoserver. Check global settings -> proxy base URL. 
It has the port 8000, right?

Cheers,

Toni

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

-----------------------------------------------
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

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 <[hidden email]>
To: geonode-users <[hidden email]>,  geonode-devel
<[hidden email]>
Subject: [GeoNode-devel] Geonode Thumbnails Error
Message-ID:
<[hidden email]>
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_admin/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-11e8-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-840e-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_gs_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 <[hidden email]>
To: Dimitris Kar <[hidden email]>
Cc: [hidden email]
Subject: Re: [GeoNode-devel] Unable to install correctly geonode2.8 in
remote VM (Toni Schönbuchner)
Message-ID:
<[hidden email]>
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 <[hidden email]>
ha scritto:















_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users