Page 1 of 1

Startup Error

Posted: Thu Apr 26, 2012 10:02 pm
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?

Re: Startup Error

Posted: Thu Apr 26, 2012 10:22 pm
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.