Page 1 of 1

Verifying Execute is working

Posted: Fri Nov 19, 2010 9:19 am
by halfthelaw
I'm running Deluge 1.3.1 and I'm trying to get the Execute plugin working. It's enabled and my execute.conf looks like:

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "commands": [
    [
      "abfdd0289a58e930419052d99bb471e76c5a4ad4", 
      "complete", 
      "/home/slice2/notify.sh"
    ]
  ]
}
However, it's not actually executing the script. Where could I be going wrong? Permissions or some other misconfiguration?

Re: Verifying Execute is working

Posted: Fri Nov 19, 2010 12:18 pm
by Cas
Did you read the plugin guide?

What is the script you are trying to run and what user is deluge running as?

Re: Verifying Execute is working

Posted: Fri Nov 19, 2010 5:09 pm
by halfthelaw
Yes, I read the guide. deluge (i.e. /usr/bin/deluged) is running as my user. My script has permissions chmod 755.
Does Execute do any logging?

Re: Verifying Execute is working

Posted: Fri Nov 19, 2010 5:22 pm
by Cas
are you certain the execute plugin does not run your script?
have you tested the script separately?
have you tested with one of the example python scripts?
have you enabled deluge debug logs?

Re: Verifying Execute is working

Posted: Fri Nov 19, 2010 11:27 pm
by halfthelaw
I am fairly certain that the scripts are not being run. Right now it's basically just echo $1 >> testfile
I have tested the script separately, passing three arguments, and it works fine.
I haven't tested with the python scripts because I don't have permissions to write to /var/log/syslog and don't want to much around with smtp

I set deluged and deluge-web logs to level info and have been watching them. I get the following errors:

Code: Select all

[ERROR   ] 02:11:10 rpcserver:303 Exception calling RPC request: '90cb831df1b54ecbd2ac4a54456e13098c6215b3'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 298, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/deluge/core/core.py", line 397, in get_torrent_status
    status = self.torrentmanager[torrent_id].get_status(keys, diff)
  File "/usr/lib/pymodules/python2.6/deluge/core/torrentmanager.py", line 273, in __getitem__
    return self.torrents[torrent_id]
KeyError: '90cb831df1b54ecbd2ac4a54456e13098c6215b3'
[ERROR   ] 02:11:10 rpcserver:303 Exception calling RPC request: '90cb831df1b54ecbd2ac4a54456e13098c6215b3'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/deluge/core/rpcserver.py", line 298, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/deluge/core/core.py", line 397, in get_torrent_status
    status = self.torrentmanager[torrent_id].get_status(keys, diff)
  File "/usr/lib/pymodules/python2.6/deluge/core/torrentmanager.py", line 273, in __getitem__
    return self.torrents[torrent_id]
KeyError: '90cb831df1b54ecbd2ac4a54456e13098c6215b3'

Re: Verifying Execute is working

Posted: Sun Nov 21, 2010 9:56 am
by react2409
I was having a problem with execute not even running the bash script. But it worked fine manually running it and passing the arguments.

The thing that fixed it was just killing the deluged process and then starting ti up again.

It still works now so it must of done something.

Re: Verifying Execute is working

Posted: Sun Dec 08, 2019 4:05 am
by QWIKAG
react2409 wrote: The thing that fixed it was just killing the deluged process and then starting ti up again.
Thank you this helped me:
I did not kill the process, not that I know what kill means. I stopped it and started it again.

Code: Select all

service deluged stop
service deluged start
Thank you.