Correct way to start deluge on sw13/connect problem

General support for problems installing or using Deluge
Post Reply
ljones
New User
New User
Posts: 4
Joined: Sat Jul 17, 2010 7:41 pm

Correct way to start deluge on sw13/connect problem

Post by ljones »

Hello All :)

I've just finished compiling (largely from slackbuilds deluge and its dependencies but I'm not sure how to start up deluge correctly under slackware 13.1 (32-bit). I've seen there are init scripts here but none of them are for slackware 13.1 . I'm currently using deluge 1.2 made from slackbuilds .

I'm guessing I could just put deluged and deluge-web (I'm wanting to use the web interface) in /etc/rc.d/rc.local but am I right in saying that's not the proper way to start deluge?

Edit
I followed the instructions here (the first part, using respawn) and got deluge up and running but there's still a problem. After first run I found the connection manager connects ok to 127.0.0.1 (I'm using the web interface) - but any attempts at changing the auth file (to add another user) seems to kill 127.0.0.1 permanently and 127.0.0.1 refuses to go online if I add anything to the auth file. Removing what I added dosen't fix the problem either, it still remains offline. Trying to login as another user (if I add another user to the auth) file also dosen't work, cannot go online.

deluge verison = 1.2.0
libtorrent version = 0.12.6
libtorrent-rasterbar version = 0.15.0
OS = Slackware 13.1, 32 bit
x.x

Thanks

ljones
ljones
New User
New User
Posts: 4
Joined: Sat Jul 17, 2010 7:41 pm

Re: Correct way to start deluge on sw13/connect problem

Post by ljones »

Ok, well I've gotten a little further by uninstalling deluge 1.2 (the slackbuild) and downloading+compiling manually (just deluge though) deluge 1.3 . That stops 127.0.0.1 going offline if I make changed to the auth file but I must admit I'm confused.

Let's say - just as a test - I log in normally to slackware 13.1 as username root, and password aaaaa (just a test, mind you!). How do I need to go about changing the auth file and adding to the connection manager?

So (for example) if I add a line like "root:aaaaa:5" to auth what do I put in the connection manager (by clicking the 'add' button)? I see 4 fields, host, port, username and password. Is the host the IP number of the PC with deluge on it or the IP number of the router I use to connect to the internet with? And do I put the slackware username and passwords for the fields username and password?

thanks

ljones
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Correct way to start deluge on sw13/connect problem

Post by johnnyg »

You shouldn't really run deluge as root.

host is the IP of the PC with deluged on it
port is the port deluged is listening on
username and password are the first two fields you put in the auth file
so if you put "root:aaaaa:10" then you should use "root" as username and "aaaaa" as password.
ljones
New User
New User
Posts: 4
Joined: Sat Jul 17, 2010 7:41 pm

Re: Correct way to start deluge on sw13/connect problem

Post by ljones »

Thanks for that though I'm still having a problem. I put in the IP address of the PC running deluged (192.168.0.26) then root and aaaaa into the connection manager but it still dosen't seem to work. Here's my auth file, btw;

Code: Select all

localclient:f951880fa9751fe12c56d61a889d2e853d82a4e3:10
root:aaaaa:10
I added 192.168.0.26 to the conenction manager along with root and aaaaa (as a test) and left the port number (58846) as default. However the connection manager will not connect to 192.168.0.26, only to 127.0.0.1; I get this in the connection manager;

Code: Select all

Status       Host               Version
Connected    127.0.0.1:58846    1.3.0-rc1
Offline      192.168.0.26:58846
There are some errors in /var/deluge-webui.log though (deluge.log was blank);

Code: Select all

[ERROR   ] 21:36:16 json_api:214 Error calling method `web.get_host_status`
[ERROR   ] 21:36:16 json_api:215 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 206, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 173, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 704, in get_host_status
    (host_id, host, port, user, password) = self.get_host(host_id)
TypeError: 'NoneType' object is not iterable
/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py:217: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  error = {"message": e.message, "code": 3}
[ERROR   ] 21:36:16 json_api:214 Error calling method `web.get_host_status`
[ERROR   ] 21:36:16 json_api:215 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 206, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 173, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 704, in get_host_status
    (host_id, host, port, user, password) = self.get_host(host_id)
TypeError: 'NoneType' object is not iterable
[ERROR   ] 21:36:16 json_api:214 Error calling method `web.get_host_status`
[ERROR   ] 21:36:16 json_api:215 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 206, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 173, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 704, in get_host_status
    (host_id, host, port, user, password) = self.get_host(host_id)
TypeError: 'NoneType' object is not iterable
I wonder what the "web.get_host_status" error message relates to?


thanks

Edit Going to reinstall from scratch -- I found that the .config/deluge files on my system were still from 1.2. I tried removing them and running deluge/deluge-console to try to replace them but had nothing but problems (for example could not connect to console, bad password etc).

ljones
ljones
New User
New User
Posts: 4
Joined: Sat Jul 17, 2010 7:41 pm

Re: Correct way to start deluge on sw13/connect problem

Post by ljones »

Ok I completely cleaned off the entire system, reinstalled slackware 13.1 and the packages (less deluge) I built (here's a list);

Code: Select all

Mako-0.3.2-i486-1_SBo.tgz
libsigc++-2.2.7-i486-1_SBo.tgz
libtorrent-0.12.6-i486-1_SBo.tgz
libtorrent-rasterbar-0.15.0-i486-1_SBo.tgz
pyOpenSSL-0.8-i486-1_SBo.tgz
pysetuptools-0.6c11-i486-1_SBo.tgz
python-twisted-8.2.0-i486-1_SBo.tgz
python2-chardet-2.0.1-i486-1_SBo.tgz
pyxdg-0.18-i486-1_SBo.tgz
zope.interface-3.5.0-i486-1_SBo.tgz
Deluge was built from source. version 1.3

These are largely from slackbuilds.

Still getting all the errors (same as above) though!

Code: Select all

[ERROR   ] 00:26:22 json_api:214 Error calling method `web.get_host_status`
[ERROR   ] 00:26:22 json_api:215 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 206, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 173, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 704, in get_host_status
    (host_id, host, port, user, password) = self.get_host(host_id)
TypeError: 'NoneType' object is not iterable
[ERROR   ] 00:26:22 json_api:214 Error calling method `web.get_host_status`
[ERROR   ] 00:26:22 json_api:215 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 206, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 173, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 704, in get_host_status
    (host_id, host, port, user, password) = self.get_host(host_id)
TypeError: 'NoneType' object is not iterable
[ERROR   ] 00:26:22 json_api:214 Error calling method `web.get_host_status`
[ERROR   ] 00:26:22 json_api:215 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 206, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 173, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.6/site-packages/deluge-1.3.0_rc1-py2.6.egg/deluge/ui/web/json_api.py", line 704, in get_host_status
    (host_id, host, port, user, password) = self.get_host(host_id)
TypeError: 'NoneType' object is not iterable
Ok I admit it, I'm stumped.

x.x

ljones
Post Reply