Please don't ask user questions on the developers list, it is for GeoServer
developers who are discussing issues related to the development of
GeoServer.

Especially, don't do it when you have also posted to the users list. There
are no subscribers to this list who don't also read the user list.

Ian

On Tue, 3 Dec 2019 at 13:24, Natalia Moraga <ntlmor...@gmail.com> wrote:

> 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-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>


-- 
Ian Turton
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to