<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font size="1"><font size="2" face="Arial">Hi,<br>
<br>
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.
<br>
<br>
</font></font><br>
<p style="box-sizing: border-box; margin: 0px; font-family: Tahoma, Arial, sans-serif; background: white; color: black; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">
Error code (403) from GeoServer:</p>
<h1 style="box-sizing: border-box; margin: 22px 0px 11px; font-family: Tahoma, Arial, sans-serif; font-weight: 700; line-height: 1.1; color: white; font-size: 22px; background-color: rgb(82, 93, 118); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">
HTTP Status 403 - Access is denied</h1>
<p style="box-sizing: border-box; margin: 0px; font-family: Tahoma, Arial, sans-serif; background: white; color: black; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">
<b style="box-sizing: border-box; font-weight: bold; font-family: Tahoma, Arial, sans-serif; color: white; background-color: rgb(82, 93, 118);">type</b><span> </span>Status report</p>
<p style="box-sizing: border-box; margin: 5px 0px 0px; font-family: Tahoma, Arial, sans-serif; background: white; color: black; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">
<b style="box-sizing: border-box; font-weight: bold; font-family: Tahoma, Arial, sans-serif; color: white; background-color: rgb(82, 93, 118);">message</b><span> </span><u style="box-sizing: border-box;">Access is denied</u></p>
<p style="box-sizing: border-box; margin: 5px 0px 0px; font-family: Tahoma, Arial, sans-serif; background: white; color: black; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">
<b style="box-sizing: border-box; font-weight: bold; font-family: Tahoma, Arial, sans-serif; color: white; background-color: rgb(82, 93, 118);">description</b><span> </span><u style="box-sizing: border-box;">Access to the specified resource has been forbidden.</u></p>
<hr class="line" style="box-sizing: content-box; height: 1px; margin-top: 22px; margin-bottom: 22px; border-width: initial; border-style: none; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image: initial; border-top-color: rgb(247, 225, 181); background-color: rgb(82, 93, 118); color: rgb(138, 109, 59); font-family: Tahoma, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">
<h3 style="box-sizing: border-box; font-family: Tahoma, Arial, sans-serif; font-weight: 700; line-height: 1.1; color: white; margin-top: 22px; margin-bottom: 11px; font-size: 14px; background-color: rgb(82, 93, 118); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">
Apache Tomcat/8.0.32 (Ubuntu)</h3>
<p><br>
</p>
<p>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.</p>
<p><br>
</p>
<p>In Geoserver logs, I can find these errors:</p>
<p><br>
</p>
<p>ERROR [org.geoserver.rest] - No such coverage store: geonode,geonode_data<br>
</p>
<p>ERROR [org.geoserver.rest] - <br>
org.geoserver.rest.RestletException</p>
<p>ERROR [org.geoserver.rest] - No such wms store: geonode,geonode_data</p>
<p>ERROR [org.geoserver.rest] - <br>
org.geoserver.rest.RestletException</p>
<p><br>
</p>
<p>From Apache logs, I see that there is an exception thrown by <br>
</p>
<p><br>
</p>
<p>my_venv/local/lib/python2.7/site-packages/geoserver/catalog.py", line 249, in save</p>
<p>(headers['status'], body))</p>
<p>FailedRequestError: Error code (403) from GeoServer<br>
</p>
<p><br>
</p>
<p>Postgre sql is working correctly and I already configured and enabled a "datastore" PostGIS store in Geoserver.</p>
<p><br>
</p>
<p>I followed all instructions about custom installation of Geonode (<a href="http://docs.geonode.org/en/master/tutorials/admin/install/custom_install.html" target="_blank">http://docs.geonode.org/en/master/tutorials/admin/install/custom_install.html</a>) and
 advanced security (<a href="http://docs.geonode.org/en/master/tutorials/admin/geoserver_geonode_security/" target="_blank">http://docs.geonode.org/en/master/tutorials/admin/geoserver_geonode_security/</a>).</p>
<p><br>
</p>
<p>I checked that files exist in the "uploaded" directory under Geonode folder.</p>
<p><br>
</p>
<p>I don't know what to do further to debug this issue.</p>
<p><br>
</p>
<p>Can you help me?</p>
<p><br>
</p>
<p>Thank you very much,</p>
<p><br>
</p>
<p>Stefano<br>
</p>
</div>
</body>
</html>