Opened 11 years ago

Closed 10 years ago

Last modified 5 years ago

#1381 closed bug (Fixed)

Error calling method `web.get_host_status`

Reported by: Svenstaro Owned by: damoxc
Priority: major Milestone:
Component: Web UI Version: 1.3.0
Keywords: Cc: sh@…

Description

I'm on Arch Linux x86_64. On running the deluge-web daemon, I'm greeted by these messages:

[ERROR   ] 22:32:27 json_api:223 Error calling method `web.get_host_status`
[ERROR   ] 22:32:27 json_api:224 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 215, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 182, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 716, in get_host_status
    (host_id, host, port, user, password) = self.get_host(host_id)
TypeError: 'NoneType' object is not iterable

The webui works but top shows that the webui leaks quite a bit and ends up with 100% cpu on one core and lots of memory in use after about a day. I don't know whether the issues are related.

Change History (5)

comment:1 Changed 11 years ago by Svenstaro

  • Cc sh@… added

comment:2 Changed 11 years ago by damoxc

  • Milestone changed from 1.3.1 to 1.3.x

#1312 was regarding the high cpu usage, the 2 issues aren't related.

comment:3 Changed 11 years ago by Svenstaro

The cpu issue is indeed fixed in git, as well as this one.

However, after restarting the web service I now get:

[ERROR   ] 20:23:40 json_api:224 Error calling method `web.get_torrent_status`
[ERROR   ] 20:23:40 json_api:225 'NoneType' object has no attribute 'call'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 216, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 183, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 614, in get_torrent_status
    return component.get("SessionProxy").get_torrent_status(torrent_id, keys)
  File "/usr/lib/python2.7/site-packages/deluge/ui/sessionproxy.py", line 148, in get_torrent_status
    d = client.core.get_torrent_status(torrent_id, keys, True)
  File "/usr/lib/python2.7/site-packages/deluge/ui/client.py", line 504, in __call__
    return self.daemon.call(self.base, *args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'call'

comment:4 Changed 10 years ago by Cas

  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from defect to bug

This is a different error and if it still occurs can you please create a new ticket to avoid confusion.

comment:5 Changed 5 years ago by Cas

  • Milestone 1.3.x deleted

Milestone deleted

Note: See TracTickets for help on using tickets.