[GeoNode-users] Cannot view uploaded layers
Stefano.LUONI at ext.ec.europa.eu
Stefano.LUONI at ext.ec.europa.eu
Tue Jan 9 04:26:27 PST 2018
Thanks for the clarification, Alessio!
________________________________
From: Alessio Fabiani [alessio.fabiani at geo-solutions.it]
Sent: 09 January 2018 12:22
To: Alessio Fabiani
Cc: LUONI Stefano (JRC-ISPRA-EXT); Simone Dalmasso; geonode-users
Subject: Re: [GeoNode-users] Cannot view uploaded layers
Please check the following updates to the documentation
https://github.com/GeoNode/geonode/pull/3550
Regards,
Alessio Fabiani
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.
==
Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 331 6233686
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
2018-01-09 11:57 GMT+01:00 Alessio Fabiani <alessio.fabiani at geo-solutions.it<mailto:alessio.fabiani at geo-solutions.it>>:
Uhm... if you are using the latest GeoServer (2.12.x) the default role service on GeoServer "settings" *must* be "default".
The documentation must be updated, I guess there is a refuse.
Regards,
Alessio Fabiani
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.
==
Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313<tel:0584%20962313>
fax: +39 0584 1660272<tel:0584%20166%200272>
mob: +39 331 6233686<tel:331%20623%203686>
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
2018-01-09 11:53 GMT+01:00 <Stefano.LUONI at ext.ec.europa.eu<mailto:Stefano.LUONI at ext.ec.europa.eu>>:
Unfortunately, I cannot spot further errors from GeoNode logs; I also checked the files you mentioned and I don't see any differences from what you and the guides provided.
After another restart of Tomcat, I'm able to visualize uploaded layers, but I cannot upload new ones if I keep "geonode REST role service" as active service in security settings.
One additional note: on the layer page I receive InvalidKey errors from Google Maps service. In my GeoNode local settings there are no settings for Google Maps; I actually added Bing to MAP_BASELAYERS settings with a valid BING_API_KEY, but I can't see any effect. Probably this is because of something hardcoded in GeoExplorer.js, but I haven't dug into this yet.
________________________________
From: Alessio Fabiani [alessio.fabiani at geo-solutions.it<mailto:alessio.fabiani at geo-solutions.it>]
Sent: 09 January 2018 11:14
To: LUONI Stefano (JRC-ISPRA-EXT)
Cc: GeoSolutions - JAI; Simone Dalmasso; geonode-users
Subject: Re: [GeoNode-users] Cannot view uploaded layers
It seems like many users recently are having issues with the REST Role Service, but actually I cannot understand why.
I need to try an installation from scratch of 2.7.x and see if there's some misconfiguration on the GeoServer Data Dir or something.
Basically the issue is that the Role Service, somehow, is not able to fetch roles from GeoNode APIs.
Are you able to see if there's some error on the GeoNode logs?
Also, can you try to inspect manually the config.xml file under the "geoserver\data\security\role\geonode REST role service" and see if there's something wrong? Eventually you will need to restart GeoServer/Tomcat again.
Another check worth to do is the "geofence-server.properties" under the "geoserver\data\geofence" folder. It should contain the following properties
### GeoFence Module configuration file
###
### GeoServer will read this file at boot time.
### This file may be automatically regenerated by GeoServer, so any changes beside the property values may be lost.
### GeoFence main configuration
instanceName=default-gs
servicesUrl=internal:/
allowRemoteAndInlineLayers=true
allowDynamicStyles=true
grantWriteToWorkspacesToAuthenticatedUsers=true
useRolesToFilter=false
acceptedRoles=
### Cache configuration
cacheSize=500000
cacheRefresh=6000000
cacheExpire=6000000
gwc.context.suffix=gwc
org.geoserver.rest.DefaultUserGroupServiceName=geonode REST role service
Regards,
Alessio Fabiani
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.
==
Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A<https://maps.google.com/?q=Via+di+Montramito+3/A+%0D+55054+%C2%A0Massarosa&entry=gmail&source=g>
55054 <https://maps.google.com/?q=Via+di+Montramito+3/A+%0D+55054+%C2%A0Massarosa&entry=gmail&source=g> Massarosa<https://maps.google.com/?q=Via+di+Montramito+3/A+%0D+55054+%C2%A0Massarosa&entry=gmail&source=g> (LU)
Italy
phone: +39 0584 962313<tel:0584%20962313>
fax: +39 0584 1660272<tel:0584%20166%200272>
mob: +39 331 6233686<tel:331%20623%203686>
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
2018-01-09 10:59 GMT+01:00 <Stefano.LUONI at ext.ec.europa.eu<mailto:Stefano.LUONI at ext.ec.europa.eu>>:
Hi Alessio,
you're right: after uploading layers, no GeoFence data rules were automatically added, hence the access is denied because only the default DENY rule is present. Unfortunately, if I manually add a rule to allow access to a layer (all roles + all users + all services + all requests + geonode workspace + selected layer + priority=0), nothing changes and I'm still unable to visualize the layer from GeoNode.
I realised that I forgot to change the "Active role service" property in Security => Settings in GeoServer; if I set "geonode REST role service" I'm unable to upload layers though, as I get a 403 error from Tomcat.
I'm not sure what can be wrong; I followed all steps in this guide: http://docs.geonode.org/en/master/tutorials/admin/geoserver_geonode_security/
The only thing is different is that I don't have the geonodeAuthProvider created among Authentication Providers and I don't know how I'm supposed to add it.
________________________________
From: Alessio Fabiani [alessio.fabiani at geo-solutions.it<mailto:alessio.fabiani at geo-solutions.it>]
Sent: 09 January 2018 10:23
To: Simone Dalmasso
Cc: LUONI Stefano (JRC-ISPRA-EXT); geonode-users
Subject: Re: [GeoNode-users] Cannot view uploaded layers
Please double check GeoFence rules actually exist on GeoServer.
Regards,
Alessio Fabiani
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.
==
Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A<https://maps.google.com/?q=Via+di+Montramito+3/A+%0D+55054+%C2%A0Massarosa&entry=gmail&source=g>
55054 <https://maps.google.com/?q=Via+di+Montramito+3/A+%0D+55054+%C2%A0Massarosa&entry=gmail&source=g> Massarosa<https://maps.google.com/?q=Via+di+Montramito+3/A+%0D+55054+%C2%A0Massarosa&entry=gmail&source=g> (LU)
Italy
phone: +39 0584 962313<tel:0584%20962313>
fax: +39 0584 1660272<tel:0584%20166%200272>
mob: +39 331 6233686<tel:331%20623%203686>
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
2018-01-09 10:16 GMT+01:00 Simone Dalmasso <simone.dalmasso at gmail.com<mailto:simone.dalmasso at gmail.com>>:
Hi Stefano,
That error could be due to oauth misconfiguration and Geoserver is hiding the layer.
Il giorno lun 8 gen 2018 alle 17:06 <Stefano.LUONI at ext.ec.europa.eu<mailto:Stefano.LUONI at ext.ec.europa.eu>> ha scritto:
Hi,
I've got this issue with layers: after uploading, which seems to be ok, I cannot view anything on Geonode website. More specifically, tiles are loaded but they not include anything of the layer, as WMS calls return errors like below.
This is what I spot from the GeoServer log:
2018-01-08 15:41:46,328 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: Could not find layer geonode:afg_aal
This is what I spot from Apache error log:
[Mon Jan 08 17:01:31.588608 2018] [wsgi:error] [pid 1387:tid 140510650439424] Possible error with OWSLib. Turning all available properties to string
I'm trying with both raster and shape files; all files are correctly uploaded and I'm able to see them via Layer Preview from GeoServer side.
I'm using Ubuntu 16.04, Geonode 2.7, Geoserver 2.12-SNAPSHOT.
Thank you very much,
Stefano
_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/geonode-users
--
Simone
_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/geonode-users
_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/geonode-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180109/756af66f/attachment-0001.html>
More information about the geonode-users
mailing list