7z problem

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Hornsounder
Posts: 3
Joined: 03 Jun 2015, 19:16

7z problem

Post 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
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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.
:idea: Please read the FAQ and How to Request Help.
Hornsounder
Posts: 3
Joined: 03 Jun 2015, 19:16

Re: 7z problem

Post 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 (°_°)
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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.
:idea: Please read the FAQ and How to Request Help.
Hornsounder
Posts: 3
Joined: 03 Jun 2015, 19:16

Re: 7z problem

Post 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.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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.
:idea: Please read the FAQ and How to Request Help.
kolsyrad
Posts: 2
Joined: 07 Nov 2013, 19:51

Re: 7z problem

Post 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!
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post by rednoah »

Uploaded a new build for you. Try filebot-4.6-r3113-VFS2.spk from here: https://sourceforge.net/projects/filebo ... ebot/HEAD/
:idea: Please read the FAQ and How to Request Help.
kolsyrad
Posts: 2
Joined: 07 Nov 2013, 19:51

Re: 7z problem

Post 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 (°_°)
iamloco
Posts: 6
Joined: 26 Jun 2015, 11:59

Re: 7z problem

Post 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
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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.
:idea: Please read the FAQ and How to Request Help.
iamloco
Posts: 6
Joined: 26 Jun 2015, 11:59

Re: 7z problem

Post 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
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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?
:idea: Please read the FAQ and How to Request Help.
iamloco
Posts: 6
Joined: 26 Jun 2015, 11:59

Re: 7z problem

Post 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
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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.
:idea: Please read the FAQ and How to Request Help.
iamloco
Posts: 6
Joined: 26 Jun 2015, 11:59

Re: 7z problem

Post 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 :)
iamloco
Posts: 6
Joined: 26 Jun 2015, 11:59

Re: 7z problem

Post by iamloco »

they use unrar for rar ;)
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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.
:idea: Please read the FAQ and How to Request Help.
iamloco
Posts: 6
Joined: 26 Jun 2015, 11:59

Re: 7z problem

Post by iamloco »

find / -name unrar
/usr/syno/bin/unrar
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post by rednoah »

OK, I'll check it out.
:idea: Please read the FAQ and How to Request Help.
ziemowit
Posts: 32
Joined: 13 Feb 2015, 06:59

Re: 7z problem

Post 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?
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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.
:idea: Please read the FAQ and How to Request Help.
ziemowit
Posts: 32
Joined: 13 Feb 2015, 06:59

Re: 7z problem

Post by ziemowit »

No havent tried. Password protected is a main issue for me. Any plans to implement in the future?
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7z problem

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply