Page 1 of 2
7z problem
Posted: 03 Jun 2015, 19:24
by Hornsounder
Hi,
i upgraded filebot to 4.6 via the package manager. im using DSM 5.2
here the sysinfo
jupiter> filebot -script fn:sysinfo
FileBot 4.6 (r3052)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
p7zip: Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
chromaprint-tools: fpcalc -version failed (/usr/local/chromaprint/bin/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Server VM
CPU/MEM: 4 Core / 878 MB Max Memory / 23 MB Used Memory
OS: Linux (i386)
uname: Linux jupiter 3.10.35 #5565 SMP Mon May 11 02:14:34 CST 2015 x86_64 GNU/Linux synology_cedarview_1813+
Done ヾ(@⌒ー⌒@)ノ
all looks fine. Unfortunately 7z is not working with any archive (hundreds). its always complaning likle this called from filebot or from the command line:
Error: packages.rar: Can not open file as archive
in 4.5 using the lib7-Zip-JBinding.so library all was fine.
Does anybody have an idea how to solve ?
How could i go back to filebot 4.5 ?
Thanks
Alexander
Re: 7z problem
Posted: 03 Jun 2015, 19:31
by rednoah
What's the full output?
Code: Select all
filebot -extract /path/to/archives
Any archive? Or just rar archives? Or just specific rar archives?
Can you extract the archive with the synology tools? Or via shell with 7z?
PS: On Synology filebot will now use the 7z executable to extract archives. Not the lib7-Zip-JBinding.so library.
Re: 7z problem
Posted: 03 Jun 2015, 19:56
by Hornsounder
Only rar archives doesnt work. i dont know if any, but io tried on around 20 from different sources and downloaded with different tools.
if i use the download station automatic extract is does extract the files fine.
if i extract it via file station it extracts fine as well.
if i try to extract with 7z in the shell it doesnt work. i tried it with different users. So most likely its not filebot related. For that was my question if i can downgrade to filebot v4.5
Here the output from the filebot command:
Code: Select all
jupiter> filebot -extract /volume1/Queues/Checkin/Outlander.S01E01.German.BDRip.x264-iNTENTiON
Read archive [outlander.s01e01.german.bdrip.x264-intention.rar] and extract to [/volume1/Queues/Checkin/Outlander.S01E01.German.BDRip.x264-iNTENTiON/outlander.s01e01.german.bdrip.x264-intention]
IOException: /usr/syno/bin/7z failed with exit code 2: Error: /volume1/Queues/Checkin/Outlander.S01E01.German.BDRip.x264-iNTENTiON/outlander.s01e01.german.bdrip.x264-intention.rar: Can not open file as archive Errors: 1
java.io.IOException: /usr/syno/bin/7z failed with exit code 2: Error: /volume1/Queues/Checkin/Outlander.S01E01.German.BDRip.x264-iNTENTiON/outlander.s01e01.german.bdrip.x264-intention.rar: Can not open file as archive Errors: 1
at net.filebot.archive.SevenZipExecutable.execute(SevenZipExecutable.java:57)
at net.filebot.archive.SevenZipExecutable.listFiles(SevenZipExecutable.java:68)
at net.filebot.archive.Archive.listFiles(Archive.java:46)
at net.filebot.cli.CmdlineOperations.extract(CmdlineOperations.java:1143)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:69)
at net.filebot.Main.main(Main.java:168)
Failure (°_°)
Re: 7z problem
Posted: 03 Jun 2015, 20:33
by rednoah
You can switch back to using the library same as with v4.5 by replacing -Dnet.filebot.Archive.extractor=SevenZipExecutable with -Dnet.filebot.Archive.extractor=SevenZipNativeBindings in the filebot.sh launch script.
Re: 7z problem
Posted: 04 Jun 2015, 10:54
by rednoah
Since you have a lot of archives, do you mind trying a few things for me?
Please try
filebot-4.6-r3078-noarch-VFS2.spk from here:
https://sourceforge.net/projects/filebo ... ebot/HEAD/
This package uses pure Java to extract archives, including .rar files.
Though it may not work as well or fast as the native library. It'd be good to have a reliable fallback for non-Intel devices.
Re: 7z problem
Posted: 04 Jun 2015, 17:20
by Hornsounder
Hi,
i installed the package and till now i have no errors with my files and its working fine. I will test it a few more days and come back.
Re: 7z problem
Posted: 04 Jun 2015, 19:57
by rednoah
Multi-volume RARs is something I can't test here for the lack of test data. Can you check that for me? If that works as well I'll leave it as default for Synology.
Re: 7z problem
Posted: 19 Jun 2015, 09:30
by kolsyrad
Hi and thanks for a wonderful application!
I also have this problem, cant find filebot-4.6-r3078-noarch-VFS2.spk from the link posted
When changing to SevenZipNativeBindings i get "SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path"
Everything works great except unpacking rars!
Re: 7z problem
Posted: 19 Jun 2015, 09:45
by rednoah
Uploaded a new build for you. Try
filebot-4.6-r3113-VFS2.spk from here:
https://sourceforge.net/projects/filebo ... ebot/HEAD/
Re: 7z problem
Posted: 19 Jun 2015, 09:45
by kolsyrad
Hmm, noticed some differences:
Synology> filebot -extract /volume1/download/The.Big.Bang.Theory.S08E2
/volume1/download/The.Big.Bang.Theory.S08E21.HDTV.x264-LOL/ /volume1/download/The.Big.Bang.Theory.S08E23.HDTV.x264-LOL/
/volume1/download/The.Big.Bang.Theory.S08E22.HDTV.x264-LOL/
Synology> filebot -extract /volume1/download/The.Big.Bang.Theory.S08E21.HDTV.x264-LOL/
Read archive [the.big.bang.theory.821.hdtv-lol.rar] and extract to [/volume1/download/The.Big.Bang.Theory.S08E21.HDTV.x264-LOL/the.big.bang.theory.821.hdtv-lol]
/usr/syno/bin/7z: /usr/local/mediainfo/lib/libz.so.1: no version information available (required by /lib/libxml2.so.2)
/usr/syno/bin/7z: /usr/local/mediainfo/lib/libz.so.1: no version information available (required by /lib/libxml2.so.2)
IOException: /usr/syno/bin/7z failed with exit code 2: Error: /volume1/download/The.Big.Bang.Theory.S08E21.HDTV.x264-LOL/the.big.bang.theory.821.hdtv-lol.rar: Can not open file as archive Errors: 1
java.io.IOException: /usr/syno/bin/7z failed with exit code 2: Error: /volume1/download/The.Big.Bang.Theory.S08E21.HDTV.x264-LOL/the.big.bang.theory.821.hdtv-lol.rar: Can not open file as archive Errors: 1
at net.filebot.archive.SevenZipExecutable.execute(SevenZipExecutable.java:57)
at net.filebot.archive.SevenZipExecutable.listFiles(SevenZipExecutable.java:68)
at net.filebot.archive.Archive.listFiles(Archive.java:46)
at net.filebot.cli.CmdlineOperations.extract(CmdlineOperations.java:1143)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:69)
at net.filebot.Main.main(Main.java:168)
Failure (°_°)
Re: 7z problem
Posted: 26 Jun 2015, 12:02
by iamloco
maybe the issues is not with Filebot but with Synology 7z
I have the same error with multiple/single part rar message when i use
/usr/syno/bin/7z t /volume1/Download/Torrent/Auto/somefolder/somefile.rar
Error: Can not open file as archive
from the web UI I can extract fine.
single 7z file is fine
/usr/syno/bin/7z t /volume1/Download/Torrent/Auto/New\ Text\ Document.7z
Testing
Everything is Ok
Single rar file dosen't work
/usr/syno/bin/7z t /volume1/Download/Torrent/Auto/TestFiles.rar
Error: Can not open file as archive
edit:
changing to the old SevenZipNativeBindings worked
Re: 7z problem
Posted: 26 Jun 2015, 12:51
by rednoah
So the syno 7z executable can't extract RARs but from the Synology DSM File Manager you can extract RARs? You sure? Synology must be using other tools to deal with RARs then, somehow, no idea which ones.
Re: 7z problem
Posted: 26 Jun 2015, 22:40
by iamloco
yes that's what I've been using to extract the file then sort them with filebot when I was away from home
Re: 7z problem
Posted: 27 Jun 2015, 10:27
by rednoah
Do you have any idea how DSM unpacks rar files? If 7z doesn't work. And unrar isn't installed. What do they use?
Re: 7z problem
Posted: 29 Jun 2015, 13:28
by iamloco
I've opened a case case id 620253
I've send a rar file so they could replicate the issues
I'll try to keep you updated
Re: 7z problem
Posted: 29 Jun 2015, 13:38
by rednoah
Well, I can tell you why the 7z binary is compiled without unrar support: the rar format is proprietary
7-Zip is open source software. Most of the source code is under the GNU LGPL license. The unRAR code is under a mixed license: GNU LGPL + unRAR restrictions.
So I wonder how unrar can work without either the unrar tool or the 7z unrar plugin.
Re: 7z problem
Posted: 15 Jul 2015, 11:36
by iamloco
sorry I moved recently
just got to get the cable done
now case with Synology is reopen
will let you know if there's any devellopement

Re: 7z problem
Posted: 24 Jul 2015, 00:50
by iamloco
they use unrar for rar

Re: 7z problem
Posted: 24 Jul 2015, 06:58
by rednoah
Well, I won't have access to my NAS for the next 6 weeks. In the meanwhile, where do they keep the `unrar` exectuable? Pretty sure I haven't seen it in /usr/syno/bin or anywhere in the PATH.
Re: 7z problem
Posted: 24 Jul 2015, 10:20
by iamloco
find / -name unrar
/usr/syno/bin/unrar
Re: 7z problem
Posted: 24 Jul 2015, 11:59
by rednoah
OK, I'll check it out.
Re: 7z problem
Posted: 14 Sep 2015, 20:21
by ziemowit
Hey, is there any progress with rar-files? Maybe you can implement some solution for password protected rar-files, like a password-list?
Re: 7z problem
Posted: 15 Sep 2015, 07:07
by rednoah
Have you tried the latest and greatest?
https://sourceforge.net/projects/filebo ... ebot/HEAD/
RAR is now supported (to a degree) by a pure-Java implementation. No support for password protected RARs though.
Re: 7z problem
Posted: 15 Sep 2015, 16:31
by ziemowit
No havent tried. Password protected is a main issue for me. Any plans to implement in the future?
Re: 7z problem
Posted: 15 Sep 2015, 16:47
by rednoah
Not really. There's already 3 different extraction methods (7z-lib, 7z-cmd, vfs2-junrar) so that would have to be implemented 3 times, and it might not be possible for 1 or 2 of them in the first place.