Page 1 of 1

deluge+json error?, daemon wont start

Posted: Wed Feb 08, 2012 9:10 am
by kas
Hello,

Deluge 1.3.3-2 off unstable on Debian Squeeze

When I try to start the deluge daemon from the webui this shows up in screen:

Code: Select all

###@###:~$ screen deluge-web
  File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 219, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 186, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 789, in start_daemon
    client.start_daemon(port, get_config_dir())
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 585, in start_daemon
    raise e
OSError: [Errno 2] No such file or directory
[ERROR   ] 10:00:40 client:584 [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 582, in start_daemon
    subprocess.call(["deluged", "--port=%s" % port, "--config=%s" % config])
  File "/usr/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[ERROR   ] 10:00:40 json_api:227 Error calling method `web.start_daemon`
[ERROR   ] 10:00:40 json_api:228 [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 219, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 186, in _exec_local
    return meth(*params)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 789, in start_daemon
    client.start_daemon(port, get_config_dir())
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 585, in start_daemon
    raise e
OSError: [Errno 2] No such file or directory

Any ideas?

Re: deluge+json error?, daemon wont start

Posted: Wed Feb 08, 2012 11:19 am
by Cas
OSError: [Errno 2] No such file or directory
It cannot create a config directory possibly because you are running as a user without a home directory.

Also you do not need to use screen, simply use '-f' to fork to background.

Re: deluge+json error?, daemon wont start

Posted: Wed Feb 08, 2012 5:33 pm
by kas
I have tried both running it as a user with a home directory and as root. Same errors for both.

Any other ideas?

Re: deluge+json error?, daemon wont start

Posted: Wed Feb 08, 2012 6:02 pm
by kas
Attached is contents of: /home/user/.config/deluge

Re: deluge+json error?, daemon wont start

Posted: Wed Feb 08, 2012 6:54 pm
by kas
Not sure what the deal was but ended up building from source and all is good now.