[tahoe-dev] use cp and put CLI to upload files to tahoe failed
huang jun
hjwsm1989 at gmail.com
Sat Apr 7 12:19:40 UTC 2012
we build tahoe depend on v1.9.1, and two problems occured many times,
the backtrace is:
just use CLI "cp " and "put" to upload files and dirs, i'm so
confused by this.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py",
line 793, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python2.7/dist-packages/foolscap/eventual.py",
line 26, in _turn
cb(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 361, in callback
self._startRunCallbacks(result)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 455, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 542, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/filenode.py",
line 855, in <lambda>
self._modify_once(modifier, first_time))
- Ignored:
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/filenode.py",
line 881, in _modify_once
d = self._try_to_download_data()
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/filenode.py",
line 959, in _try_to_download_data
d = self._read(c, fetch_privkey=True)
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/filenode.py",
line 980, in _read
d = r.download(consumer, offset, size)
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/retrieve.py",
line 237, in download
self._setup_download()
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/retrieve.py",
line 295, in _setup_download
assert len(self.remaining_sharemap) >= k
exceptions.AssertionError:
2012-04-07 16:30:03+0800 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py",
line 793, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python2.7/dist-packages/foolscap/eventual.py",
line 26, in _turn
cb(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 361, in callback
self._startRunCallbacks(result)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 455, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 542, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/filenode.py",
line 855, in <lambda>
self._modify_once(modifier, first_time))
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/filenode.py",
line 881, in _modify_once
d = self._try_to_download_data()
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/filenode.py",
line 959, in _try_to_download_data
d = self._read(c, fetch_privkey=True)
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/filenode.py",
line 980, in _read
d = r.download(consumer, offset, size)
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/retrieve.py",
line 237, in download
self._setup_download()
File
"/usr/local/lib/python2.7/dist-packages/allmydata/mutable/retrieve.py",
line 277, in _setup_download
shares = versionmap[self.verinfo]
exceptions.KeyError: (6,
'\xc3b\x8e\xec*\xd2O\x01\x88\xee\xcc\xda\xc0\x8b\xb6P\xcc`\xbf<u\xebVB\x8b2\xd2\xb4{\xe4P\xe0',
'(\xfe\x0e\xd5w\xe8\xf3#N\xb9\x05\xb5a\x88\xef\xfb', 609, 607, 3, 10,
'\x00\x00\x00\x00\x00\x00\x00\x00\x06\xc3b\x8e\xec*\xd2O\x01\x88\xee\xcc\xda\xc0\x8b\xb6P\xcc`\xbf<u\xebVB\x8b2\xd2\xb4{\xe4P\xe0(\xfe\x0e\xd5w\xe8\xf3#N\xb9\x05\xb5a\x88\xef\xfb\x03\n\x00\x00\x00\x00\x00\x00\x02a\x00\x00\x00\x00\x00\x00\x02_',
(('enc_privkey', 1026), ('EOF', 2240), ('share_data', 823),
('signature', 399), ('block_hash_tree', 791), ('share_hash_chain',
655)))
Regards
------------
huangjun
More information about the tahoe-dev
mailing list