hello all,
I'm trying to upload a netcdf file to geoserver, without success.
I did the following steps:
- create the workspace without problem
- then the PUT request for the file, following the doc
https://docs.geoserver.org/latest/en/api/#/latest/en/api/1.0.0/coveragestores.yaml
:
curl -u admin:geoserver -v -X PUT "
http://localhost/geoserver/rest/workspaces/WP1/coveragestores/CV1/file.netcdf?filename=%2Fhome%2Flocal%2Ftest1.zip";
-H  "accept: application/json" -H  "content-type: application/json"
the file test1.zip, located in /home/local is a zipped netcdf file (zip
test1.zip myfile.nc) and is readable by all.
The answer is 500

The logs file contains:
[org.geoserver.rest.RestException 500 INTERNAL_SERVER_ERROR: Could not
acquire reader for coverage.]
2019-12-03 15:38:02,322 INFO [rest.catalog] - Using existing coverage
store: CV1
2019-12-03 15:38:02,324 WARN [io.netcdf] - unable to connect to the
specified source
file:/opt/tomcat/webapps/geoserver/data/data/WP1/CV1/var/tmp/testnm.zip
org.geotools.data.DataSourceException: unable to connect to the specified
source
file:/opt/tomcat/webapps/geoserver/data/data/WP1/CV1/var/tmp/testnm.zip

the file in tomcat dir is empty:
-rw-r----- 1 tomcat8 tomcat8 0 Dec  3 15:38
/opt/tomcat/webapps/geoserver/data/data/WP1/CV1/var/tmp/testnm.zip

I am also able to to the same process using the webgui and it works well.
Only the REST API is a problem.

Anybody can help?
Thanks in advance

Natalia


-- 
Natalia Moraga
GĂ©ographe / 07 66 23 87 33
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to