[GeoNode-users] FW: Cannot upload layers

Stefano.LUONI at ext.ec.europa.eu Stefano.LUONI at ext.ec.europa.eu
Tue Dec 19 05:20:22 PST 2017

My issue is still unresolved and I don't know how to deeply debug it.
I get errors while trying to upload both shape files and raster files; the only difference is that the process blocks at different points, since I already have a PostGIS data store in GeoServer that would be used for shape files.

Apparently, Geonode is unable to create a store into GeoServer. This is an extract of Apache error log.

[Tue Dec 19 07:04:02.118664 2017] [wsgi:error] [pid 4932:tid 140059365070592]   File "/home/luonist/risk_data_hub/my_venv/local/lib/python2.7/site-packages/geoserver/catalog.py", line 555, in _create_coveragestore
[Tue Dec 19 07:04:02.118685 2017] [wsgi:error] [pid 4932:tid 140059365070592]     raise UploadError(response)
[Tue Dec 19 07:04:02.118707 2017] [wsgi:error] [pid 4932:tid 140059365070592] UploadError: Could not save the layer bogota, there was an upload error: <!DOCTYPE html><html><head><title>Apache Tomcat/8.0.32 (Ubuntu) - Error report</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 403 - Access is denied</h1><div class="line"></div><p><b>type</b> Status report</p><p><b>message</b> <u>Access is denied</u></p><p><b>description</b> <u>Access to the specified resource has been forbidden.</u></p><hr class="line"><h3>Apache Tomcat/8.0.32 (Ubuntu)</h3></body></html>

>From GeoServer logs, I only find an error that comes later, when it looks for a store that should have been created before (if I understand correctly):

2017-12-19 13:04:02,014 ERROR [geoserver.rest] - No such datastore: geonode,bogota
2017-12-19 13:04:02,016 ERROR [geoserver.rest] -

2017-12-19 13:04:02,050 ERROR [geoserver.rest] - No such coverage store: geonode,bogota
2017-12-19 13:04:02,051 ERROR [geoserver.rest] -

2017-12-19 13:04:02,080 ERROR [geoserver.rest] - No such wms store: geonode,bogota
2017-12-19 13:04:02,080 ERROR [geoserver.rest] -

I'm using Geonode 2.7.4, GeoServer 2.10 (taken from http://build.geonode.org/geoserver/latest/), Apache 2.4, Tomcat 8, OpenJDK 1.8.0_151

Thank you very much,


From: geonode-users [geonode-users-bounces at lists.osgeo.org] on behalf of Stefano.LUONI at ext.ec.europa.eu [Stefano.LUONI at ext.ec.europa.eu]
Sent: 18 December 2017 09:50
To: alessio.fabiani at geo-solutions.it
Cc: geonode-users at lists.osgeo.org
Subject: Re: [GeoNode-users] Cannot upload layers

Hi Alessio,

yes, the GeoServer WAR file came with the development installation (paver setup); I then moved the WAR file into Tomcat directory, in order to replace Jetty with Tomcat as container for GeoServer. I'm already using the Geonode authentication on GeoServer, though.

From: Alessio Fabiani [alessio.fabiani at geo-solutions.it]
Sent: 13 December 2017 18:16
Cc: geonode-users
Subject: Re: [GeoNode-users] Cannot upload layers

Are you using one of the GeoServer WARs and DataDir prepared for GeoNode?



Alessio Fabiani

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.

Ing. Alessio Fabiani

Founder/Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686




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.

On Wed, Dec 13, 2017 at 6:04 PM, <Stefano.LUONI at ext.ec.europa.eu<mailto:Stefano.LUONI at ext.ec.europa.eu>> wrote:

I'm facing this issue: whenever I try to upload a layer (both shape file or raster), I receive a 403 error (Access is denied) from Tomcat.

Error code (403) from GeoServer:

HTTP Status 403 - Access is denied

type Status report

message Access is denied

description Access to the specified resource has been forbidden.

Apache Tomcat/8.0.32 (Ubuntu)

I'm working on a custom installation of Geonode v.2.7.4 on Ubuntu 16.04. I replaced Jetty with Tomcat8 as container for Geoserver, which is 2.10-SNAPSHOT.

In Geoserver logs, I can find these errors:

ERROR [org.geoserver.rest] - No such coverage store: geonode,geonode_data

ERROR [org.geoserver.rest] -

ERROR [org.geoserver.rest] - No such wms store: geonode,geonode_data

ERROR [org.geoserver.rest] -

>From Apache logs, I see that there is an exception thrown by

my_venv/local/lib/python2.7/site-packages/geoserver/catalog.py", line 249, in save

(headers['status'], body))

FailedRequestError: Error code (403) from GeoServer

Postgre sql is working correctly and I already configured and enabled a "datastore" PostGIS store in Geoserver.

I followed all instructions about custom installation of Geonode (http://docs.geonode.org/en/master/tutorials/admin/install/custom_install.html) and advanced security (http://docs.geonode.org/en/master/tutorials/admin/geoserver_geonode_security/).

I checked that files exist in the "uploaded" directory under Geonode folder.

I don't know what to do further to debug this issue.

Can you help me?

Thank you very much,


geonode-users mailing list
geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171219/f49dafa7/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171219/f49dafa7/attachment-0001.txt>

More information about the geonode-users mailing list