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?
Deluge not running script on torrent download completion
Re: Deluge not running script on torrent download completion
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.
Just throwing the "usual suspects" out there.
Re: Deluge not running script on torrent download completion
As mhertz said, make sure the script is executable.
Sharing your execute.conf wouldn't hurt either.
Sharing your execute.conf wouldn't hurt either.
Re: Deluge not running script on torrent download completion
I've tested by adding a totally new torrent to deluge and still nothingmhertz 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.
Re: Deluge not running script on torrent download completion
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)
(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
Config might also be in homedir @ ~/.config/deluge/execute.conf.
If you can't locate it, search for it:
If you can't locate it, search for it:
Code: Select all
find / -type f -path '*/deluge/execute.conf' 2>/dev/null