radosgw: bad content length
Hi,
there are issues with radosgw and large file transfers without using multiparts (like with "s3cmd --disable-multipart put") which seem to be somehow known, but unsolved.
Things run fine if the request takes no longer than 180sec. If it takes longer, rgw_rest.cc (line 1236) gives the error "bad content length, aborting" AFTER the request has been fully completed (so no timeout issue). If the s3cmd runs less than 180sec things go through fine, if it takes longer, the same command fails.
This error is given if the variable Content-Length can not be parsed - is it possible that some timer causes this variable to get corrupted? I did not find any 180sec timer, though...
This is with ceph version 0.87 (c51c8f9d80fa4e0168aa52685b8de40e42758578), Ubuntu 14.04.
Best regards
Axel Dunkel
Quoted 12 lines · Axel Dunkel
Hi,
there are issues with radosgw and large file transfers without using multiparts (like with "s3cmd --disable-multipart put") which seem to be somehow known, but unsolved.
Things run fine if the request takes no longer than 180sec. If it takes longer, rgw_rest.cc (line 1236) gives the error "bad content length, aborting" AFTER the request has been fully completed (so no timeout issue). If the s3cmd runs less than 180sec things go through fine, if it takes longer, the same command fails.
Quoted 7 lines
This error is given if the variable Content-Length can not be parsed - is it possible that some timer causes this variable to get corrupted? I did not find any 180sec timer, though...
This is with ceph version 0.87 (
c51c8f9d80fa4e0168aa52685b8de40e42758578), Ubuntu 14.04.
That would happen if the connection is shut down for some reason (either client to apache tcp connection, or apache module to radosgw connection). This may very well be due to inactivity. At that point, rgw will get some kind of EOF status, and will verify that total received content is equal to the Content-Length field. If it's not equal you'd get that response. Are you, by any chance, using mod_fcgid as the fastcgi module (as opposed to mod_fastcgi, or mod_proxy_fcgi)?
Yehuda
Hi,
the connection is not being shut down, also not idle (constantly transferring with more than 100 Mbit/s). It (really :-) ) is the special modified libapache2-mod-fastcgi, 2.4.7~0910052141-ceph1.
Telling from the source code the issue seems not to be that the content lengths do not match, rather that the http-header Content-Length is not parseable (allthough the header is displayed fine in the debug output). If strict_strtol returns an error, to be exact - ?
Best regards
Axel Dunkel
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Yehuda Sadeh
Gesendet: Freitag, 30. Januar 2015 17:39
An: Axel Dunkel
Cc: ceph-devel
Betreff: Re: radosgw: bad content length
Quoted 12 lines · Axel Dunkel
Hi,
there are issues with radosgw and large file transfers without using multiparts (like with "s3cmd --disable-multipart put") which seem to be somehow known, but unsolved.
Things run fine if the request takes no longer than 180sec. If it takes longer, rgw_rest.cc (line 1236) gives the error "bad content length, aborting" AFTER the request has been fully completed (so no timeout issue). If the s3cmd runs less than 180sec things go through fine, if it takes longer, the same command fails.
Quoted 8 lines
This error is given if the variable Content-Length can not be parsed - is it possible that some timer causes this variable to get corrupted? I did not find any 180sec timer, though...
This is with ceph version 0.87
(c51c8f9d80fa4e0168aa52685b8de40e42758578),
Ubuntu 14.04.
That would happen if the connection is shut down for some reason (either client to apache tcp connection, or apache module to radosgw connection). This may very well be due to inactivity. At that point, rgw will get some kind of EOF status, and will verify that total received content is equal to the Content-Length field. If it's not equal you'd get that response. Are you, by any chance, using mod_fcgid as the fastcgi module (as opposed to mod_fastcgi, or mod_proxy_fcgi)?
Yehuda
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Axel Dunkel
Hi,
the connection is not being shut down, also not idle (constantly transferring with more than 100 Mbit/s). It (really :-) ) is the special modified libapache2-mod-fastcgi, 2.4.7~0910052141-ceph1.
Telling from the source code the issue seems not to be that the content lengths do not match, rather that the http-header Content-Length is not parseable (allthough the header is displayed fine in the debug output). If
strict_strtolreturns an error, to be exact - ?
In that case the time is meaningless. How big is Content-Length when it fails?
Yehuda
Quoted 40 lines
Best regards
Axel Dunkel-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Yehuda Sadeh
Gesendet: Freitag, 30. Januar 2015 17:39
An: Axel Dunkel
Cc: ceph-devel
Betreff: Re: radosgw: bad content lengthQuoted 12 lines · Axel Dunkel
Hi,
there are issues with radosgw and large file transfers without using multiparts (like with "s3cmd --disable-multipart put") which seem to be somehow known, but unsolved.
Things run fine if the request takes no longer than 180sec. If it takes longer, rgw_rest.cc (line 1236) gives the error "bad content length, aborting" AFTER the request has been fully completed (so no timeout issue). If the s3cmd runs less than 180sec things go through fine, if it takes longer, the same command fails.
Quoted 8 lines
This error is given if the variable Content-Length can not be parsed - is it possible that some timer causes this variable to get corrupted? I did not find any 180sec timer, though...
This is with ceph version 0.87
(c51c8f9d80fa4e0168aa52685b8de40e42758578),
Ubuntu 14.04.That would happen if the connection is shut down for some reason (either client to apache tcp connection, or apache module to radosgw connection). This may very well be due to inactivity. At that point, rgw will get some kind of EOF status, and will verify that total received content is equal to the Content-Length field. If it's not equal you'd get that response. Are you, by any chance, using
mod_fcgidas the fastcgi module (as opposed tomod_fastcgi, ormod_proxy_fcgi)?
Quoted 1 line
Yehuda
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines
Quoted 3 lines
Telling from the source code the issue seems not to be that the
content
Quoted 1 line
Quoted 1 line
lengths do not match, rather that the http-header Content-Length is
not
Quoted 1 line
Quoted 1 line
parseable (allthough the header is displayed fine in the debug
output). If
Quoted 4 lines
Quoted 2 lines
strict_strtolreturns an error, to be exact - ?In that case the time is meaningless. How big is Content-Length when
it fails?
CONTENT_LENGTH=2147483648
just a bit too much for a long - ?
Best regards
Axel Dunkel
Right, the we should call strict_strtoll() instead. I opened issue #10701, and sent a pull request for the fix.
Thanks,
Yehuda
Quoted 24 lines · Axel Dunkel
Quoted 3 lines
Quoted 3 lines
Telling from the source code the issue seems not to be that the
content
Quoted 1 line
Quoted 1 line
lengths do not match, rather that the http-header Content-Length is
not
Quoted 1 line
Quoted 1 line
parseable (allthough the header is displayed fine in the debug
output). If
Quoted 4 lines
Quoted 2 lines
strict_strtolreturns an error, to be exact - ?In that case the time is meaningless. How big is Content-Length when
it fails?
CONTENT_LENGTH=2147483648
just a bit too much for a long - ?Best regards
Axel Dunkel--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html