Page 1 of 1

Unable to run Filebot on unraid server

Posted: 21 Oct 2012, 18:58
by greenythebeast
Java version: 1.6.0_27

Using the portable version of filebot

When I run filebot.sh I get the following error:

Code: Select all

root@Greenyserver:/mnt/cache/.apps/filebot# ./filebot.sh
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/java/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.load0(Unknown Source)
	at java.lang.System.load(Unknown Source)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at sun.security.action.LoadLibraryAction.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
	at sun.awt.DebugHelper.<clinit>(Unknown Source)
	at java.awt.EventQueue.<clinit>(Unknown Source)
	at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
	at net.sourceforge.filebot.Main.main(Unknown Source)
Got the same error when running the .jar file directly. Any ideas?

Re: Unable to run Filebot on unraid server

Posted: 22 Oct 2012, 00:13
by rednoah
You're trying to use it from the cmdline right? Add some arguments for what you wanna do.

Print cmdline syntax:

Code: Select all

filebot -help
With no arguments it'll try to start the GUI => will fail if you only got headless since it can't load the window toolkit.

Re: Unable to run Filebot on unraid server

Posted: 22 Oct 2012, 01:28
by greenythebeast
rednoah wrote:You're trying to use it from the cmdline right? Add some arguments for what you wanna do.

Print cmdline syntax:

Code: Select all

filebot -help
With no arguments it'll try to start the GUI => will fail if you only got headless since it can't load the window toolkit.
Alright, that seems to work better! :)

Another question. I am unable to run Filebot by just running "filebot -help". I have to use "java -jar FileBot.jar -help". Is there a way to shorten that down to what you suggested?

Re: Unable to run Filebot on unraid server

Posted: 22 Oct 2012, 01:39
by rednoah
Why? Just link the filebot.sh startup script to /bin/filebot or something so the shell can find the command.

Running java directly is not recommended. Use the my startup script if you can:
http://sourceforge.net/p/filebot/code/1 ... format=raw

Re: Unable to run Filebot on unraid server

Posted: 22 Oct 2012, 01:41
by greenythebeast
Now I'm getting this error :(

Code: Select all

root@Greenyserver:~# java -jar /mnt/cache/.apps/filebot/FileBot.jar -extract /mnt/user/Torrents/Sherlock.S01.720p.BluRay.x264-SCC/Sherlock.S01E01.720p.BluRay.x264-AVCHD/avchd-sherlock.s01e01.720p.bluray.x264.r00 
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/java/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.load0(Unknown Source)
	at java.lang.System.load(Unknown Source)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at sun.security.action.LoadLibraryAction.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
	at sun.awt.DebugHelper.<clinit>(Unknown Source)
	at java.awt.Component.<clinit>(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at com.sun.jna.Platform.<clinit>(Platform.java:68)
	at net.sourceforge.filebot.Analytics.getUserAgent(Unknown Source)
	at net.sourceforge.filebot.Analytics.getConfig(Unknown Source)
	at net.sourceforge.filebot.Analytics.getTracker(Unknown Source)
	at net.sourceforge.filebot.Analytics.trackView(Unknown Source)
	at net.sourceforge.filebot.Analytics.trackView(Unknown Source)
	at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
	at net.sourceforge.filebot.Main.main(Unknown Source)

Re: Unable to run Filebot on unraid server

Posted: 22 Oct 2012, 01:59
by rednoah
That works. The cmdline is probably messed up somehow and not passing in arguments to FileBot. You do have the latest version right?

e.g.

Code: Select all

java -jar FileBot_3.0.jar -extract .
Read archive [filebot-3.0-src.zip] to [D:\Development\eclipse\filebot\dist\filebot-3.0-src]
...
EDIT:
That's an odd stacktrace though. Try setting -no-analytics.

Re: Unable to run Filebot on unraid server

Posted: 22 Oct 2012, 02:17
by greenythebeast
I'm a noob to Linux so if you could give me a hint as to how to make a link I'd appreciate it. Also new error when using the .sh file:

Code: Select all

root@Greenyserver:/mnt/cache/.apps/filebot# ./filebot.sh -extract /mnt/user/Torrents/Sherlock.S01.720p.BluRay.x264-SCC/Sherlock.S01E02.720p.BluRay.x264-AVCHD/avchd-sherlock.s01e02.720p.bluray.x264.rar -no-analytics --output /mnt/user/Torrents
UnsatisfiedLinkError: /usr/lib/java/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: /usr/lib/java/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.load0(Unknown Source)
	at java.lang.System.load(Unknown Source)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(Unknown Source)
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at sun.security.action.LoadLibraryAction.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
	at sun.awt.DebugHelper.<clinit>(Unknown Source)
	at java.awt.Component.<clinit>(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at com.sun.jna.Platform.<clinit>(Platform.java:68)
	at net.sourceforge.filebot.archive.SevenZipLoader.requireNativeLibraries(Unknown Source)
	at net.sourceforge.filebot.archive.SevenZipLoader.open(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.sourceforge.filebot.archive.Archive.<init>(Unknown Source)
	at net.sourceforge.filebot.cli.CmdlineOperations.extract(Unknown Source)
	at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
	at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (?_?)

Re: Unable to run Filebot on unraid server

Posted: 22 Oct 2012, 02:52
by rednoah
e.g. in the Ubuntu the installer I do this, but you might need to adjust the paths for your distro a bit:

Code: Select all

ln -s /usr/share/filebot/bin/filebot.sh /usr/bin/filebot
May have fixed things with r1249:
http://sourceforge.net/projects/filebot ... ebot/HEAD/

Otherwise maybe this helps:
http://ubuntuforums.org/showthread.php?t=1099777

Seems to be all caused by some wierd non-standard headless Java package or something.

Re: Unable to run Filebot on unraid server

Posted: 22 Oct 2012, 03:22
by greenythebeast
rednoah wrote:e.g. in the Ubuntu the installer I do this, but you might need to adjust the paths for your distro a bit:

Code: Select all

ln -s /usr/share/filebot/bin/filebot.sh /usr/bin/filebot
May have fixed things with r1249:
http://sourceforge.net/projects/filebot ... ebot/HEAD/

Otherwise maybe this helps:
http://ubuntuforums.org/showthread.php?t=1099777

Seems to be all caused by some wierd non-standard headless Java package or something.
Renaming files using r1249 works great. I'll let you know when I have files to unrar whether it works with that too.

Re: Unable to run Filebot on unraid server

Posted: 22 Oct 2012, 04:29
by rednoah
There's a good chance to that 7-Zip native integration doesn't work since the required native libraries are not compatible embedded Linux. If you're lucky the generic Linux libs might work, though for most devices they don't.

Re: Unable to run Filebot on unraid server

Posted: 25 Oct 2012, 03:42
by greenythebeast

Code: Select all

root@Greenyserver:~# /mnt/cache/.apps/filebot/filebot.sh -extract "/mnt/user/Torrents/Homeland.S01.PROPER.720p.BluRay.x264-SCC/Homeland.S01E01.720p.BluRay.x264-SiNNERS/homeland.s01e01.720p.bluray.x264-sinners.rar" --output /mnt/user/Torrents 
Oct 24, 2012 10:41:21 PM net.sourceforge.tuned.prefs.FilePreferencesFactory getPreferencesFile
INFO: Preferences file is /root/prefs.properties
Oct 24, 2012 10:41:21 PM net.sourceforge.filebot.archive.SevenZipLoader requireNativeLibraries
WARNING: Failed to preload library: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Platform
UnsatisfiedLinkError: no 7-Zip-JBinding in java.library.path
java.lang.UnsatisfiedLinkError: no 7-Zip-JBinding in java.library.path
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at net.sourceforge.filebot.archive.SevenZipLoader.requireNativeLibraries(Unknown Source)
	at net.sourceforge.filebot.archive.SevenZipLoader.open(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.sourceforge.filebot.archive.Archive.<init>(Unknown Source)
	at net.sourceforge.filebot.cli.CmdlineOperations.extract(Unknown Source)
	at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
	at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)
Looks like it's the 7zip issue you suggested.

Re: Unable to run Filebot on unraid server

Posted: 25 Oct 2012, 04:46
by rednoah
I guess you're using the portable package, that doesn't include any native libs since I can't know what platform/arch you'll be running on.

You'll need to grab the right one yourself:
http://sourceforge.net/p/filebot/code/H ... ib/native/

Like I said, if you're lucky the one for Linux 32-bit will work out of the box, if not you have no choice but to compile it yourself (and I can't help you with that):
https://github.com/borisbrodski/sevenzipjbinding#readme

Re: Unable to run Filebot on unraid server

Posted: 27 Oct 2012, 16:52
by greenythebeast
Should I be picking i386 or i686? Also, where should I put these once I download them?

Re: Unable to run Filebot on unraid server

Posted: 27 Oct 2012, 17:02
by rednoah
They're basically the same, the first one is for desktops so there's only the .deb, the second one is for embedded packaged as .ipkg

Ideally you'd only have to install via ipkg:

Code: Select all

ipkg install http://sourceforge.net/projects/filebot/files/filebot/FileBot_3.0/filebot_3.0_i686.ipk

Re: Unable to run Filebot on unraid server

Posted: 16 Jun 2013, 05:10
by part timer
Did this ever end up working on unraid? I'm curious about setting up a torrent client for my unraid server to let it do the downloading and renaming instead of my main pc.

Thanks