How To Fix This "Failed to load 7z-JBinding"

Any questions? Need some help?
Post Reply
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

Hi again,

how i fix this, i search almost a week on board but not find a solution, i just want to know if there is no solution then i stop searching on board lol


FileBot 4.1 (r2247)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /root/filebot/lib7-Zip-JBinding.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: /root/filebot/lib7-Zip-JBinding.so: /root/filebot/lib7-Zip-JBinding.so: invalid ELF header (Possible cause: endianness mismatch)
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=13, Permission denied
Extended Attributes: OK
Groovy Engine: 2.3.2
JRE: Java(TM) SE Runtime Environment 1.8.0_05 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
OS: Linux (amd64)
uname: Linux server.scnshare.com 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How To Fix This "Failed to load 7z-JBinding"

Post by rednoah »

How did you install filebot? The error message says the lib7zip-JBinding.so is not compatible with your system. It' all 64-bit right?
:idea: Please read the FAQ and How to Request Help.
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

Re: How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

hi,

yes its all 64bit i try different like you mention in other post lib7zip-JBinding.so file on filebot directory.

btw i can reinstall it suggest me best install method i am using centos 6.5 64bit

because of this i cannot unrar torrent, i have to unrar file from other script lol
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How To Fix This "Failed to load 7z-JBinding"

Post by rednoah »

I guess for generic Linux distros it's best to grab the portable package and then the suitable native libraries.

However if you're already using the correct j7zip library and it doesn't work then you're simply out of luck, it might not be compatible with your system.

@see http://sevenzipjbind.sourceforge.net/
:idea: Please read the FAQ and How to Request Help.
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

Re: How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

so its mean i am out of luck ? these are the error on compiling sevenzipjbind
CTEST result
===========

Code: Select all

Start processing tests
Test project /root/7evenagain/SevenZipJBinding
  1/  6 Testing JUnit-init                    ***Failed
  2/  6 Testing JUnit-tools                   ***Failed
  3/  6 Testing JUnit-snippets                ***Failed
  4/  6 Testing JUnit-single-file-extraction  ***Failed
  5/  6 Testing JUnit-multiple-files-extractio***Failed
  6/  6 Testing JUnit-badarchive              ***Failed

0% tests passed, 6 tests failed out of 6

The following tests FAILED:
          1 - JUnit-init (Failed)
          2 - JUnit-tools (Failed)
          3 - JUnit-snippets (Failed)
          4 - JUnit-single-file-extraction (Failed)
          5 - JUnit-multiple-files-extraction (Failed)
          6 - JUnit-badarchive (Failed)
Errors while running CTest

then
MAKE PACAKGE RESULT
===================

Code: Select all

make package
[  0%] target
[  0%] Built target sevenzipjbinding-jar
[  1%] javah: generating h-files from java classes net.sf.sevenzipjbinding.SevenZip;net.sf.sevenzipjbinding.impl.InArchiveImpl
[ 98%] Built target 7-Zip-JBinding
[ 99%] Built target sevenzipjbinding-lib-jar
[ 99%] test
warning: [options] bootstrap class path not set in conjunction with -source 1.5
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] target value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
net/sf/sevenzipjbinding/junit/AllTestSuite.java:19: error: cannot find symbol
import net.sf.sevenzipjbinding.junit.multiplefiles.ExtractMultipleFileRarVolumeHeaderPassTest;
                                                  ^
  symbol:   class ExtractMultipleFileRarVolumeHeaderPassTest
  location: package net.sf.sevenzipjbinding.junit.multiplefiles
net/sf/sevenzipjbinding/junit/AllTestSuite.java:76: error: cannot find symbol
import net.sf.sevenzipjbinding.junit.snippets.OpenMultipartArchive7zTest;
                                             ^
  symbol:   class OpenMultipartArchive7zTest
  location: package net.sf.sevenzipjbinding.junit.snippets
net/sf/sevenzipjbinding/junit/AllTestSuite.java:77: error: cannot find symbol
import net.sf.sevenzipjbinding.junit.snippets.OpenMultipartArchiveRarTest;
                                             ^
  symbol:   class OpenMultipartArchiveRarTest
  location: package net.sf.sevenzipjbinding.junit.snippets
net/sf/sevenzipjbinding/junit/AllTestSuite.java:117: error: cannot find symbol
                        ExtractMultipleFileRarVolumeHeaderPassTest.class, //
                        ^
  symbol:   class ExtractMultipleFileRarVolumeHeaderPassTest
  location: class AllTestSuite
net/sf/sevenzipjbinding/junit/AllTestSuite.java:178: error: cannot find symbol
                        OpenMultipartArchive7zTest.class, //
                        ^
  symbol:   class OpenMultipartArchive7zTest
  location: class AllTestSuite
net/sf/sevenzipjbinding/junit/AllTestSuite.java:179: error: cannot find symbol
                        OpenMultipartArchiveRarTest.class, //
                        ^
  symbol:   class OpenMultipartArchiveRarTest
  location: class AllTestSuite
6 errors
4 warnings
make[2]: *** [jbinding-java/sevenzipjbinding-tests.jar] Error 1
make[1]: *** [CMakeFiles/sevenzipjbinding-test-jar.dir/all] Error 2
make: *** [all] Error 2
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How To Fix This "Failed to load 7z-JBinding"

Post by rednoah »

No idea, I don't even try to compile native code anymore. I just ship the Linux binaries they release, which at least work for the more popular Linux distros.
:idea: Please read the FAQ and How to Request Help.
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

Re: How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

hi, again

FileBot 4.1 (r2247)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=13, Permission denied
Extended Attributes: OK
Groovy Engine: 2.3.2
JRE: Java(TM) SE Runtime Environment 1.8.0_05 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
OS: Linux (amd64)
uname: Linux server.user.com 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

its kinda weird 7zip is fix lol , these are the steps i have done.

http://sourceforge.net/p/filebot/code/H ... nux-amd64/

all .so file i paste in my filebot directory , same thing i do 100 time with wget but error always remain. now i paste those .so file via FTP Smart-FTP...

filebot -script fn:sysinfo

and this is the result of this command

FileBot 4.1 (r2247)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=13, Permission denied
Extended Attributes: OK
Groovy Engine: 2.3.2
JRE: Java(TM) SE Runtime Environment 1.8.0_05 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
OS: Linux (amd64)
uname: Linux server.user.com 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

its kinda weird lol one more thing when i was Wget i always get lib7-Zip-JBinding.so?format\=raw then i have to rename file to lib7-Zip-JBinding.so , i dont know dose this make difference or not.

anyway for me its work so its good for me.

now the only issue remain here chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=13, Permission denied
btw i am using portable version of filebot.

regards
bye.
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

Re: How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

UPDATE
======
eror is still there

FileBot 4.1 (r2247)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=13, Permission denied
Extended Attributes: OK
Groovy Engine: 2.3.2
JRE: Java(TM) SE Runtime Environment 1.8.0_05 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
OS: Linux (amd64)
uname: Linux server.user.com 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

and if i run this on my filebot directory #./fpcalc.sh
./fpcalc
./fpcalc: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./fpcalc)


UPDATE 2
=======
reference = http://www.jthink.net/jaikozforum/posts/list/4531.page

after downloading http://dl.dropbox.com/u/5215054/fpcalc64 that and rename it fpcalc64 to fpcalc and chmod +x fpcalc after that
#./fpcalc


./fpcalc
usage: ./fpcalc [OPTIONS] FILE...

Options:
-length SECS length of the audio data used for fingerprint calculation (default 60)
-raw output the raw uncompressed fingerprint

its running on my system.
BUT

FileBot 4.1 (r2247)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=13, Permission denied
Extended Attributes: OK
Groovy Engine: 2.3.2
JRE: Java(TM) SE Runtime Environment 1.8.0_05 (headless)
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
OS: Linux (amd64)
uname: Linux server.user.com 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

filebot still not reading fpcalc how i fix this.......i already remove cahce temp file, i think it must be path issue ? or what can you help me out.


Regards
bye.
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How To Fix This "Failed to load 7z-JBinding"

Post by rednoah »

1.
fpcalc need to be in the PATH (but since you're running it with ./fpcalc I gues it's not), i.e. link fpcalc into /bin or something to that account.

2.
Alternatively, you can specify the absolute path to the fpcalc executable in filebot.sh where system properties are passed in:

Code: Select all

-Dnet.filebot.AcoustID.fpcalc=fpcalc
3.
Official binaries for 64-bit fpcalc are available here: http://acoustid.org/chromaprint
:idea: Please read the FAQ and How to Request Help.
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

Re: How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

after adding a path its give this error

chromaprint-tools: fpcalc -version failed (/usr/bin/fpcalc)

and command line its work fine.

root@server [~]# fpcalc
usage: fpcalc [OPTIONS] FILE...

Options:
-length SECS length of the audio data used for fingerprint calculation (default 60)
-raw output the raw uncompressed fingerprint

so it might be some specific version forced in filebot config?
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How To Fix This "Failed to load 7z-JBinding"

Post by rednoah »

If you downloaded some random binaries from some random dropbox account then I guess they're outdated.

Have you tried with the official 64-bit fpcalc binaries?
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How To Fix This "Failed to load 7z-JBinding"

Post by rednoah »

What do you get if you run fpcalc -version manually?

Code: Select all

fpcalc -version
:idea: Please read the FAQ and How to Request Help.
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

Re: How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

on official library download from there
https://bitbucket.org/acoustid/chromapr ... _64.tar.gz

or there
http://sourceforge.net/p/filebot/code/H ... nux-amd64/

both give error below.

root@server [/usr/bin]# fpcalc
fpcalc: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by fpcalc)
root@server [/usr/bin]# fpcalc -version
fpcalc: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by fpcalc)

and
download from here http://dl.dropbox.com/u/5215054/fpcalc64


root@server [/usr/bin]# fpcalc
usage: fpcalc [OPTIONS] FILE...

Options:
-length SECS length of the audio data used for fingerprint calculation (default 60)
-raw output the raw uncompressed fingerprint


root@server [/usr/bin]# fpcalc -version
ERROR: couldn't open the file
ERROR: unable to calculate fingerprint for file -version, skipping
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How To Fix This "Failed to load 7z-JBinding"

Post by rednoah »

Then it looks like the official version is too new for your machine. :D

This old 2011 version of fpcalc you have just doesn't implement the -version option yet, but it might still work. Have you tried? Just do fpcalc <path to audio file> and see what happens.
:idea: Please read the FAQ and How to Request Help.
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

Re: How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

fpcalc 01.The.Star-Spangled.Banner.mp3

result
--------

FILE=01.The.Star-Spangled.Banner.mp3
DURATION=172
FINGERPRINT=AQABz9GSJIuoJRHuQ_uIPA_8Bp9I_Md_nBlxvOKG70dcdL3AvBJOOAV_6DnwIOyDHz2sH_-B86B4hI0WQftG3Ag7HvcrdOOMxh7xKUV4aMkm48Z_6KWyDPyRKwZ3NN_xJIvg6CGuj8gfaPlwGfmk4C_ySYOO0C-obKjU4Tq-Ct18pDkhfgj547FQidUEi70Rt5QgnslQt0N-hL_g74ZY1XhxfCIOVTxMJbMQ63CJJws2efiP78gfOFMYrtB9WPmGXBtKvHoRNh6D1_ApoxY-fG1Q3miqBF-WB7pzxOvRlSr-CWfxfPg8NFyRH9CiKUuOPsSpI_xW_HCVDA-PvriIXwgp4od-oT-uMEIYHSV7nCi5I_jhacd44Rz04i9EHHaQNziDDydPbF9ShKLeocsHXdEGn8d--B-0h2D1ITwveBTOI1zYYjx-Qfvh4aEI5SpeIg_8D31wgWuObj-aCnEVXII-Vujh_eiP_mC7KvigbqRxCtFrXJWPXLh26Dry4yNO4z-mP7iGQJriI_fRRxUuw0TZKPh6BH3hdfjwA58kHPoOx0e_IBc_5DrRJxuFrdIh7kfKCeWJa8GN94nhLjTiphf0BzmmVOh3cD5-dMek8sKFE5ELHfHx7riOGTeFjoanDZOOn8jl9PiEH9UeB65OkNGOtDp8oQ9-_MR_o-GO4R-OH858HPfhI0fvCmU4Clqi44dSagk7TDm6B-XxHg5b4tcwk8evHFaNS8oPsWk45Jzww4-2owx58FLQVxT-4vkSOM4RMj-St8P-4YfjEw_3HGWVoJ0k4_iFmzkSL8kRL97Qd0fDZcVx7EFyxL7w-DiPKTfqF9cSEu9R5jiTHa7e4Ib7YTqN8_g_ZOkoiCtyXXAe3DzxUMcf9EaWPLOQjMecA7V4wxaN6hGe58ijRIl2aHoUIX0omMGXH9Ed6DsohH8m7MaR91C_IA93XBLOY-fRE02dHAxDR_CWoy-D6xZ6Gw3YHJXYI0-OJI3Mwh_xo5dUvHhQO2hGHs8u3EFzB3WSUFjX41mGWE-K8VGM88SFKTr-I3vSozZp9MKRJ1BEHXlyokuewufQG32Ww-9QH19D5FFyaF8yoTni1UQpJ5iiZSoDXiF6NP9RXphCHmfWo5ks9JkU_COSKMsRHnyOJvwxKTie49aH6Esl6ESop9gRnolWaD6aMD6eQ_mRPceFLZKY40qSy_gTwMsf4tE-HElbhHFz1MSeHLyEmTmevEOdUsR7VB-Py2j8Bsl8hPMF_7gAQphCQAAAiUCGFEQEYsQQYUUEwgQCEGMGAsSAQJgZ4ABhDgIghCIKOSYAAm5AYYUBghkClCJKCAAmZJASAIAzmBDIBALIGUEEAQIBYZCTBgAgCWHKEQSI4UAKhIAwjEmDjCHIGWKIEAISACABRBgAjDIMAWQYZQgoQgAgQgGoBBNIGUFEEIQJZxwRxiBiAFCEAmmdEdIQRQwQBhgABAUCEcAIcQA5C5CBlCihkDBACMKIENQBRRkRCADCjMcAWEI9CYgCQKURjBAgADBAMiWIAgAZgJAgwCguDBDCUAOYFIaLjhpABBCkEJEEGGUEg4QQIywQTCEkgHICCGAIgI4YIhQQSgLggABEAYEEQUIBwQRiRBJBkCDIKUAAYMI8YAAQEjJnCEFCAOgIYcI6BAwBBChFGBIAKwAlIAYAY4QUjBqEAHQCECaAEBwxRwgRDAGDGCRIMQ
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

Re: How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

this might be issue on latest build i think.

yum install glibc

Package glibc-2.12-1.132.el6_5.2.x86_64 already installed and latest version

and

fpcalc: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by fpcalc) it is required
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How To Fix This "Failed to load 7z-JBinding"

Post by rednoah »

1.
Looks like it's working. FileBot doesn't need "-version" to work naturally as long as it works when called on files.

2.
Not really, whatever flavour of Linux you're using it only supports glibc-2.12 but new versions of fpcalc are compiled against glibc-2.14
:idea: Please read the FAQ and How to Request Help.
pb421
Posts: 15
Joined: 12 Jun 2014, 08:05

Re: How To Fix This "Failed to load 7z-JBinding"

Post by pb421 »

Hello again,

yes its working now i forgot to add --def music=y .

Thanks
Regards.
Post Reply