All sort of errors with 0.1.0

Hello! Thanks for all your good work on the latest version of BTQueue! I do have a lot of problems running it though. I get lots of errors with backtraces, such as: EXCEPTION: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call function(*args) File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont it.next() File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck self.infohash, errorfunc, resumefile) File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__ data = self.storage.read(piece_size * i, self._piecelen(i)) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read h = self._get_file_handle(filename, False) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle handlebuffer.remove(filename) ValueError: list.remove(x): x not in list FAILURE: 34 EXCEPTION: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call function(*args) File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont it.next() File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck self.infohash, errorfunc, resumefile) File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__ data = self.storage.read(piece_size * i, self._piecelen(i)) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read h = self._get_file_handle(filename, False) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle handlebuffer.remove(filename) ValueError: list.remove(x): x not in list FAILURE: 36 EXCEPTION: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call function(*args) File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont it.next() File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck self.infohash, errorfunc, resumefile) File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__ data = self.storage.read(piece_size * i, self._piecelen(i)) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read h = self._get_file_handle(filename, False) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle handlebuffer.remove(filename) ValueError: list.remove(x): x not in list FAILURE: 7 EXCEPTION: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call function(*args) File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont it.next() File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck self.infohash, errorfunc, resumefile) File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__ data = self.storage.read(piece_size * i, self._piecelen(i)) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read h = self._get_file_handle(filename, False) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle handlebuffer.remove(filename) ValueError: list.remove(x): x not in list FAILURE: 12 EXCEPTION: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call function(*args) File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont it.next() File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck self.infohash, errorfunc, resumefile) File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__ data = self.storage.read(piece_size * i, self._piecelen(i)) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read h = self._get_file_handle(filename, False) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle handlebuffer.remove(filename) ValueError: list.remove(x): x not in list FAILURE: 13 EXCEPTION: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call function(*args) File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont it.next() File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck self.infohash, errorfunc, resumefile) File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__ data = self.storage.read(piece_size * i, self._piecelen(i)) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read h = self._get_file_handle(filename, False) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle handlebuffer.remove(filename) ValueError: list.remove(x): x not in list FAILURE: 45 >>> pause 46 >>> FAILURE: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call function(*args) File "/usr/local/lib/python2.4/site-packages/BitQueue/launchmanycore_bittorrent.py", line 381, in terminated item = self.downloads[torrent.infohash] KeyError: 'B\x9e\xb0\xec\xab,j\x11P. H\xf1\x99\xfe\xc6%\xf0\xb4\xac' EXCEPTION: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 46 7, in _make_wrapped_call function(*args) File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont it.next() File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck self.infohash, errorfunc, resumefile) File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__ data = self.storage.read(piece_size * i, self._piecelen(i)) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read h = self._get_file_handle(filename, False) File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 169, in _get_file_handle del self.handles[oldfile] KeyError: '/home/btorrent/incoming/bla.avi' FAILURE: 61 And so on. Furthermore, I had 64 torrents running in 0.0.18. For some reason, 0.1.0 wants to recheck all of these torrents (they were already in seed mode), and starts doing so. But: it starts checking all 64 torrents at once! What's more, using my system's tracing utility, I can see that it is reading each file one byte at a time! Letting it check all 64 torrents (about 20 gigabytes total) would take forever... Thanks for your good work and I hope you can use these reports to make version 0.1.0 a little more stable. Oh, by the way, I'm using Python 2.4 on FreeBSD 4.x. CU! Sven

python 2.4 on freebsd

Thanks! I'm mainly testing on Ubuntu with Python 2.4 without problem. For hash checking, I will try to find better to control the concurrency.

strange metadata

Could you please send me a sample metadata that you have? I think this problem caused by something different in that torrent relate to path name.

Re: strange metadata

I'll try 0.1.0 again, maybe tonight, without reusing my existing .btqueue directory. Perhaps the problem was simply that the 0.0.18 files are not compatible with 0.1.0? I'll just dump a list of .torrent files that I'm running in 0.0.18 and add them from scratch to 0.1.0. Perhaps that will work correctly. I'll let you know! Sven

Re: python 2.4 on freebsd

I'll try and find out why my version of Python is reading the files one byte at a time. I'm building a Python binary with debugging information right now, and I'll run it in gdb so that I can find out why it's doing it. Again, I'll let you know :-) Thanks! Sven

Post new comment