Page 1 of 1

AMC + Deluge Moving files to Unsorted

Posted: 03 Mar 2016, 16:59
by pcmofo
Hey guys, I have been using Deluge + Filebot with the AMC script for a few months now on a Ubuntu VM and it has been working great.

I recently rebuilt the VM as a linux container and followed the same guide to setup everything. I had some permissions issues when I first setup the LC so I made sure to 777 the deluge directories and the script that calls AMC that Deluge runs on torrent complete.

Both the VM and the LC are running currently using the identical script with identical properties set with some minor exceptions. On the older VM the output folder is set to a SMB share. On the new LC the output is a root directory. The script definitly runs on the LC, sends the email etc, and even copies the file to the correct directory. It appears to never do the lookup or rename the file after moving it.

My best guess is this is a permission issue, however if I manually run the same script it processes the files correctly. Deluge runs as a deluge user and I am logging in as an admin. The script when run by Deluge app does not generate a log file in the .deluge/logs/ directory so I can't see where it is failing. Again, running the script manually generates the log and everything works fine.

Here is my current script.

Code: Select all

#!/bin/bash
TORRENT_ID=$1
TORRENT_NAME=$2
TORRENT_PATH=$3

filebot -script fn:amc --output "/Media"  --log-file amc.log --action duplicate --conflict override -non-strict --def music=n artwork=n unsorted=y clean=y plex=10.0.0.21:token_here gmail=pcmofo:pwd "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
And here is the manual version I run to re-process the files that works.

Code: Select all

filebot -script fn:amc --output "/Media/" --action copy -non-strict "/home/brett/complete" --log-file amc.log 
Any idea what is going on?

Re: AMC + Deluge Moving files to Unsorted

Posted: 03 Mar 2016, 17:44
by rednoah
Logs? You may specify an absolute path to the log file if you don't know where deluge/amc saves the logs (probably in deluge user home / filebot / logs).

@see viewtopic.php?f=4&t=3067

Re: AMC + Deluge Moving files to Unsorted

Posted: 03 Mar 2016, 20:10
by pcmofo
rednoah wrote:Logs? You may specify an absolute path to the log file if you don't know where deluge/amc saves the logs (probably in deluge user home / filebot / logs).

@see viewtopic.php?f=4&t=3067
Thanks for the help. It turns out my deluge user had a default home dir of /var/lib/deluge and I found the amc logs which said their was a permission error that I have since fixed.

Re: AMC + Deluge Moving files to Unsorted

Posted: 04 Mar 2016, 03:42
by rednoah
Same issue as always. Please write a tutorial about how to setup filebot/deluge so that others can learn from what you have learnt.