AMC + Deluge Moving files to Unsorted
Posted: 03 Mar 2016, 16:59
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.
And here is the manual version I run to re-process the files that works.
Any idea what is going on?
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"
Code: Select all
filebot -script fn:amc --output "/Media/" --action copy -non-strict "/home/brett/complete" --log-file amc.log