Synology NAS - Java Update issue

Any questions? Need some help?
Post Reply
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Synology NAS - Java Update issue

Post by BelugaManta »

I apologise if this has been answered but I have read the Filebot FAQ and also Goo gle dot com for help and can't seem to find something that is simple enough for me to understand. I have a Synology Nas 415+, I have java manager loaded from package center and FB from package center too. I ahve ssh ino the synology on my CHromebook and have the diskstation prompt but when I enter any of the Filebot script calls, even the sys info one I get the following:-

Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

I have the Java version jdk-7u71-linux-i586.tar dloaded and installed. I can't find an update and when I try to dload a JRE version 8 it wont install saying wrong file. Although I have had a Buffalo NAs and was using Setting.JSON for "transmission", previously I am happy with SSH I find I am a bit stuck and don't know what I am missing or Understand. Thank you for your help and sorry if I have missed this answer in yours or another forum.
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Java Update issue

Post by rednoah »

You will need Java 8 as per FAQ. Though "installing" Java 8 is of course different for each platform.

It's running just fine on my DS214j here. You simply download it, unpack the files, and then link the java executable into /bin or somewhere.

It's really easy if you have a general understanding how Linux works. You can ignore that "Java Manager" tool. It's not working right and they keep ignoring my bug reports even though it'd be easy to fix...

If you have issues and need a more detailed step by step instructions it's probably best to ask people in the Synology forums. ;)
:idea: Please read the FAQ and How to Request Help.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: Synology NAS - Java Update issue

Post by BelugaManta »

Thanks for the help, I have now installed Java 7 but am still getting error java not installed on line 37, i have again googled but to no avail. I used PCLoadletter guide and it is shown as running on the package center? Really frustrating as I am in the middle of moving house, hence my lack of participation and I just want this to work!

Thank you for any more help you can give. I have SSHd into the synology and Cd /usr/bin ls and not seen Java listed did the same with CD /bin again no java?
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Synology NAS - Java Update issue

Post by rednoah »

You will need Java 8 as per FAQ.
:idea: Please read the FAQ and How to Request Help.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: Synology NAS - Java Update issue

Post by BelugaManta »

What an idiot I had scrolled down too far and missed the Java 8 version! Took 15 minutes to find the file but it is now installed and working. I have SSHd into the DS and ran filebot -rename volume1/video/downloads --test --log info
But am getting this error "No media files: [/volume1/homes/admin/volume1/video/downloads]"
The media files are in volume1/video/downloads I know it is a path issue (I have been reading you other posts :) ) so changed command to filebot -rename video/downloads --action test --log info and got response "No media files: [/volume1/homes/admin/video/downloads]" I am getting closer but not sure how to specify the video so it checks volume1/video/downloads folder and doesn't look in the homes folder at all.

Paul.
magick
Posts: 2
Joined: 16 Jan 2015, 11:41

Re: Synology NAS - Java Update issue

Post by magick »

volume1/... is relative path starting from your current directory. As your are in /volume1/homes/admin, that explains the weird path /volume1/homes/admin/volume1/video/downloads.
What you want is /volume1/video/downloads
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: Synology NAS - Java Update issue

Post by BelugaManta »

Thanks for the quick reply Magick.

I am still not able to get the script to run.

I ahve tried multiple times as can be seen below :-
DiskStation> filebot -script fn:amc --output "/Volume1/Video/TV show" --log-file amc.l
og --action test -non-strict "/Volume1/Video/Downloads" --def excludeList=amc.txt
Locking /volume1/@appstore/filebot/data/logs/amc.log
Parameter: excludeList = amc.txt
Argument: /Volume1/Video/Downloads
File not found: /Volume1/Video/Downloads
Failure (°_°)
DiskStation> filebot -script fn:amc --output "/Volume1/video/TV show" --log-file amc.l
og --action test -non-strict "/Volume1/video/Downloads" --def excludeList=amc.txt
Locking /volume1/@appstore/filebot/data/logs/amc.log
Parameter: excludeList = amc.txt
Argument: /Volume1/video/Downloads
File not found: /Volume1/video/Downloads
Failure (°_°)
DiskStation> filebot -script fn:amc --output /Volume1/video/TV show --log-file amc.log
--action test -non-strict /Volume1/video/Downloads --def excludeList=amc.txt
Locking /volume1/@appstore/filebot/data/logs/amc.log
Parameter: excludeList = amc.txt
Argument: /volume1/homes/admin/show
Argument: /Volume1/video/Downloads
File not found: /volume1/homes/admin/show
Failure (°_°)
DiskStation> filebot -script fn:amc --output "/volume1/video/tv show" --log-file amc.l
og --action test -non-strict "/volume1/video/downloads" --def
Locking /volume1/@appstore/filebot/data/logs/amc.log
Argument: /volume1/video/downloads
File not found: /volume1/video/downloads
Failure (°_°)
DiskStation> filebot -script fn:amc --output "/volume1/video/tv show" --log-file amc.log --action test -non-strict "/volume1/video/downloads" --def
excludelist=amc.txt
Locking /volume1/@appstore/filebot/data/logs/amc.log
Parameter: excludelist = amc.txt
Argument: /volume1/video/downloads
File not found: /volume1/video/downloads
Failure (°_°)
DiskStation> filebot -script fn:amc --output "/volume1/video/tv show" --log-file amc.log --action test -non-strict "/volume1/video/downloads"
Locking /volume1/@appstore/filebot/data/logs/amc.log
Argument: /volume1/video/downloads
File not found: /volume1/video/downloads
Failure (°_°)


I have tried as many ways as I can think of to change the filepath to something it can read but not being well versed in Linux I can't work out the problem. Any help would be greatly appreciated.

Thank you.
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Synology NAS - Java Update issue

Post by rednoah »

Do you even know the path of the folder you want to process? You're apparently randomly entering paths.

Do you know what cd is? Do you know what ls is? If you want to use the filebot cmdline tool you will need some very basic cmdline skills first. ;)
:idea: Please read the FAQ and How to Request Help.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: Synology NAS - Java Update issue

Post by BelugaManta »

I am not randomly entering paths, the path is the same throughout with minor tweaks to see what is running or if I get a different result. The path is Diskstation/volume1/video/downloads.

I log in as admin and in the previous post it was giving me the result of volume1/admin/homes/user/volume1/video/download with some HELP I was told to use "/volume1/video/download" but that is still giving me the error. I have checked out the cmdline basics page and do know both cd and ls but as I can't seem to find a decent way to use them using Google it is like having instructions to assemble a chair but I only have some parts of the chair but don't know which bits i am missing or more accurately how to use the bits I have to make a chair. This may be the problem as I have enough information to be dangerous but not enough to accomplish the task at hand. I am aware of this which is why I am asking for help even if it is a clearer explanation. I have SSHd in to the previous server I had and learnt how to change the json file for automatic Transmission downloadin, as well as bootstrappiung it and isntalling the headless transmission and RPC for it. So i have some knowledge but this is a step beyond what I taught myself previously and I can't see what it is I am doing wrong. If someone can point me to the correct page to check for how to list the files or paths thereof on my DS then that would be good but I tried LS on the usr and usr/bin folder as per the comdline instructions linked to by Rednoah, when I was having the original Java issue but couldn't find the file I was looking for. I have played with -cd admin/volume1/video/download but got same response and so here I am. Looking for a point (or shove) in the right direction.

Thank you for any and help given.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: Synology NAS - Java Update issue

Post by BelugaManta »

So I have now been playing around and I entered these 2 file paths and got the first errorskStation> filebot -script fn:amc --output "video/TV show" --log-file amc.log --acti
on test -non-strict "video/Downloads" --def excludeList=amc.txt
Locking /volume1/@appstore/filebot/data/logs/amc.log
Parameter: excludeList = amc.txt
Argument: /volume1/video/Downloads
FileNotFoundException: /volume1/video/TV show/amc.txt (No such file or directory)
java.io.FileNotFoundException: /volume1/video/TV show/amc.txt (No such file or directory)
at Script1.run(Script1.groovy:208)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:112)
at net.filebot.Main.main(Main.java:170)
Failure (°_°)

So on the next one I removed the exclude list amc.txt so it looks like below.
filebot -script fn:amc --output "video/TV show" --log-file amc.log --action test -non-strict "video/Downloads"

This time I got a list of the files with Input at beginning of the line for all the MP4 and mkv files and I had exclude at the beginning of the line for all the NFO and jpg files. See below for 2 examples, 1 of each.

Input: /volume1/video/Downloads/Lost.Girl.S05E07.HDTV.x264-2HD.mp4

Exclude: /volume1/video/Downloads/CSI.S15E11.HDTV.x264-LOL[ettv]/csi.1511.hdtv-lol.nfo
Is this what I would expect to see? I only got this after manually cd /Volume1 in my SSH session.
I logged back in and used the same script but didn't manually cd to volume1 and got the error of not finding file. how can I add the CD command to the script. I have tried a few ways but no joy.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: Synology NAS - Java Update issue

Post by BelugaManta »

filebot -script fn:amc --output "video" --log-file amc.log --action test -non-strict "video/Downloads" --def "seriesFormat=TV Show/{n}/Season {s}/{s.pad(2)}x{es*.pad(2).join('-E')} - {t}" --def excludeList=amc-input.txt
Finally got what I wanted. Thank you for your help and prodding.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: Synology NAS - Java Update issue

Post by BelugaManta »

Still no response, I still can't get it to run. Please somebody, can't you help me?
Paul.
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Synology NAS - Java Update issue

Post by rednoah »

NO

Code: Select all

DiskStation> ./Script/amc.groovy
YES

Code: Select all

filebot -script fn:amc --output "/path/to/output" --log-file amc.log --action copy -non-strict "/path/to/input" --def excludeList=amc.txt
@see viewtopic.php?f=4&t=215#p1561
:idea: Please read the FAQ and How to Request Help.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: Synology NAS - Java Update issue

Post by BelugaManta »

filebot -script fn:amc -non-strict --log-file amc.log --output "/volume1/video" --action copy "Downloads" --def "seriesFormat=TV Show/{n}/{episode.special ? 'Special' : 'Season '+s}/{episode.special ? 'S00E'+special.pad(2) : sxe.pad(2)} - {t}" "movieFormat=Movies/{n} {y}/{n} {y}" "musicFormat=music/{n}/{n} {y}" --def excludeList=amc-input.txt

This is what is working in SSH, Cant work out what is not happening when I run the script and it not working. The above I type into SSH and works perfectly every time, cant work out how to put it in the script. I place this in the user script section but it wont run. I am going away and want to let this run while I am away but don't want to come back to 400 episodes to be sorted on my return.

Thank you for your continued support.
Post Reply