Unable to execute script on torrent completion

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
DTesch357
Posts: 4
Joined: Sat May 21, 2016 3:18 am

Unable to execute script on torrent completion

Post by DTesch357 »

I know this has probably been asked 100 times, but I've followed dozens of threads and can't seem to find the answer.

I'm running the latest version of transmission-daemon on the latest release of lubuntu. I have a script made to call filebot and auto-rename my downloaded files. debian-transmission has been set as the user owner of the script. The script is located at /etc/transmission-postprocess.sh.

I know the script runs fine when I manually execute it - is there some way to track a log and see if transmission even tries to execute the script? I've already done chmod 0777 to the script just to ensure that permissions aren't an issue.

Any ideas? The first line of the script is just outputting to a log file in /var/log/ as a test at this point.
Mary1308
Posts: 1
Joined: Sat May 07, 2016 1:45 pm

Re: Unable to execute script on torrent completion

Post by Mary1308 »

I wonder the same question...
DTesch357
Posts: 4
Joined: Sat May 21, 2016 3:18 am

Re: Unable to execute script on torrent completion

Post by DTesch357 »

So I was able to rectify the situation.

The problem was twofold. I needed to make debian-transmission the owner of both my completed torrent directory, as well as the .excludes file. Once this was done, I was able to get the script to execute. It turned out the script was failing when trying to chmod the completed torrents to 777 because it didn't have ownership of the parent directory, and trying to sudo within the script didn't work.

Hope this helps other people.
DTesch357
Posts: 4
Joined: Sat May 21, 2016 3:18 am

Re: Unable to execute script on torrent completion

Post by DTesch357 »

So after a reboot, the script stopped working again. After some more troubleshooting, I solved it (again.)

The ~/.filebot folder had to be copied to /var/lib/transmission-daemon/.filebot, and then chown'ed to debian-transmission, and that user given rwx access to the .filebot folder and all subfolders/files.

Works like a charm now.
Post Reply