I can't upload layers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

I can't upload layers

Annalisa Schiavon
Hi all.
I've migrated all my old layers, but now I can't upload a layer from ui.
It says:
"Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: No such workspace: default"

In apache log I find:

... Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: 
... [wsgi:error] [pid 9903:tid 139960535320320] No such workspace: default

In effect I have only one workspace: geonode, wich is the default one.
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.

Please help!

Now I can login with geonode user both in geonode that in geoserver and I see layers and maps and all thumbs.

Annalisa

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: I can't upload layers

xbartolone
Hi Annalisa,

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:

$ curl http://localhost:8080/geoserver/rest/workspaces.json

you should receive something like

{"workspaces":""}

If you get 404 the it's likely geoserver is not routed through localhost.

Hope this helps

Sent from Nylas Mail, the best free email app for work

On lug 17 2017, at 3:15 pm, Annalisa Schiavon <[hidden email]> wrote:
Hi all.
I've migrated all my old layers, but now I can't upload a layer from ui.
It says:
"Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: No such workspace: default"

In apache log I find:

... Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: 
... [wsgi:error] [pid 9903:tid 139960535320320] No such workspace: default

In effect I have only one workspace: geonode, wich is the default one.
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.

Please help!

Now I can login with geonode user both in geonode that in geoserver and I see layers and maps and all thumbs.

Annalisa
_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: I can't upload layers

Annalisa Schiavon
Hi Francesco!
I run the command you suggest and I receive


I do not understand what is misconfigured in my Geoserver-Geonode!

Than, I set Active role Service = default in Geoserver (Security Settings) and I could upload my layer ... 
Now I set again Active role Service = geonode REST role service and I get this Warning in geoserver log:

WARN [geofence.cache] - org.geoserver.geofence.cache.CachedRuleReader$NoAuthException: Can't auth user [admin]



2017-07-17 16:46 GMT+02:00 Francesco Bartoli <[hidden email]>:
Hi Annalisa,

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:

$ curl http://localhost:8080/geoserver/rest/workspaces.json

you should receive something like

{"workspaces":""}

If you get 404 the it's likely geoserver is not routed through localhost.

Hope this helps

Sent from Nylas Mail, the best free email app for work

On lug 17 2017, at 3:15 pm, Annalisa Schiavon <[hidden email]> wrote:
Hi all.
I've migrated all my old layers, but now I can't upload a layer from ui.
It says:
"Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: No such workspace: default"

In apache log I find:

... Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: 
... [wsgi:error] [pid 9903:tid 139960535320320] No such workspace: default

In effect I have only one workspace: geonode, wich is the default one.
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.

Please help!

Now I can login with geonode user both in geonode that in geoserver and I see layers and maps and all thumbs.

Annalisa
_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: I can't upload layers

xbartolone
You should review a little bit the configuration of your installation in particular the section of oauth2 configuration. Maybe a look at the workshop http://geonode.org/geonode-workshop/foss4git2017/#/4/7 you attended in Genova can help.

Francesco

Sent from Nylas Mail, the best free email app for work

On lug 18 2017, at 9:53 am, Annalisa Schiavon <[hidden email]> wrote:
Hi Francesco!
I run the command you suggest and I receive


I do not understand what is misconfigured in my Geoserver-Geonode!

Than, I set Active role Service = default in Geoserver (Security Settings) and I could upload my layer ... 
Now I set again Active role Service = geonode REST role service and I get this Warning in geoserver log:

WARN [geofence.cache] - org.geoserver.geofence.cache.CachedRuleReader$NoAuthException: Can't auth user [admin]



2017-07-17 16:46 GMT+02:00 Francesco Bartoli <[hidden email]>:
Hi Annalisa,

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:

$ curl http://localhost:8080/geoserver/rest/workspaces.json

you should receive something like

{"workspaces":""}

If you get 404 the it's likely geoserver is not routed through localhost.

Hope this helps

Sent from Nylas Mail, the best free email app for work

On lug 17 2017, at 3:15 pm, Annalisa Schiavon <[hidden email]> wrote:
Hi all.
I've migrated all my old layers, but now I can't upload a layer from ui.
It says:
"Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: No such workspace: default"

In apache log I find:

... Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: 
... [wsgi:error] [pid 9903:tid 139960535320320] No such workspace: default

In effect I have only one workspace: geonode, wich is the default one.
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.

Please help!

Now I can login with geonode user both in geonode that in geoserver and I see layers and maps and all thumbs.

Annalisa
_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: I can't upload layers

Ariel Neri
Hi Annalisa, could you fix this issue? I´m facing the same problem and i would like to how you did it. Thanks!

Ariel

2017-07-18 5:02 GMT-03:00 Francesco Bartoli <[hidden email]>:
You should review a little bit the configuration of your installation in particular the section of oauth2 configuration. Maybe a look at the workshop http://geonode.org/geonode-workshop/foss4git2017/#/4/7 you attended in Genova can help.

Francesco

Sent from Nylas Mail, the best free email app for work

On lug 18 2017, at 9:53 am, Annalisa Schiavon <[hidden email]> wrote:
Hi Francesco!
I run the command you suggest and I receive


I do not understand what is misconfigured in my Geoserver-Geonode!

Than, I set Active role Service = default in Geoserver (Security Settings) and I could upload my layer ... 
Now I set again Active role Service = geonode REST role service and I get this Warning in geoserver log:

WARN [geofence.cache] - org.geoserver.geofence.cache.CachedRuleReader$NoAuthException: Can't auth user [admin]



2017-07-17 16:46 GMT+02:00 Francesco Bartoli <[hidden email]>:
Hi Annalisa,

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:

$ curl http://localhost:8080/geoserver/rest/workspaces.json

you should receive something like

{"workspaces":""}

If you get 404 the it's likely geoserver is not routed through localhost.

Hope this helps

Sent from Nylas Mail, the best free email app for work

On lug 17 2017, at 3:15 pm, Annalisa Schiavon <[hidden email]> wrote:
Hi all.
I've migrated all my old layers, but now I can't upload a layer from ui.
It says:
"Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: No such workspace: default"

In apache log I find:

... Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: 
... [wsgi:error] [pid 9903:tid 139960535320320] No such workspace: default

In effect I have only one workspace: geonode, wich is the default one.
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.

Please help!

Now I can login with geonode user both in geonode that in geoserver and I see layers and maps and all thumbs.

Annalisa
_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users



_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: I can't upload layers

Annalisa Schiavon
No, I didn't fix it.
Due to other priorities, I'm still using old geonode 2.4.
I hoped in a fix in current 2.6 stable version, but I didn't yet installed it.


2017-11-27 16:25 GMT+01:00 Ariel Neri <[hidden email]>:
Hi Annalisa, could you fix this issue? I´m facing the same problem and i would like to how you did it. Thanks!

Ariel

2017-07-18 5:02 GMT-03:00 Francesco Bartoli <[hidden email]>:
You should review a little bit the configuration of your installation in particular the section of oauth2 configuration. Maybe a look at the workshop http://geonode.org/geonode-workshop/foss4git2017/#/4/7 you attended in Genova can help.

Francesco

Sent from Nylas Mail, the best free email app for work

On lug 18 2017, at 9:53 am, Annalisa Schiavon <[hidden email]> wrote:
Hi Francesco!
I run the command you suggest and I receive


I do not understand what is misconfigured in my Geoserver-Geonode!

Than, I set Active role Service = default in Geoserver (Security Settings) and I could upload my layer ... 
Now I set again Active role Service = geonode REST role service and I get this Warning in geoserver log:

WARN [geofence.cache] - org.geoserver.geofence.cache.CachedRuleReader$NoAuthException: Can't auth user [admin]



2017-07-17 16:46 GMT+02:00 Francesco Bartoli <[hidden email]>:
Hi Annalisa,

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:

$ curl http://localhost:8080/geoserver/rest/workspaces.json

you should receive something like

{"workspaces":""}

If you get 404 the it's likely geoserver is not routed through localhost.

Hope this helps

Sent from Nylas Mail, the best free email app for work

On lug 17 2017, at 3:15 pm, Annalisa Schiavon <[hidden email]> wrote:
Hi all.
I've migrated all my old layers, but now I can't upload a layer from ui.
It says:
"Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: No such workspace: default"

In apache log I find:

... Tried to make a GET request to http://localhost:8080/geoserver/rest/workspaces/default.xml but got a 404 status code: 
... [wsgi:error] [pid 9903:tid 139960535320320] No such workspace: default

In effect I have only one workspace: geonode, wich is the default one.
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.

Please help!

Now I can login with geonode user both in geonode that in geoserver and I see layers and maps and all thumbs.

Annalisa
_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users




_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users