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 http://localhost<n1-emoji-autocomplete selectedemoji="8ball">:8</n1-emoji-autocomplete>080/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><signature>Sent from <a href="https://n1.nylas.com/link/82bc912f54831b3fad494772c7bf7019a669ef0039d12be59d86966dcf2688fb/0?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/82bc912f54831b3fad494772c7bf7019a669ef0039d12be59d86966dcf2688fb?recipient=geonode-users%40lists.osgeo.org">
<div class="gmail_quote nylas-quote nylas-quote-id-f9e6874372a1f3d4789538792fb8455225181e7526ca8cfd1d8d64d1180caddd">
<br>
On lug 17 2017, at 3:15 pm, 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 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">http://localhost:8080/geoserver/rest/workspaces/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">http://localhost:8080/geoserver/rest/workspaces/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/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>
<pre class="nylas-plaintext">_______________________________________________
geonode-users mailing list
geonode-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geonode-users
</pre>
</blockquote>
</div>