Looking for testers on Synology NAS

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Looking for testers on Synology NAS

Post by rednoah »

UPDATE

* The latest FileBot 4.1 RC3 arm/ipk packages contain fpcalc binaries (armada370) so it'll work with DS213j to the very least.
* Groovy should be 3x faster with FileBot 4.1 RC3 now (on my DS213j anyway)

I don't really have time to work on a WebUI right now so that'll have to wait until the Summer. Then I'll have time to continue on a proper Synology package.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Looking for testers on Synology NAS

Post by rednoah »

:: UPDATE ::

Very Early Prototype:
Image

Right now it's going more for a cmdline wrapper. Any thoughts? Ideas? I don't really know what ought to be doing here. :lol:
:idea: Please read the FAQ and How to Request Help.
acroschue
Posts: 1
Joined: 24 Jun 2014, 16:57

Re: Looking for testers on Synology NAS

Post by acroschue »

Linux NAS02 3.2.40 #4493 SMP Thu May 29 11:05:51 CST 2014 x86_64 GNU/Linux synology_cedarview_1813+

Code: Select all

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 54
model name      : Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
stepping        : 1
microcode       : 0x10d
cpu MHz         : 2127.854
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm
bogomips        : 4255.70
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 54
model name      : Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
stepping        : 1
microcode       : 0x10d
cpu MHz         : 2127.854
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm
bogomips        : 4255.72
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 54
model name      : Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
stepping        : 1
microcode       : 0x10d
cpu MHz         : 2127.854
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 2
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm
bogomips        : 4255.79
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 54
model name      : Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
stepping        : 1
microcode       : 0x10d
cpu MHz         : 2127.854
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 2
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm
bogomips        : 4255.76
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Looking for testers on Synology NAS

Post by rednoah »

FileBot now has it's own Package Source.

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

Notes:
* Java 8 needs to be installed properly, i.e. java -version works
* Installs filebot console tool
* Installs only platform-independent code, so no support for mediainfo, 7zip and fpcalc


If you're lucky one of the native library binaries will work for your platform. You can tell java where to look for native libraries by setting LD_LIBRARY_PATH.

Code: Select all

export LD_LIBRARY_PATH="/path/to/native/libraries"
:idea: Please read the FAQ and How to Request Help.
goyon2000
Posts: 19
Joined: 12 Nov 2013, 12:53

Re: Installing FileBot on Synology NAS

Post by goyon2000 »

Hello

I have some problelm on my synology

Here is the log

]

Code: Select all

DiskStation> tail -f amc.log
Input: /volume1/Synology/Download/Rizzoli.and.Isles.S05E04.mkv
Input: /volume1/Synology/Download/Rizzoli.and.Isles.S05E05.mkv
Input: /volume1/Synology/Download/[www.Cpasbien.pe] 300 Rise Of An Empire 2014 FRENCH BRRiP XViD-CARPEDIEM.avi
OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
        at Script1.run(Script1.groovy:238)
        at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:60)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:81)


do I need to treat file by file 
what can use the memory ?


        at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:108)
Failure (°_°)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on Synology NAS

Post by rednoah »

Java/Groovy/FileBot doesn't get enough memory to process everything:

Code: Select all

filebot -script fn:sysinfo
What device are you using anyway?
:idea: Please read the FAQ and How to Request Help.
goyon2000
Posts: 19
Joined: 12 Nov 2013, 12:53

Re: Installing FileBot on Synology NAS

Post by goyon2000 »

Code: Select all

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-arm/libmediainfo.so) not found in resource path ([file:/volume1/@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: java.lang.RuntimeException: java.lang.IllegalStateException: java.nio.file.FileSystemException: /volume1/@appstore/filebot/.xattr-test: Error writing extended attribute 'net.filebot.metadata': Operation not supported
Groovy Engine: 2.3.4
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_06 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 1 Core / 56 MB Max Memory / 12 MB Used Memory
OS: Linux (arm)
uname: Linux DiskStation 2.6.32.12 #4493 Wed Jul 16 11:37:16 CST 2014 armv5tel GNU/Linux synology_88f6281_110j
Done ã¾(ï¼ âã¼âï¼ )ã

Synology 110j
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on Synology NAS

Post by rednoah »

Sorry, that one is too old. Only got 128 MB RAM and Java is limited to 56 MB. That's not enough. Simple filebot calls should work fine, but advanced scripts like amc will run out of memory.

Have you tried running it on a single file? Does that even work? If yes you can start looking into the find command and then call filebot/amc for each file from console.
:idea: Please read the FAQ and How to Request Help.
goyon2000
Posts: 19
Joined: 12 Nov 2013, 12:53

Re: Installing FileBot on Synology NAS

Post by goyon2000 »

Ok understood

it seems that it was working before. Maybe the version 4.1 ?

I am going to create a script on my pc.

thank you for you fast answer
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on Synology NAS

Post by rednoah »

That won't make much of a difference. Probably depends more on what exactly / how many files you're processing. You could try setting -Xmx100m (or lower or higher depending on what works) in the java call in filebot.sh to increase the default memory limit.
:idea: Please read the FAQ and How to Request Help.
User avatar
fry
Posts: 6
Joined: 02 Aug 2014, 16:43

Re: Installing FileBot on Synology NAS

Post by fry »

I've installed the package and the app runs fine. That is, when I run it as a root user with 'sudo'. When I login with my admin-user account (what I usually do) I get the following output:

Code: Select all

CacheException: Disk store path can't be created: /volume1/@appstore/filebot/cache/default
net.sf.ehcache.CacheException: Disk store path can't be created: /volume1/@appstore/filebot/cache/default
	at net.sf.ehcache.DiskStorePathManager.resolveAndLockIfNeeded(DiskStorePathManager.java:141)
	at net.sf.ehcache.DiskStorePathManager.getFile(DiskStorePathManager.java:262)
	at net.sf.ehcache.DiskStorePathManager.getFile(DiskStorePathManager.java:251)
	at net.sf.ehcache.store.disk.DiskStorageFactory.<init>(DiskStorageFactory.java:123)
	at net.sf.ehcache.store.disk.DiskStore.create(DiskStore.java:154)
	at net.sf.ehcache.store.disk.DiskStore.createCacheStore(DiskStore.java:182)
	at net.sf.ehcache.Cache.initialise(Cache.java:1153)
	at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1332)
	at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1398)
	at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:794)
	at net.sf.ehcache.CacheManager.doInit(CacheManager.java:492)
	at net.sf.ehcache.CacheManager.init(CacheManager.java:387)
	at net.sf.ehcache.CacheManager.<init>(CacheManager.java:263)
	at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:1078)
	at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:854)
	at net.sf.ehcache.CacheManager.create(CacheManager.java:835)
	at net.sf.ehcache.CacheManager.getInstance(CacheManager.java:869)
	at net.filebot.Cache.getCache(Cache.java:14)
	at net.filebot.web.TheTVDBClient.getCache(TheTVDBClient.java:90)
	at net.filebot.web.AbstractEpisodeListProvider.search(AbstractEpisodeListProvider.java:34)
	at net.filebot.cli.CmdlineOperations.fetchEpisodeSet(CmdlineOperations.java:267)
	at net.filebot.cli.CmdlineOperations.renameSeries(CmdlineOperations.java:197)
	at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:94)
	at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:72)
	at net.filebot.Main.main(Main.java:191)
Obviously FileBot needs to write to the cache folder, but I don't know how to fix this.

Any ideas on how to resolve the problem?

If I should move this to another topic, c.f. Looking for testers on Synology NAS do tell me, I wasn't sure if this is the right place.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on Synology NAS

Post by rednoah »

After install DSM should be calling this script and give you permissions for that folder:
http://sourceforge.net/p/filebot/code/H ... s/postinst

For some reason your user account does not have permission to access the cache folder. So you'll need to fix these permissions manually.

Image
:idea: Please read the FAQ and How to Request Help.
joachim
Posts: 3
Joined: 11 Aug 2014, 12:00

Re: Looking for testers on Synology NAS

Post by joachim »

Hi,
I would like to test FileBot, however I have a DS209 which can not go to DSM 5.0 which seems to be a prereq.
Is there an older version that runs on DSM 4,2
Thx a lot!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Looking for testers on Synology NAS

Post by rednoah »

I've never tested with DSM 4.2 but as long as it run Java 8 it should be fine. You can manually "install" things by just extracting the .spk or the portable package.

Though if it's an older device it might not have enough memory to run FileBot. I'd say 256+ MB should do, but less might require some tinkering.

PS: I'm pretty sure DSM 5.0 runs on any DSM 4.2 device just as well, since DSM runs in the browser and the NAS server-side component should run on any hardware really.
:idea: Please read the FAQ and How to Request Help.
joachim
Posts: 3
Joined: 11 Aug 2014, 12:00

Re: Looking for testers on Synology NAS

Post by joachim »

thank you for your fast answer!
I updated the INFO file to
firmware="4.2"
Now I can install and run FileBot.
I do have Java 8.0
Joachim
joachim
Posts: 3
Joined: 11 Aug 2014, 12:00

Re: Looking for testers on Synology NAS

Post by joachim »

I am trying to rename TBBT videos to the standard naming.
Not sure whether I use FileBot correctly.
It did do the rename but complains about metadata problems. I actually don't need them.

Code: Select all

-rw-r--r-- 1 root root    5 Aug 11 12:36 The Big Bang Theory - 6x11 - The Santa Simulation.mkv
NAS> filebot -rename . --format "{n} E{e} [{t}]"  -non-strict
Filename pattern: [1.00] SxE, [0.00] CWS
Rename episodes using [TheTVDB]
Auto-detected query: [The Big Bang Theory]
Fetching episode data for [The Big Bang Theory]
[MOVE] Rename [/root/test+/The Big Bang Theory - 6x11 - The Santa Simulation.mkv] to [The Big Bang Theory E11 [The Santa Simulation].mkv]
Processed 1 files
Aug 11, 2014 1:58:24 PM net.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.lang.IllegalStateException: java.nio.file.FileSystemException: /root/test+/The Big Bang Theory E11 [The Santa Simulation].mkv: Error writing extended attribute 'net.filebot.metadata': Operation not supported
Done ã¾(ï¼ âã¼âï¼ )ã
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Looking for testers on Synology NAS

Post by rednoah »

It's just a warning that xattr is not supported on your platform. You can pass -no-xattr to disable that feature.
:idea: Please read the FAQ and How to Request Help.
f3bruary
Posts: 35
Joined: 16 May 2014, 11:33

Re: Looking for testers on Synology NAS

Post by f3bruary »

Synology DS112+ running DSM 5.0-4493 Update 3. I usually stay up to date all the time.

Linux thegibson 2.6.32.12 #4493 Wed Jul 16 11:37:16 CST 2014 armv5tel GNU/Linux

Single core ARM cpu

I'm willing to help you test if needed. I actually use Filebot only for subtitle fetching but I can test renaming too if you want.
Slennox
Posts: 5
Joined: 13 Oct 2014, 18:19

Re: Looking for testers on Synology NAS

Post by Slennox »

Hello, rednoah.

Just FYI, the Java SE Embedded for PPC architecture does not come with JNA :(

Code: Select all

DiskStation> filebot -script fn:sysinfo
FileBot 4.5 (r2612)
JNA Native: null
MediaInfo: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
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: java.lang.RuntimeException: java.nio.file.FileSystemException: /volume1/@appstore/filebot/data/.xattr-test: Error writing extended attribute 'net.filebot.metadata': Operation not supported
Groovy Engine: 2.3.7
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_06 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 2 Core / 245 MB Max Memory / 12 MB Used Memory
OS: Linux (ppc)
uname: Linux DiskStation 2.6.32.12 #4528 SMP Fri Oct 10 08:10:07 CST 2014 ppc GNU/Linux synology_qoriq_413
Done ヾ(@⌒ー⌒@)ノ
I managed to compile a libjnidispatch.so on my NAS and packaged it on jna.jar, but it seems it doesn't work:

Code: Select all

DiskStation> ./jexec jna.jar
Exception in thread "main" java.lang.Error: 

There is an incompatible JNA native library installed on this system
(at /tmp/jna-3506402/jna7758888899074853438.tmp).
To resolve this issue you may do one of the following:
 - remove or uninstall the offending library
 - set the system property jna.nosys=true
 - set jna.boot.library.path to include the path to the version of the 
   jnidispatch library included with the JNA jar file you are using

	at com.sun.jna.Native.<clinit>(Native.java:146)
DiskStation>
Please let me know if someone has made any progress on this architecture.
virtusek
Posts: 1
Joined: 08 Nov 2014, 14:22

Re: Looking for testers on Synology NAS

Post by virtusek »

Hello,

Code: Select all

DiskStation> filebot -script fn:sysinfo
FileBot 4.5 (r2612)
JNA Native: 4.0.0
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (linux-arm/libmediainfo.so) not found in resource path ([file:/volume1/@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: java.lang.RuntimeException: java.nio.file.FileSystemException: /volume1/@appstore/filebot/data/.xattr-test: Error writing extended attribute 'net.filebot.metadata': Operation not supported
Groovy Engine: 2.3.7
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 1 Core / 121 MB Max Memory / 11 MB Used Memory
OS: Linux (arm)
uname: Linux DiskStation 2.6.32.12 #4493 Thu Aug 21 21:43:08 CST 2014 armv5tel GNU/Linux synology_88f6282_413j
Done ăž(ďź âăźâďź )ă
I am happy to run some test if needed (I am yet to try native libs you linked).

Most of the time it just works (using mainly for renaming and subtitles) - but recently I noticed this:

Code: Select all

DiskStation> filebot -get-missing-subtitles *.mkv --encoding utf8 --output srt --lang en
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Lookup by hash failed: redstone.xmlrpc.XmlRpcArray cannot be cast to java.util.Map
No matching subtitles found
(It still looks up ok by name with non-strict option)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Looking for testers on Synology NAS

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
WtfJoke
Posts: 7
Joined: 13 Dec 2014, 02:44

Re: Looking for testers on Synology NAS

Post by WtfJoke »

DS213:
Linux DS213 2.6.32.12 #5004 Sat Nov 29 01:34:57 CST 2014 armv5tel GNU/Linux synology_88f6282_213
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Looking for testers on Synology NAS

Post by Achandab »

3.2.40 #5022 SMP Wed Jan 7 14:19:49 CST 2015 x86_64 GNU/Linux synology_avoton_415+
Intel based processor though. Not sure if it helps.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Looking for testers on Synology NAS

Post by rednoah »

Future version of FileBot (v4.5.7 and above) will delegate all native dependencies (except the JRE) to other packages.

* Extract features will be implemented via the 7z cmdline utility which is available by default (instead of native libraries)
* libmediainfo is provided by SynoCommunity MediaInfo package
* fpcalc cmdline utility is provided by SynoCommunity (currently in development)

PS: I've starting working on a very basic DSM UI again as well. You can follow the (very) slow progress here.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Looking for testers on Synology NAS

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
Post Reply