[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2926: `tahoe status` unhandled KeyError: 'progress'
Tahoe-LAFS
trac at tahoe-lafs.org
Wed May 23 12:24:35 UTC 2018
#2926: `tahoe status` unhandled KeyError: 'progress'
-------------------------------+---------------------------
Reporter: exarkun | Owner:
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: code-frontend-cli | Version:
Keywords: | Launchpad Bug:
-------------------------------+---------------------------
{{{
$ tahoe status
Statistics (for last 2 seconds):
uploaded 0 B in 0 files
downloaded 0 B in 0 files
Active operations:
╓ type ╥ storage index ╥ progress ╥ status
message
╟───────╫────────────────────────────╫────────────────────────╫─────────────────────
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "site-packages/twisted/_threads/_threadworker.py", line 46, in work
task()
File "site-packages/twisted/_threads/_team.py", line 190, in doWork
task()
--- <exception caught here> ---
File "site-packages/twisted/python/threadpool.py", line 250, in
inContext
result = inContext.theWork()
File "site-packages/twisted/python/threadpool.py", line 266, in <lambda>
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "site-packages/twisted/python/context.py", line 122, in
callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "site-packages/twisted/python/context.py", line 85, in
callWithContext
return func(*args,**kw)
File "tahoe-lafs/src/allmydata/scripts/cli.py", line 579, in status
return tahoe_status.do_status(options)
File "tahoe-lafs/src/allmydata/scripts/tahoe_status.py", line 146, in
do_status
total = op['progress']
exceptions.KeyError: 'progress'
}}}
This is moderately reproduceable against my client node. Hacking the code
a bit, I see that when it occurs, `op` (at least sometimes) is:
{{{
{u'mode': u'MODE_READ',
u'status': u'Sending 1 initial queries',
u'storage-index-string': u'vfl23nfdydohpriimglb7dynje',
u'total-size': u'-NA-',
u'type': u'mapupdate'}
}}}
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2926>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list