upgraded to 4.7

Support for Ubuntu and other Desktop Linux distributions
Post Reply
icone
Donor
Posts: 19
Joined: 13 Dec 2015, 11:36

upgraded to 4.7

Post by icone »

Hi,

After the upgrade transmission_postprocess.sh is not working with filebot anymore

it is calling filebot via the command:

Code: Select all

filebot -script fn:amc --output "$OUTPUT_DIR" --action duplicate --conflict skip -non-strict --log-file /home/user98/logs/filebot.log --lang $LANGUE --def excludeList=$EXCLUDE_LIST unsorted=y music=y  "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
I didn't change it and it used to work with v4.5

If I test the command in the CLI it is working correctly.

The transmission user doesn't have the right to access the filebot command ini v4.7?


Logs absolutely empty.
icone
Donor
Posts: 19
Joined: 13 Dec 2015, 11:36

Re: upgraded to 4.7

Post by icone »

When I test it with sudo -H -u debian-transmission it is also working...
icone
Donor
Posts: 19
Joined: 13 Dec 2015, 11:36

Re: upgraded to 4.7

Post by icone »

So I tested again if the Transmission post-process script is called correctly, replaced the filebot call in transmission_postprocess.sh by:

Code: Select all

#!/bin/bash

LOGFILE="/home/user98/logs/hebdomadaire2.log"

echo "**********************************************************" >>$LOGFILE
echo "** TEST POST-PROCESS **" >>$LOGFILE
echo "** `date` **"  >>$LOGFILE
echo "**********************************************************" >>$LOGFILE

and as expected got hebdomadaire2.log with:

Code: Select all

**********************************************************
** TEST POST-PROCESS **
** Wed Jun 29 00:53:04 CEST 2016 **
**********************************************************
So it is not Transmission.

f
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: upgraded to 4.7

Post by rednoah »

Logs?

How did you confirm that FileBot is called? If there are no logs, then filebot is never called. If filebot is never called, it's not a filebot issue. ;)

As far as I can see you only confirmed that your script is called. You didn't confirm that filebot is called. If you check the std/err output of the attempted filebot call, you'll probably see some sort of error message that'll tell you why it's not working.

Please read this: viewtopic.php?f=4&t=3067
:idea: Please read the FAQ and How to Request Help.
icone
Donor
Posts: 19
Joined: 13 Dec 2015, 11:36

Re: upgraded to 4.7

Post by icone »

Code: Select all

 > /home/user98/logs/transmission_call_filebot.log 2>&1
Answer:

Code: Select all

$HOME must be set
jeez
icone
Donor
Posts: 19
Joined: 13 Dec 2015, 11:36

Re: upgraded to 4.7

Post by icone »

so to answer myself do :

Code: Select all

export HOME=/home/user98
in the transmission postprocess script, before calling filebot.
And it works.

I don't know why on some systems the HOME variable is not set correctly in this context... Even if in printenv the result is correct.
Post Reply