Deluge not running script on torrent download completion

Suggest, post, or discuss plugins for Deluge
Post Reply
mhz
New User
New User
Posts: 3
Joined: Fri Oct 07, 2022 7:31 am

Deluge not running script on torrent download completion

Post 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?
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge not running script on torrent download completion

Post 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.
basher
Leecher
Leecher
Posts: 94
Joined: Wed Sep 29, 2021 8:42 am
Location: Estonia/Spain

Re: Deluge not running script on torrent download completion

Post by basher »

As mhertz said, make sure the script is executable.
Sharing your execute.conf wouldn't hurt either.
mhz
New User
New User
Posts: 3
Joined: Fri Oct 07, 2022 7:31 am

Re: Deluge not running script on torrent download completion

Post 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
mhz
New User
New User
Posts: 3
Joined: Fri Oct 07, 2022 7:31 am

Re: Deluge not running script on torrent download completion

Post 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
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge not running script on torrent download completion

Post 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)
basher
Leecher
Leecher
Posts: 94
Joined: Wed Sep 29, 2021 8:42 am
Location: Estonia/Spain

Re: Deluge not running script on torrent download completion

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