Page 1 of 1

Deluge not running script on torrent download completion

Posted: Fri Oct 07, 2022 7:34 am
by mhz
I have deluge setup on a seedbox and have added the execute plugin and put in the path to a script to run.
I have tested the script from the command line and it runs fine.

When I put the script into the execute plugin in Deluge it does not run after a torrent has completed downloading.
I have restated deluge several times to no avail.

Any ideas why my script is not running?

Re: Deluge not running script on torrent download completion

Posted: Fri Oct 07, 2022 7:59 am
by mhertz
Are you testing by adding an already downloaded torrent(so don't have to wait to finish downloading for the test)? I ask because that won't work(as doesn't emit 'TorrentFinishedEvent'). Otherwise test with a simple script, e.g 'touch /tmp/deluge-ok', with shebang added and execute-bit set , and placed where permission to read(and traverse perms in preceding sub-dirs). Note, no arguments allowed after script-path in execute plugin preferences.

Just throwing the "usual suspects" out there.

Re: Deluge not running script on torrent download completion

Posted: Fri Oct 07, 2022 4:16 pm
by basher
As mhertz said, make sure the script is executable.
Sharing your execute.conf wouldn't hurt either.

Re: Deluge not running script on torrent download completion

Posted: Tue Oct 11, 2022 11:20 am
by mhz
mhertz wrote: Fri Oct 07, 2022 7:59 am Are you testing by adding an already downloaded torrent(so don't have to wait to finish downloading for the test)? I ask because that won't work(as doesn't emit 'TorrentFinishedEvent'). Otherwise test with a simple script, e.g 'touch /tmp/deluge-ok', with shebang added and execute-bit set , and placed where permission to read(and traverse perms in preceding sub-dirs). Note, no arguments allowed after script-path in execute plugin preferences.

Just throwing the "usual suspects" out there.
I've tested by adding a totally new torrent to deluge and still nothing

Re: Deluge not running script on torrent download completion

Posted: Tue Oct 11, 2022 11:23 am
by mhz
basher wrote: Fri Oct 07, 2022 4:16 pm As mhertz said, make sure the script is executable.
Sharing your execute.conf wouldn't hurt either.
The script is executable as it runs perfectly when I run it from the command line.
Where do I find the execute.conf file? Sorry I'm a little new to Linux

Re: Deluge not running script on torrent download completion

Posted: Tue Oct 11, 2022 12:14 pm
by mhertz
No worries :) , and yeah good suggestion by basher about execute.conf, which being in usually '/var/lib/deluge/.config/deluge/execute.conf'

(Another related gotcha just remembered BTW, is there being no path expansion for script-name defined, so need specify full path even if in $Path)

Re: Deluge not running script on torrent download completion

Posted: Wed Oct 12, 2022 9:57 am
by basher
Config might also be in homedir @ ~/.config/deluge/execute.conf.
If you can't locate it, search for it:

Code: Select all

find / -type f -path '*/deluge/execute.conf' 2>/dev/null