Verifying Execute is working

Suggest, post, or discuss plugins for Deluge
Post Reply
halfthelaw
New User
New User
Posts: 4
Joined: Fri Nov 19, 2010 9:16 am

Verifying Execute is working

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

Re: Verifying Execute is working

Post by Cas »

Did you read the plugin guide?

What is the script you are trying to run and what user is deluge running as?
halfthelaw
New User
New User
Posts: 4
Joined: Fri Nov 19, 2010 9:16 am

Re: Verifying Execute is working

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

Re: Verifying Execute is working

Post 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?
halfthelaw
New User
New User
Posts: 4
Joined: Fri Nov 19, 2010 9:16 am

Re: Verifying Execute is working

Post 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'
react2409

Re: Verifying Execute is working

Post 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.
QWIKAG
Member
Member
Posts: 28
Joined: Wed Sep 06, 2017 3:36 pm

Re: Verifying Execute is working

Post 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.
Post Reply