7Zip not working with Intel Synology

Any questions? Need some help?
Post Reply
isujinx
Posts: 13
Joined: 24 Sep 2014, 19:17

7Zip not working with Intel Synology

Post by isujinx »

I am trying to get Filebot to process all of my files in my torrent directory, and move them where they belong. It is working fine for movies and TV shows, but it won't handle any e-books. While I know it won't rename them, it should be able to extract the .zips and move the mobi/epub files to another folder, correct? I am attempting to use the "Unsorted" parameter in my script, but it is failing because it can't unzip the folders - so the ebooks sit in my torrent directory and get re-processed every time something else calls FileBot script. I tried to install 7zip via the http://sevenzipjbind.sourceforge.net/ website and was met with the following errors.

I have copied the 2 mentioned .jar files from http://sevenzipjbind.sourceforge.net/first_steps.html into my Java path (volume1/@appstore/java8.ejdk1.8.0_06/lib) and run the java -cp commands on the First Steps page, but they just give me the man page, like the command failed.

Code: Select all

RackStation> java -cp /volume1/@appstore/java8/ejdk1.8.0_06/lib/sevenzip-jbinding.jar
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
<<<... and the rest of the man page...>>>
Here's my sysinfo result:

Code: Select all

RackStation> filebot -script fn:sysinfo
FileBot 4.2 (r2326)
JNA Native: 4.0.0
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (linux-x86/libmediainfo.so) not found in resource path ([file:/vol          ume1/@appstore/filebot/FileBot.jar])
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Groovy Engine: 2.3.4
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_06 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Server VM
CPU/MEM: 4 Core / 419 MB Max Memory / 15 MB Used Memory
OS: Linux (i386)
uname: Linux RackStation 3.2.40 #4493 SMP Fri Aug 22 09:36:14 CST 2014 x86_64 GNU/Linux synology_bromolow_rs3412xs
Done ヾ(@⌒ー⌒@)ノ

Do i have to chmod those .jars to something besides just drag and drop with WinSCP? Am I running mismatched versions of java and filebot (even though they work for movies and tv shows)? Can I point Filebot to theSynology DSM's built in Zip program, rather than the java binding?

I'd also like to get mediainfo running, but that is of much lower concern. I installed the MissleHugger package, and it isn't recognized by Filebot, even after a restart.

Thanks in advance!
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7Zip not working with Intel Synology

Post by rednoah »

1. Re: Repeatedly running amc on the same folder:

Code: Select all

[b]--def excludeList=amc-input.txt[/b] Keep a list of previously processed files to be ignored in future runs (if you run this script on the same files repeatedly you must enable this option)
2. Advanced setup for native components
You don't need any .jar (java code) but you will need the .so (native code) library. If it's an Intel x86 you might get lucky with the generic Linux binaries, otherwise you'll need to compile it yourself (very difficult) for your platform.

@see http://www.filebot.net/forums/viewtopic.php?f=3&t=1802

3. Media Info
Same as the above. Keep in mind that you'll need libmediainfo.so and not the mediainfo cmdline tool.
:idea: Please read the FAQ and How to Request Help.
isujinx
Posts: 13
Joined: 24 Sep 2014, 19:17

Re: 7Zip not working with Intel Synology

Post by isujinx »

Thanks for the prompt response!

I was able to get the advanced packages installed an running quite easily once I saw the ipkg post.

I don't want to continuously run over the same files, I want filebot to say "I don't know what these are, but they're not movies or TV shows", and then move them somewhere else so I can manually sort them later. I thought that was what the --def unsorted=y was for. However, this is still not working for me, although now all the files are extracting properly with the 7zip J binding installed correctly.

My filebot script is as follows: Note: things in <> are replacements for my actual values

Code: Select all

#!/bin/sh
PATH=/volume1/@appstore/filebot:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/volume1/@appstore/java8/ejdk1.8.0_06/linux_i586/jre/bin
OUTPUT=$(/volume1/@appstore/filebot/filebot.sh -script fn:amc -r --output '/volume1' -non-strict '/volume1/Torrent Data/Extracted' --action move --conflict override --def plex=<MyPlexIP> --def clean=y --def unsorted=y --def gmail=<myemailaddy:myemailpassword> --def reportError=y)
NAME=$(whoami)

sendmail -F "RackStation" -f "<[email protected]>" -t "<[email protected]>" <<EOF
Subject: FileBot Processing Complete
FileBot Output below: 
$OUTPUT
Script was run as: $NAME
-RackStation Daemon
For my latest run, this produced an email that looked like :

Code: Select all

FileBot Output below:
Parameter: plex = <myplexIP>
Parameter: clean = y
Parameter: unsorted = y
Parameter: gmail = *****
Parameter: reportError = y
Argument: /volume1/Torrent Data/Extracted
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation and Earth/Foundation and Earth - Isaac Asimov.mobi
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation and Earth/Foundation and Earth - Isaac Asimov.jpg
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation and Earth/Foundation and Earth - Isaac Asimov.opf
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Forward the Foundation/Forward the Foundation - Isaac Asimov.mobi
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Forward the Foundation/Forward the Foundation - Isaac Asimov.jpg
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Forward the Foundation/Forward the Foundation - Isaac Asimov.opf
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation's Edge/Foundation's Edge - Isaac Asimov.mobi
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation's Edge/Foundation's Edge - Isaac Asimov.jpg
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation's Edge/Foundation's Edge - Isaac Asimov.opf
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Prelude to Foundation/Prelude to Foundation - Isaac Asimov.mobi
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Prelude to Foundation/Prelude to Foundation - Isaac Asimov.jpg
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Prelude to Foundation/Prelude to Foundation - Isaac Asimov.opf
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation and Empire/Foundation and Empire - Isaac Asimov.mobi
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation and Empire/Foundation and Empire - Isaac Asimov.jpg
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation and Empire/Foundation and Empire - Isaac Asimov.opf
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Second Foundation/Second Foundation - Isaac Asimov.mobi
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Second Foundation/Second Foundation - Isaac Asimov.jpg
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Second Foundation/Second Foundation - Isaac Asimov.opf
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation/Foundation - Isaac Asimov.mobi
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation/Foundation - Isaac Asimov.jpg
Exclude: /volume1/Torrent Data/Extracted/Isaac Asimov - Foundation/Foundation/Foundation - Isaac Asimov.opf
Exclude: /volume1/Torrent Data/Extracted/The.Girl.With.The.Dragon.Tattoo.Ebook.Trilogy-RTT/Instructions.txt
Exclude: /volume1/Torrent Data/Extracted/The.Girl.With.The.Dragon.Tattoo.Ebook.Trilogy-RTT/The Girl Who Kicked the Hornet's Nest - Stieg Larsson.epub
Exclude: /volume1/Torrent Data/Extracted/The.Girl.With.The.Dragon.Tattoo.Ebook.Trilogy-RTT/The Girl Who Kicked the Hornet's Nest.jpg
Exclude: /volume1/Torrent Data/Extracted/The.Girl.With.The.Dragon.Tattoo.Ebook.Trilogy-RTT/The Girl Who Played with Fire - Stieg Larsson.epub
Exclude: /volume1/Torrent Data/Extracted/The.Girl.With.The.Dragon.Tattoo.Ebook.Trilogy-RTT/The Girl Who Played with Fire - Stieg Larsson.jpg
Exclude: /volume1/Torrent Data/Extracted/The.Girl.With.The.Dragon.Tattoo.Ebook.Trilogy-RTT/The Girl with the Dragon Tattoo - Stieg Larsson.epub
Exclude: /volume1/Torrent Data/Extracted/The.Girl.With.The.Dragon.Tattoo.Ebook.Trilogy-RTT/The Girl with the Dragon Tattoo - Stieg Larsson.jpg
Failure (掳_掳)
Script was run as: root
-RackStation Daemon
This particular download didn't have to extract any files, but that worked fine in the one immediately previous to this. But, none of those files have been moved out of "/volume1/Torrent Data/Extracted" to "/volume1/unsorted", as I was led to believe that parameter did.

Updated sysinfo:

Code: Select all

RackStation> filebot -script fn:sysinfo
FileBot 4.2 (r2326)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (/volume1/@appstore/filebot/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.3.4
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_06 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Server VM
CPU/MEM: 4 Core / 419 MB Max Memory / 28 MB Used Memory
OS: Linux (i386)
uname: Linux RackStation 3.2.40 #4493 SMP Fri Aug 22 09:36:14 CST 2014 x86_64 GNU/Linux synology_bromolow_rs3412xs
Done ヾ(@⌒ー⌒@)ノ
Any ideas?
User avatar
rednoah
The Source
Posts: 23940
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 7Zip not working with Intel Synology

Post by rednoah »

Have you tried 4.5_B3 because the --def unsorted might be a fairly new feature so it's not implemented in the 4.1+ scripts repository.

Though unsorted might only work for unsorted media files, i.e. movies or episodes that can't be identified.
:idea: Please read the FAQ and How to Request Help.
isujinx
Posts: 13
Joined: 24 Sep 2014, 19:17

Re: 7Zip not working with Intel Synology

Post by isujinx »

I haven't tried 4.5_B3, because I'm using the Synology package center install (and won't physically be around my NAS to fix things for a while). Sounds like what Ill have to do is use my RSS feeds to split my downloads into video media that Filebot can handle, and then a folder for Other which I manually sort through. Since I have extraction working properly now (thanks!), that should do what I want it to do. Appreciate the help :)
Post Reply