[Geoserver-users] curl and geoserver not working

Hello list.

Something strange is happening when I load a file to geoserver by curl. I observed in the tomcat manager that the process never leaves the state (s) of service:

Sent Time Stage B B Recv Client (Forwarded) Client (Current) VHost Request
S 1968673 ms 0 KB 59442 KB 172.xx.xx.xx 172.xx.xx.xx 172.xx.xx.xx /geoserver/rest/workspaces/xxxx/coveragestores/yyyy/file.geotiff PUT HTTP / 1.1

The curl command is nailed to the command line:

$> Curl -v -u user: pass -XPUT -H ‘Content-type: image / tiff’ --data-binary @ / mytif.tif http: // myip: myport / geoserver / rest / workspaces / xxxx / coveragestores /yyyy/file.geotiff

  • About to connect () to 172.19.12.24 port 8080 (# 0)
  • Trying 172.19.12.24 … Connected
  • Server using basic with auth user ‘admin’

/geoserver/rest/workspaces/xxxx/coveragestores/yyyy/file.geotiff PUT HTTP / 1.1
Authorization: Basic YWRtaW46cHJveWVjdG9VREVHRTIwMTU =
User-Agent: curl / 7.22.0 (x86_64-pc-linux-gnu) libcurl / 7.22.0 OpenSSL / zlib 1.0.1 / 1.2.3.4 libidn / librtmp 1.23 / 2.3
Host: myip: myport
Accept: * / *
Content-type: image / tiff
Content-Length: 125009107
Expect: 100-continue

<HTTP / 1.1 100 Continue

Versions software I’m using:
Apache Tomcat / 7.0.52 (Ubuntu)
2.7.2 Geoserver

Files up to 60MB me correctly, but when I get over that limit occurs as described above.

I tried changing the boundaries of Tomcat as shown below but the problem remains:

And in the file /usr/share/tomcat7-admin/manager/WEB-INF/web.xml

400428800 400428800 0

I think this must be a problem of Tomcat, but maybe the problem is Geoserver.

Thanks in advanced

Pablo

On Fri, 27 Nov 2015 09:50:05 PM pablo zader wrote:

$> Curl -v -u user: pass -XPUT -H 'Content-type: image / tiff'
--data-binary @ / mytif.tif http: // myip: myport / geoserver / rest /
workspaces / xxxx / coveragestores /yyyy/file.geotiff

Have you tried using POST instead?

Hi list and Bradh

I followed the suggestion of Brad using POST instead of PUT but still does not work (see picture)

Responde from Bradd
> $> Curl -v -u user: pass -XPUT -H ‘Content-type: image / tiff’
> --data-binary @ / mytif.tif http: // myip: myport / geoserver / rest /
> workspaces / xxxx / coveragestores /yyyy/file.geotiff
Have you tried using POST instead?"

I write again the problem: above 60 MB file the request sent is captured by tomcat and never leaves the state service (s) to move to the state Ready (R).

Thanks in advanced

Pablo

tomcat.png

···

2015-11-27 21:50 GMT-03:00 pablo zader <pzader@anonymised.com>:

Hello list.

Something strange is happening when I load a file to geoserver by curl. I observed in the tomcat manager that the process never leaves the state (s) of service:

Sent Time Stage B B Recv Client (Forwarded) Client (Current) VHost Request
S 1968673 ms 0 KB 59442 KB 172.xx.xx.xx 172.xx.xx.xx 172.xx.xx.xx /geoserver/rest/workspaces/xxxx/coveragestores/yyyy/file.geotiff PUT HTTP / 1.1

The curl command is nailed to the command line:

$> Curl -v -u user: pass -XPUT -H ‘Content-type: image / tiff’ --data-binary @ / mytif.tif http: // myip: myport / geoserver / rest / workspaces / xxxx / coveragestores /yyyy/file.geotiff

  • About to connect () to 172.19.12.24 port 8080 (# 0)
  • Trying 172.19.12.24 … Connected
  • Server using basic with auth user ‘admin’

/geoserver/rest/workspaces/xxxx/coveragestores/yyyy/file.geotiff PUT HTTP / 1.1
Authorization: Basic YWRtaW46cHJveWVjdG9VREVHRTIwMTU =
User-Agent: curl / 7.22.0 (x86_64-pc-linux-gnu) libcurl / 7.22.0 OpenSSL / zlib 1.0.1 / 1.2.3.4 libidn / librtmp 1.23 / 2.3
Host: myip: myport
Accept: * / *
Content-type: image / tiff
Content-Length: 125009107
Expect: 100-continue

<HTTP / 1.1 100 Continue

Versions software I’m using:
Apache Tomcat / 7.0.52 (Ubuntu)
2.7.2 Geoserver

Files up to 60MB me correctly, but when I get over that limit occurs as described above.

I tried changing the boundaries of Tomcat as shown below but the problem remains:

And in the file /usr/share/tomcat7-admin/manager/WEB-INF/web.xml

400428800 400428800 0

I think this must be a problem of Tomcat, but maybe the problem is Geoserver.

Thanks in advanced

Pablo

Pablo J. Zader
Lic. en Cs. de la Computación
pablo.zader@anonymised.com

"Los Grandes Hombres hablan sobre ideas…
Los Hombres Promedio hablan sobre cosas…
Los Hombres Pequeños hablan… de otros Hombres.

del libro Matemática estas ahi? A. Paenza "