deluge+json error?, daemon wont start

General support for problems installing or using Deluge
Post Reply
kas
New User
New User
Posts: 4
Joined: Wed Feb 08, 2012 9:06 am

deluge+json error?, daemon wont start

Post 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?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge+json error?, daemon wont start

Post 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.
kas
New User
New User
Posts: 4
Joined: Wed Feb 08, 2012 9:06 am

Re: deluge+json error?, daemon wont start

Post 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?
kas
New User
New User
Posts: 4
Joined: Wed Feb 08, 2012 9:06 am

Re: deluge+json error?, daemon wont start

Post by kas »

Attached is contents of: /home/user/.config/deluge
Attachments
2-8-2012 9-59-48 AM.png
2-8-2012 9-59-48 AM.png (6.14 KiB) Viewed 2486 times
kas
New User
New User
Posts: 4
Joined: Wed Feb 08, 2012 9:06 am

Re: deluge+json error?, daemon wont start

Post by kas »

Not sure what the deal was but ended up building from source and all is good now.
Post Reply