Startup Error

General support for problems installing or using Deluge
Post Reply
gprime
New User
New User
Posts: 7
Joined: Thu Apr 19, 2012 7:28 pm

Startup Error

Post by gprime »

I am attempting tpo start deluge daemon through a phython script.

This is the error I am getting:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/deluged", line 9, in <module>
    load_entry_point('deluge==1.3.3', 'console_scripts', 'deluged')()
  File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 187, in start_daemon
    if deluge.common.windows_check() or deluge.common.osx_check():
  File "/usr/lib/python2.7/dist-packages/deluge/common.py", line 196, in windows_check
    return platform.system() in ('Windows', 'Microsoft')
  File "/usr/lib/python2.7/platform.py", line 1306, in system
    return uname()[0]
  File "/usr/lib/python2.7/platform.py", line 1273, in uname
    processor = _syscmd_uname('-p','')
  File "/usr/lib/python2.7/platform.py", line 1030, in _syscmd_uname
    rc = f.close()
IOError: [Errno 10] No child processes
In my python script I am calling the daemon like this:

Code: Select all

ret = subprocess.Popen( "/usr/bin/deluged -L debug -l /home/cloudload/logs/deluged.log"", stderr=FILE, stdout=FILE )
The machine I am working on is linux (ubuntu).

Does anyone know why this error is happening?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Startup Error

Post by Cas »

Probably to do with daemonizing deluged, try with -d parameter to prevent it.

I think a better way would be to use start-stop-daemon as used in init scripts.
Post Reply