
At some point when I updated to 4.4.0 version of bittorrent, the tracker bttrack stopped working. In the logfile /var/log/bittorrent/bttrack.log, I was getting messages like that:
# Log Started: 2008-10-05 07:26 UTC
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/BitTorrent/RawServer_twisted.py", line 418, in _make_wrapped_call
function(*args)
File "/usr/lib/python2.5/site-packages/BitTorrent/HTTPHandler.py", line 187, in data_came_in
if not c.data_came_in(data) and not c.closed:
File "/usr/lib/python2.5/site-packages/BitTorrent/HTTPHandler.py", line 52, in data_came_in
self.next_func = self.next_func(val)
File "/usr/lib/python2.5/site-packages/BitTorrent/HTTPHandler.py", line 96, in read_header
r = self.handler.getfunc(self, self.path, self.headers)
File "/usr/lib/python2.5/site-packages/BitTorrent/track.py", line 735, in get
rsize = self.add_data(infohash, event, ip, paramslist)
...
I googled the problem; this is related message. The problem persists for more than a year in Fedora. (I am currently running Fedora 8, but I believe I had it since 7). As a workaround, edit the file /etc/sysconfig/bittorrent and add the option "--twisted 0" in tracker's options. For example, my corresponding line reads:
TRACKOPTS="--min_time_between_log_flushes 4.0 --show_names 1 --hupmonitor 1 --twisted 0"
tip: I usually run bttrack and btseed with low priorities. To do that, edit the file /etc/init.d/bttrack and modify the line
/sbin/runuser -s /bin/sh -c "$prog --port $TRACKPORT \
as
/sbin/runuser -s /bin/sh -c "nice -n 15 $prog --port $TRACKPORT \
You can adjust "15" to a priority of your liking from 0 to 15 (the higher number, the lower the priority). I do a similar modification in the file /etc/init.d/btseed.
Comments
Post new comment