You should review a little bit the configuration of your installation in particular the section of oauth2 configuration. Maybe a look at the workshop <a href="https://n1.nylas.com/link/c6ec8a14bed90b1d818e5d0b0315b3664218da2fcd6721ea6d412ed515bbd5d7/0?redirect=http%3A%2F%2Fgeonode.org%2Fgeonode-workshop%2Ffoss4git2017%2F%23%2F4%2F7&recipient=geonode-users%40lists.osgeo.org">http://geonode.org/geonode-workshop/foss4git2017/#/4/7</a> you attended in Genova can help.<div><div><br></div><div>Francesco</div><br><signature>Sent from <a href="https://n1.nylas.com/link/c6ec8a14bed90b1d818e5d0b0315b3664218da2fcd6721ea6d412ed515bbd5d7/1?redirect=https%3A%2F%2Fnylas.com%3Fref%3Dn1&recipient=geonode-users%40lists.osgeo.org">Nylas Mail</a>, the best free email app for work</signature></div><img class="n1-open" width="0" height="0" style="border:0; width:0; height:0;" src="https://n1.nylas.com/open/c6ec8a14bed90b1d818e5d0b0315b3664218da2fcd6721ea6d412ed515bbd5d7?recipient=geonode-users%40lists.osgeo.org">
          <div class="gmail_quote nylas-quote nylas-quote-id-0c76a9b75d76e8adab773222a84eb08ec0f32d60fd7fab5eea7eb1057953c07e">
            <br>
            On lug 18 2017, at 9:53 am, Annalisa Schiavon <annalisa.schiavon@gmail.com> wrote:
            <br>
            <blockquote class="gmail_quote"
              style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
              <div dir="ltr">Hi Francesco!<div>I run the command you suggest and I receive</div><div><br /></div><div><div>curl <a href="http://localhost:8080/geoserver/rest/workspaces.json?recipient=geonode-users%40lists.osgeo.org">http://localhost:8080/geoserver/rest/workspaces.json</a></div><div>{"workspaces":""}</div></div><div><br /></div><div><span style="font-size:12.8px">I do not understand what is misconfigured in my Geoserver-Geonode!</span><br /></div><div><span style="font-size:12.8px"><br /></span></div><div><span style="font-size:12.8px">Than, I set Active role Service = default in Geoserver (Security Settings) and I could upload my layer ... </span></div><div><span style="font-size:12.8px">Now I set again </span><span style="font-size:12.8px">Active role Service =</span><span style="font-size:12.8px"> geonode REST role service and I get this Warning in geoserver log:</span></div><div><span style="font-size:12.8px"><br /></span></div><div><span style="font-size:12.8px">WARN [geofence.cache] - org.geoserver.geofence.cache.CachedRuleReader$NoAuthException: Can't auth user [admin]</span><br /></div><div><br /></div><div><span style="font-size:12.8px"><br /></span></div></div><div><br /><div>2017-07-17 16:46 GMT+02:00 Francesco Bartoli <span dir="ltr"><<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>></span>:<br /><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Annalisa,<div><div><br /></div><div>can you try to make a curl call to that endpoint from within the server? Basically connect through ssh and then run from the shell:</div><div><br /></div><div>$ curl <a href="http://localhost/?recipient=geonode-users%40lists.osgeo.org" target="_blank">http://localhost</a><u></u>:8<u></u>080/<wbr></wbr>geoserver/rest/workspaces.json</div><div><br /></div><div>you should receive something like</div><div><br /></div><div>{"workspaces":""}<br /></div><div><br /></div><div>If you get 404 the it's likely geoserver is not routed through localhost.</div><div><br /></div><div>Hope this helps</div><br /><u></u>Sent from <a href="https://n1.nylas.com/link/82bc912f54831b3fad494772c7bf7019a669ef0039d12be59d86966dcf2688fb/0?redirect=https%3A%2F%2Fnylas.com%3Fref%3Dn1&amp%3Brecipient=annalisa.schiavon%40gmail.com&recipient=geonode-users%40lists.osgeo.org" target="_blank">Nylas Mail</a>, the best free email app for work<u></u></div><img width="0" height="0" style="border:0;width:0;height:0" src="https://n1.nylas.com/open/82bc912f54831b3fad494772c7bf7019a669ef0039d12be59d86966dcf2688fb?recipient=annalisa.schiavon%40gmail.com" />
          <div><div><div>
            <br />
            On lug 17 2017, at 3:15 pm, Annalisa Schiavon <<a href="mailto:annalisa.schiavon@gmail.com" target="_blank">annalisa.schiavon@gmail.com</a>> wrote:
            <br />
            </div></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
              <div dir="ltr">Hi all.<div>I've migrated all my old layers, but now I can't upload a layer from ui.</div><div>It says:</div><div>"<span style="background-color:rgb(252,248,227);color:rgb(138,109,59);font-family:Lato,sans-serif;font-size:16px">Tried to make a GET request to <a href="http://localhost:8080/geoserver/rest/workspaces/default.xml?recipient=geonode-users%40lists.osgeo.org" target="_blank">http://localhost:8080/<wbr></wbr>geoserver/rest/workspaces/<wbr></wbr>default.xml</a> but got a 404 status code: No such workspace: default</span>"</div><div><br /></div><div>In apache log I find:</div><div><br /></div><div><div>... Tried to make a GET request to <a href="http://localhost:8080/geoserver/rest/workspaces/default.xml?recipient=geonode-users%40lists.osgeo.org" target="_blank">http://localhost:8080/<wbr></wbr>geoserver/rest/workspaces/<wbr></wbr>default.xml</a> but got a 404 status code: </div><div>... [wsgi:error] [pid 9903:tid 139960535320320] No such workspace: default</div></div><div><br /></div><div>In effect I have only one workspace: geonode, wich is the default one.</div><div>My geoserver-data-dir points to /mnt/geodata/geoserver_data and there is the file /mnt/geodata/geoserver_data/<wbr></wbr>workspaces/default.xml of tomcat7 user with 664 permission.</div><div><br /></div><div>Please help!</div><div><br /></div><div>Now I can login with geonode user both in geonode that in geoserver and I see layers and maps and all thumbs.</div><div><br /></div><div>Annalisa</div></div>
</div></div><pre>______________________________<wbr></wbr>_________________
geonode-users mailing list
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users?recipient=geonode-users%40lists.osgeo.org" target="_blank">https://lists.osgeo.org/<wbr></wbr>mailman/listinfo/geonode-users</a>
</pre>
            </blockquote>
          </div>
</blockquote></div><br /></div>

            </blockquote>
          </div>