Filebot no longer works since the update to DSM 7

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
User avatar
rednoah
The Source
Posts: 24215
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot no longer works since the update to DSM 7

Post by rednoah »

Does the path you call in /volume1/Mediathek/filebot.sh script exist?

Code: Select all

/var/packages/filebot/target/filebot.sh: No such file or directory

:arrow: Assuming it exists, but appears to not exist from the current users point of view, I'd start by checking what $USER you're running as when it doesn't work, and making sure that that user has permissions to all the relevant files and executables.


:idea: DSM 7 is no longer running everything as root, and instead users package-specific users, so it may (by design for the purpose of security) introduce new permission issues.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24215
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot no longer works since the update to DSM 7

Post by rednoah »

This line tells us that although /volume1/Mediathek/filebot.sh is accessible and executed, /var/packages/filebot/target/filebot.sh is not:

Code: Select all

/volume1/Mediathek/filebot.sh: line 11: /var/packages/filebot/target/filebot.sh: No such file or directory

:?: Does /var/packages/filebot/target/filebot.sh exist?


:?: Which $USER is calling /volume1/Mediathek/filebot.sh? Can this user read and execute /var/packages/filebot/target/filebot.sh? (the answer is no, based on the error message above, so our first step is to figure out which $USER we're running as; most likely the JD package-specific user; and then take it from there)


:?: Have you tried filebot instead of /var/packages/filebot/target/filebot.sh? AFAIK, it's possible to run an executable (system executes command) even if you don't have read permission (system executes shell that then reads and interprets a given shell script file).
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24215
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot no longer works since the update to DSM 7

Post by rednoah »

filebot is now called. The original problem is solved.


The next problem is invalid usage of filebot which is rather self-explanatory:

Code: Select all

Invalid usage: output folder [/volume1/Mediathek] must be separate from input arguments [/volume1/Mediathek]
Abort (×_×)
TL;DR input folder and output folder must not be the same folder



missaq wrote: 30 Jul 2021, 14:15 And then it deleted my log folder and file! :(
You're calling filebot -script fn:cleaner "/volume1/Mediathek" --def root=y and so it does as instructed.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24215
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot no longer works since the update to DSM 7

Post by rednoah »

Well, something in your side, or the JD side has changed. filebot has not changed, but the parameters that are passed in by your code may have changed. Based on the logs above, filebot itself works correctly according to the parameters that are passed along from your upstream programs.


:idea: This is your glue logic script (which you may or may not have written yourself; definitely not part of FileBot though) that calls filebot - passing along $1 - and so filebot is called with whatever input argument your glue logic script is called with, and so if something changed, then something has changed in how your glue logic script is called by your upstream programs:

Code: Select all

##FileBot ausführen
/var/packages/filebot/target/filebot.sh -script fn:amc --def skipExtract=y --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIES" "movieFormat=$MOVIES" "unsortedFormat=$UNSORTED" -non-strict --def unsorted=y --def clean=y --conflict auto --output /volume1/Mediathek
## Aufräumen, --def root löscht den Unterordner mit
/var/packages/filebot/target/filebot.sh -script fn:cleaner "$1" --def root=y


EDIT:
missaq wrote: 30 Jul 2021, 15:28 But this script worked perfectly for 2 years. Why does nothing work now? What else has changed with the filebot update?
Look i posted this back then and it worked great until the last update.
viewtopic.php?f=4&t=11170&p=49147#p49147
filebot was previously called like this:

Code: Select all

Argument[0]: /volume1/Mediathek/Downloads/72BD-DieSchoeneunddasBiestTHEATRICAL-LizardSquad/Die.Schoene.und.das.Biest.1991.THEATRiCAL.German.720p.BluRay.x264-LizardSquad/Proof
But filebot is now incorrectly called like this by your glue logic script:

Code: Select all

Argument[0]: /volume1/Mediathek
:arrow: filebot itself hasn't changed. If you call it with the same input arguments, then it will work the same.


:?: Why is filebot called with different arguments now? Sorry, no idea. You'd have to ask the JD developers or the person who made the JD / FileBot integration that you are using.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24215
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot no longer works since the update to DSM 7

Post by rednoah »

:idea: The official package repository is currently DSM 6 only, and will switch to being DSM 7 only with the next release:
https://www.filebot.net/linux/syno.html
:idea: Please read the FAQ and How to Request Help.
Post Reply