You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by pablo zader <pz...@gmail.com> on 2015/12/06 20:25:48 UTC
Fwd: 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:
<Connector port = "8080" protocol = "HTTP / 1.1"
connectionTimeout = "20000"
URIEncoding = "UTF-8"
redirectPort = "8443"
MaxPostSize = "400589953" />
And in the file /usr/share/tomcat7-admin/manager/WEB-INF/web.xml
<Multipart-config>
<! - 50MB max ->
<Max-file-size> 400428800 </ max-file-size>
<Max-request-size> 400428800 </ max-request-size>
<File-size-threshold> 0 </ file-size-threshold>
</ Multipart-config>
I think this must be a problem of Tomcat, but maybe the problem is
Geoserver.
Thanks in advanced
Pablo
Re: curl and geoserver not working
Posted by Konstantin Kolinko <kn...@gmail.com>.
2015-12-06 22:25 GMT+03:00 pablo zader <pz...@gmail.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
Take several tread dumps, to see what Tomcat is actually doing.
https://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F
https://wiki.apache.org/tomcat/FAQ/Troubleshooting_and_Diagnostics#Common_Troubleshooting_Scenario
> 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
> Versions software I'm using:
> Apache Tomcat / 7.0.52 (Ubuntu)
> 2.7.2 Geoserver
Current version of Tomcat 7 (at tomcat.apache.org) is 7.0.65.
If you are hitting a bug here, you should be prepared to do an upgrade.
> 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:
>
> <Connector port = "8080" protocol = "HTTP / 1.1"
> connectionTimeout = "20000"
> URIEncoding = "UTF-8"
> redirectPort = "8443"
> MaxPostSize = "400589953" />
The above limit does not affect PUT requests.
Beware that configuration files are case-sensitive.
> And in the file /usr/share/tomcat7-admin/manager/WEB-INF/web.xml
>
> <Multipart-config>
> <! - 50MB max ->
> <Max-file-size> 400428800 </ max-file-size>
> <Max-request-size> 400428800 </ max-request-size>
> <File-size-threshold> 0 </ file-size-threshold>
> </ Multipart-config>
The above configuration belongs to the Manager web application.
It does not affect Geoserver.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Fwd: curl and geoserver not working
Posted by "André Warnier (tomcat)" <aw...@ice-sa.com>.
On 06.12.2015 20:25, pablo zader wrote:
> 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:
>
> <Connector port = "8080" protocol = "HTTP / 1.1"
> connectionTimeout = "20000"
> URIEncoding = "UTF-8"
> redirectPort = "8443"
> MaxPostSize = "400589953" />
>
> And in the file /usr/share/tomcat7-admin/manager/WEB-INF/web.xml
>
> <Multipart-config>
> <! - 50MB max ->
> <Max-file-size> 400428800 </ max-file-size>
> <Max-request-size> 400428800 </ max-request-size>
> <File-size-threshold> 0 </ file-size-threshold>
> </ Multipart-config>
>
> I think this must be a problem of Tomcat, but maybe the problem is
> Geoserver.
>
Hello Pablo.
Nothing to do (maybe) with your problem itself, but in your messaqe to the liat, above,
there are a lot of spaces that do not look like they should be there.
For example, in
> $> 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
and in
>> Host: myip: myport
>> Accept: * / *
>> Content-type: image / tiff
and in
> <Max-request-size> 400428800 </ max-request-size>
Since any of these spaces could in principle cause something to malfunction, could you
repost your question with all the not-original spaces removed ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org