httplib.BadStatusLine exception occurred once in 10000 "tahoe put"s to the same SDMF writecap #1731

Open
opened 2012-05-08 21:17:53 +00:00 by zancas · 3 comments
Traceback (most recent call last):
> File "/home/arc/tahoe-lafs/support/bin/tahoe", line 9, in <module>
    load_entry_point(\'allmydata-tahoe==1.9.0.post132\', \'console_scripts\', \'tahoe\')()
> File "/home/arc/tahoe-lafs/src/allmydata/scripts/runner.py", line 116, in run
    rc = runner(sys.argv[1:], install_node_control=install_node_control)
> File "/home/arc/tahoe-lafs/src/allmydata/scripts/runner.py", line 102, in runner
    rc = cli.dispatchcommand(so)
> File "/home/arc/tahoe-lafs/src/allmydata/scripts/cli.py", line 541, in put
    rc = tahoe_put.put(options)
> File "/home/arc/tahoe-lafs/src/allmydata/scripts/tahoe_put.py", line 85, in put
    resp = do_http("PUT", url, infileobj)
> File "/home/arc/tahoe-lafs/src/allmydata/scripts/common_http.py", line 68, in do_http
    return c.getresponse()
> File "/usr/lib/python2.7/httplib.py", line 1027, in getresponse
    response.begin()
> File "/usr/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
> File "/usr/lib/python2.7/httplib.py", line 371, in _read_status
    raise [BadStatusLine](wiki/BadStatusLine)(line)
httplib.BadStatusLine: \'\'
``` Traceback (most recent call last): > File "/home/arc/tahoe-lafs/support/bin/tahoe", line 9, in <module> load_entry_point(\'allmydata-tahoe==1.9.0.post132\', \'console_scripts\', \'tahoe\')() > File "/home/arc/tahoe-lafs/src/allmydata/scripts/runner.py", line 116, in run rc = runner(sys.argv[1:], install_node_control=install_node_control) > File "/home/arc/tahoe-lafs/src/allmydata/scripts/runner.py", line 102, in runner rc = cli.dispatchcommand(so) > File "/home/arc/tahoe-lafs/src/allmydata/scripts/cli.py", line 541, in put rc = tahoe_put.put(options) > File "/home/arc/tahoe-lafs/src/allmydata/scripts/tahoe_put.py", line 85, in put resp = do_http("PUT", url, infileobj) > File "/home/arc/tahoe-lafs/src/allmydata/scripts/common_http.py", line 68, in do_http return c.getresponse() > File "/usr/lib/python2.7/httplib.py", line 1027, in getresponse response.begin() > File "/usr/lib/python2.7/httplib.py", line 407, in begin version, status, reason = self._read_status() > File "/usr/lib/python2.7/httplib.py", line 371, in _read_status raise [BadStatusLine](wiki/BadStatusLine)(line) httplib.BadStatusLine: \'\' ```
zancas added the
unknown
normal
defect
1.9.1
labels 2012-05-08 21:17:53 +00:00
zancas added this to the undecided milestone 2012-05-08 21:17:53 +00:00
davidsarah commented 2012-05-09 01:22:11 +00:00
Owner

It looks as though either the gateway failed to output a valid first line in its HTTP response, or the CLI failed to read that line correctly.

It looks as though either the gateway failed to output a valid first line in its HTTP response, or the CLI failed to read that line correctly.
tahoe-lafs added
code-frontend
major
and removed
unknown
normal
labels 2012-05-09 01:22:11 +00:00
tahoe-lafs changed title from With 10000 "tahoe put" 's to the same SDMF Write Cap A Previously Unseen Error was generated to httplib.BadStatusLine exception occurred once in 10000 "tahoe put"s to the same SDMF writecap 2012-05-09 01:22:11 +00:00
davidsarah commented 2012-05-09 01:25:40 +00:00
Owner

The first thing to do here is to see if we can reproduce it with, say, 100000 CLI requests. We don't currently know whether this occurs only for the specific operation in the description (tahoe put on a writecap), or it is something that can happen with low probability on any connection to the gateway.

The first thing to do here is to see if we can reproduce it with, say, 100000 CLI requests. We don't currently know whether this occurs only for the specific operation in the description (`tahoe put` on a writecap), or it is something that can happen with low probability on any connection to the gateway.
davidsarah commented 2012-10-16 15:11:29 +00:00
Owner

A httplib.BadStatusLine exception also occurred in #1824 when the gateway was killed during a CLI operation. We should probably just catch it and report a friendlier error.

A `httplib.BadStatusLine` exception also occurred in #1824 when the gateway was killed during a CLI operation. We should probably just catch it and report a friendlier error.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#1731
No description provided.