[GeoNode-devel] Errors connecting GeoNode with GeoServer properly

Corina Tudorache corina_ww at yahoo.com
Thu Nov 23 05:45:49 PST 2017


Hello,
I' ve been trying for a few days to connect GeoNode with GeoServer properly (in a server environment, not virtual machine), that implies to be able to import more than 3 layer to GeoNode, to be able to update layers from GeoServer to GeoNode, to change styles for layers in GeoNode, to create maps. I have followed the instructions from this links:GeoNode (v2.6) installation on Ubuntu — GeoNode 2.6 documentation

| 
| 
|  | 
GeoNode (v2.6) installation on Ubuntu — GeoNode 2.6 documentation


 |

 |

 |


For the PUBLIC_LOCATION variable I put the public IP of the machine

 http://training.geonode.geo-solutions.it/002_install_and_admin/002_geonode_install/install_geoserver_application.html

I have used the versions of GeoNode 2.6.3 and 2.7.4. 
I am able to import layers in GeoServer when I run paver setup_data and when I run python manage.py importlayers <data_dir>
I was not able to upload layers into GeoNode from command line:
I get this error when running this command python manage.py importlayers  :" 
Using name as requested
Checking for permissions.
There are no permissions for this object, setting default perms.
>>> Step 2. Make sure we are not trying to overwrite a existing resource named [san_andres_y_providencia_location] with the wrong type
GET http://localhost/geoserver/rest/workspaces/default.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/san_andres_y_providencia_location.xml
GET http://localhost/geoserver/rest/workspaces/geonode/coveragestores/san_andres_y_providencia_location.xml
GET http://localhost/geoserver/rest/workspaces/geonode/wmsstores/san_andres_y_providencia_location.xml
>>> Step 3. Identifying if [san_andres_y_providencia_location] is vector or raster and gathering extra files
Uploading vector layer: [/home/geonode/geonode/geonode/uploaded/layers/san_andres_y_providencia_location.shp]
>>> Step 4. Starting upload of [san_andres_y_providencia_location] to GeoServer...
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data.xml
PUT http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes.xml
Finished upload of [san_andres_y_providencia_location] to GeoServer without errors.
>>> Step 5. Generating the metadata for [san_andres_y_providencia_location] after successful import to GeoSever
>>> Step 6. Making sure [san_andres_y_providencia_location] has a valid projection
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes/san_andres_y_providencia_location.xml
>>> Step 7. Creating style for [san_andres_y_providencia_location]
GET http://localhost/geoserver/rest/layers/san_andres_y_providencia_location.xml
GET http://PUBLIC_IP/geoserver/rest/styles/point.xml
[failed] Layer for '/usr/local/lib/python2.7/dist-packages/gisdata/data/good/vector/san_andres_y_providencia_location.shp' (1/8)
"
And this error when running python manage.py updatelayers --ignore-errors -v2
"
WARNINGS:monitoring.RequestEvent.resources: (fields.W340) null has no effect on ManyToManyField.
Inspecting the available layers in GeoServer ...
GET http://localhost/geoserver/rest/workspaces.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores.xml
GET http://localhost/geoserver/rest/workspaces/geonode/coveragestores.xml
GET http://localhost/geoserver/rest/workspaces/geonode/wmsstores.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes.xml
GET http://localhost/geoserver/rest/workspaces/geonode/coveragestores/relief_san_andres/coverages.xml
GET http://localhost/geoserver/rest/workspaces/geonode/coveragestores/test_grid/coverages.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes/boxes_with_date.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes/boxes_with_dates_bc.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes/boxes_with_year_field.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes/boxes_with_year_field2.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes/boxes_with_end_date.xml
GET http://localhost/geoserver/rest/workspaces/geonode/coveragestores/relief_san_andres/coverages/relief_san_andres.xml
GET http://localhost/geoserver/rest/workspaces/geonode/coveragestores/test_grid/coverages/test_grid.xml
Found 7 layers, starting processing
Checking for permissions.
There are no permissions for this object, setting default perms.
GET http://localhost/geoserver/rest/workspaces.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores.xml
GET http://localhost/geoserver/rest/workspaces/geonode/coveragestores.xml
GET http://localhost/geoserver/rest/workspaces/geonode/wmsstores.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes/boxes_with_date.xml
PUT http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes/boxes_with_date.xml
GET http://localhost/geoserver/rest/layers/boxes_with_date.xml
PUT http://localhost/geoserver/rest/layers/boxes_with_date.xml
PUT http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data/featuretypes/boxes_with_date.xml
GET http://localhost/geoserver/rest/workspaces/geonode/datastores/geonode_data.xml
Creating Thumbnail for Layer [geonode:boxes_with_date]
Created [the_geom] attribute for [boxes_with_date]
Created [id] attribute for [boxes_with_date]
Created [date] attribute for [boxes_with_date]
GET http://localhost/geoserver/rest/layers/boxes_with_date.xml
GET http://PUBLIC_IP/geoserver/rest/styles/polygon.xml
[failed] Layer boxes_with_date (1/7)

I don't really know where to look anymore to solve this problem. I am not sure if  the problem is a bad connection between apache  with wsgi server, or somewhere in the configuration files (change an IP or port).
Any advice is much appreciated.
Kind regards,Corina

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20171123/018d9bc5/attachment.html>


More information about the geonode-devel mailing list