Page 1 of 1

Unrar failed in AMC command on Synology

Posted: 19 Mar 2022, 19:41
by GamerKingFaiz
I'm running into the following error using Filebot CLI on my Synology DS1520+ on DSM 7.0.1-42218 Update 3.
This is my first time trying to run Filebot on my Synology, so I'm not sure if I'm missing some setup step. I've used it purely on Windows in the past.

amc.log (with file paths and names obfuscated)

Code: Select all

Run script [fn:amc] at [Sat Mar 19 11:54:57 PDT 2022]
Parameter: plex = *****
Parameter: clean = y
Parameter: subtitles = en
Parameter: excludeList = amc.txt
Parameter: ut_label = TV
Parameter: ut_title = file_title
Parameter: ut_kind = multi
Parameter: ut_dir = /volume1/Downloads/TV/content
Use excludes: /volume1/Media/amc.txt (0)
Ignore video extra: /volume1/Downloads/TV/content/Sample/file-title-sample.mkv
Read archive [file-title.rar] and extract to [/volume1/Downloads/TV/content/file-title/file-title]
[/bin/unrar, l, -y, -, /volume1/Downloads/TV/content/file-title.rar] failed (7)
No files selected for processing
Done ¯\_(ツ)_/¯
Here's the command line that was called:

Code: Select all

filebot -script fn:amc --output "/volume1/Media" --log-file amc.log --action copy --conflict auto -non-strict --def plex=192.168.1.80:***** clean=y subtitles=en excludeList=amc.txt "ut_label=TV" "ut_title=file_title" "ut_kind=multi" "ut_dir=/volume1/Downloads/TV/content"
fn:sysinfo

Code: Select all

FileBot 4.9.6 (r9125)
JNA Native: 6.1.2
MediaInfo: 19.04
Tools: 7z/16.02 unrar/5.70
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2022-03-04 (r810)
Groovy: 3.0.9
JRE: OpenJDK Runtime Environment 17.0.2
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 2.0 GB Max Memory / 54 MB Used Memory
OS: Linux (amd64)
HW: Linux DiskStation 4.4.180+ #42218 SMP Mon Oct 18 19:16:55 CST 2021 x86_64 GNU/Linux synology_geminilake_1520+
CPU/MEM: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz [MemTotal: 8 GB | MemFree: 1.2 GB | MemAvailable: 6 GB | SwapCached: 45 MB | SwapTotal: 7 GB | SwapFree: 6 GB]
STORAGE: ext4 [/] @ 998 MB | ext4 [/volume1] @ 8 TB
USER: faiz
DATA: /var/packages/filebot/var/data/1026
Package: SPK
License: FileBot License PX12482038 (Valid-Until: 2070-03-25)

Re: Unrar failed in AMC command on Synology

Posted: 19 Mar 2022, 19:56
by GamerKingFaiz
I also just tried running extract directly and it gave a bit more detail, but I'm still not sure how to solve.

Code: Select all

faiz@DiskStation:/$ filebot -extract /volume1/Downloads/TV/content
Read archive [file-title.rar] and extract to [/volume1/Downloads/TV/content/file-title]
[/bin/unrar, l, -y, -, /volume1/Downloads/TV/content/file-title.rar] failed (7)
net.filebot.ExecuteException: [/bin/unrar, l, -y, -, /volume1/Downloads/TV/content/file-title.rar] failed (7)
        at net.filebot.Execute.execute(Unknown Source)
        at net.filebot.Execute.execute(Unknown Source)
        at net.filebot.archive.ShellExecutables$Command$2.listFiles(Unknown Source)
        at net.filebot.archive.ShellExecutables.listFiles(Unknown Source)
        at net.filebot.archive.Archive.listFiles(Unknown Source)
        at net.filebot.cli.CmdlineOperations.extract(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.runCommand(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
        at net.filebot.Main.main(Unknown Source)

Re: Unrar failed in AMC command on Synology

Posted: 20 Mar 2022, 02:23
by rednoah
unrar integration on Synology NAS seems to be broken with the FileBot 4.9.5 / FileBot 4.9.6 release. Please downgrade to the previous FileBot 4.9.4 release, or upgrade to the latest beta revision, if you need unrar integration:
https://get.filebot.net/filebot/
rednoah wrote: 22 Feb 2022, 09:21 Known Issues:
unrar integration is broken on Synology DSM and QNAP QTS. Please upgrade to FileBot r9126 or higher (see Latest Beta Revisions) if you need unrar support.

Re: Unrar failed in AMC command on Synology

Posted: 20 Mar 2022, 02:46
by GamerKingFaiz
Thanks, upgrading to the 4.9.7 release fixed this!

Re: Unrar failed in AMC command on Synology

Posted: 06 Oct 2022, 14:12
by aglyons
@rednoah

Is v4.9.7 going to be pushed to the Synology community?

I am running into the archive failure problem and the Synology repository only has up to 4.9.6 still.

Re: Unrar failed in AMC command on Synology

Posted: 07 Oct 2022, 11:02
by rednoah
4.9.7 is a hot fix release which only contains fixes for the Mac App Store (MAS requires a version bump to accept a new release) and does not contain any other changes, and is thus functionally identical to 4.9.6 for all accounts and purposes.


:idea: If you need to extract unrar archives, among other recent changes and fixes, then you can manually download and install the latest *.spk package:
viewtopic.php?t=1609


:idea: The Synology repositories will be updated with the next stable release which is scheduled for release some time this month.