Page 1 of 1

Invisible Torrents with Thin Client

Posted: Sat Dec 03, 2016 11:46 pm
by acecubed
This problem was last reported over a year ago but the resolution was "remove all your torrents" which seems unacceptable. There seems to be scattered reports of it a few years before that too, which were bug-tracked and resolved. However, I'm getting it again. Error logs show an index out of range error. There are a few instances of these errors being reported as well, but they seem to have been resolved 5-8 years ago according to the bug tracker.

I followed the wiki for setting up thin clients and it was working previously.

Server: Deluge 1.3.13+2+g6c73105-1 on Arch Linux.
Thin Client: 1.3.13 on Windows 10

I've set up port forwarding as per the wiki and the screenshot below is what I see. Forgive the massive number of "checking" torrents. Some power issues with my NAS caused every torrent to error out and I had to recheck them all, but this issue has been persisting for a few weeks before this (didn't have time to troubleshoot it until now).

http://imgur.com/a/DfDlk

I have tried configuring the forward via 127.0.0.1 and using that, and I've also tried via 127.0.0.2 and using that. Neither makes any difference. The web-ui works fine, but with so many torrents it can be slow and crash/disconnect a lot and need refreshing. There's also the fact that the web-ui is missing some of the features of GTK client, especially with a few plugins. I would use it locally except my server is headless so that's not an option for me.

Error logging gives me the following:

Code: Select all

[ERROR   ] 18:38:09 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: core.get_torrents_status({}, [], True)
--------------------------------------------------------------------------------
  File "/usr/lib/python2.7/site-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/deluge/core/core.py", line 461, in get_torrents_status
    status_dict[torrent_id] = self.get_torrent_status(torrent_id, keys, diff)
  File "/usr/lib/python2.7/site-packages/deluge/core/core.py", line 440, in get_torrent_status
    status = self.torrentmanager[torrent_id].get_status(keys, diff)
  File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line 795, in get_status
    status_dict[key] = fns[key]()
  File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line 590, in get_file_progress
    ret.append(float(file_progress[i]) / float(f["size"]))

IndexError: list index out of range
--------------------------------------------------------------------------------
[ERROR   ] 18:38:09 component:118 [Failure instance: Traceback (failure with no frames): <class 'deluge.ui.client.DelugeRPCError'>: <deluge.ui.client.DelugeRPCError object at 0x04370C70>]
[ERROR   ] 18:38:13 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: core.get_torrents_status({}, [], True)
--------------------------------------------------------------------------------
  File "/usr/lib/python2.7/site-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/deluge/core/core.py", line 461, in get_torrents_status
    status_dict[torrent_id] = self.get_torrent_status(torrent_id, keys, diff)
  File "/usr/lib/python2.7/site-packages/deluge/core/core.py", line 440, in get_torrent_status
    status = self.torrentmanager[torrent_id].get_status(keys, diff)
  File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line 795, in get_status
    status_dict[key] = fns[key]()
  File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line 590, in get_file_progress
    ret.append(float(file_progress[i]) / float(f["size"]))

IndexError: list index out of range
--------------------------------------------------------------------------------
[ERROR   ] 18:38:13 component:118 [Failure instance: Traceback (failure with no frames): <class 'deluge.ui.client.DelugeRPCError'>: <deluge.ui.client.DelugeRPCError object at 0x04370E90>]
I'm not sure what to do about a "list index out of range" error. Any ideas?

Re: Invisible Torrents with Thin Client

Posted: Sun Dec 04, 2016 7:23 am
by Cas

Re: Invisible Torrents with Thin Client

Posted: Mon Dec 05, 2016 5:50 am
by acecubed
This happened to me before my crash and therefore before I was checking any files. For example:

http://imgur.com/a/UDDWV

No files being checked, still get invisible torrents. The difference is now I only get 1 "index out of range" error.

Code: Select all

[ERROR   ] 00:46:12 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: core.get_torrents_status({}, [], True)
--------------------------------------------------------------------------------
  File "/usr/lib/python2.7/site-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/deluge/core/core.py", line 461, in get_torrents_status
    status_dict[torrent_id] = self.get_torrent_status(torrent_id, keys, diff)
  File "/usr/lib/python2.7/site-packages/deluge/core/core.py", line 440, in get_torrent_status
    status = self.torrentmanager[torrent_id].get_status(keys, diff)
  File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line 795, in get_status
    status_dict[key] = fns[key]()
  File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line 590, in get_file_progress
    ret.append(float(file_progress[i]) / float(f["size"]))

IndexError: list index out of range
--------------------------------------------------------------------------------
[ERROR   ] 00:46:12 component:118 [Failure instance: Traceback (failure with no frames): <class 'deluge.ui.client.DelugeRPCError'>: <deluge.ui.client.DelugeRPCError object at 0x04375C70>]

Re: Invisible Torrents with Thin Client

Posted: Mon Dec 05, 2016 9:41 am
by Cas
Same error same fix.

Re: Invisible Torrents with Thin Client

Posted: Tue Dec 06, 2016 12:19 am
by acecubed
Works fine with both 1.13.13 and 1.13-stable clients connecting to a 1.13-stable server.

Thanks!