Support for Ubuntu and other Desktop Linux distributions
icone
Donor
Posts: 19 Joined: 13 Dec 2015, 11:36
Post
by icone » 28 Jun 2016, 21:27
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
Post
by icone » 28 Jun 2016, 22:10
When I test it with sudo -H -u debian-transmission it is also working...
icone
Donor
Posts: 19 Joined: 13 Dec 2015, 11:36
Post
by icone » 28 Jun 2016, 23:01
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
rednoah
The Source
Posts: 22998 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 29 Jun 2016, 04:13
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
icone
Donor
Posts: 19 Joined: 13 Dec 2015, 11:36
Post
by icone » 29 Jun 2016, 13:39
Code: Select all
> /home/user98/logs/transmission_call_filebot.log 2>&1
Answer:
jeez
icone
Donor
Posts: 19 Joined: 13 Dec 2015, 11:36
Post
by icone » 29 Jun 2016, 13:56
so to answer myself do :
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.