Page 1 of 1

FileBot Node Java issue

Posted: 12 Jun 2015, 07:11
by ziemowit
Hi
I have updated to filebot 4.6 and installed FileBot Node on a Synology NAS. Thats what i got at first through GUI:

Code: Select all

filebot -script 'fn:amc' /volume1/pyload/downloads/ --output /volume1/video/ --action test -non-strict --lang de --def 'music=y' 'unsorted=y' 'skipExtract=y' 'deleteAfterExtract=y' 'seriesFormat=Serien/{n}/{s.pad(2)}x{e.pad(2)} {t}' 'movieFormat=Filme/{n} ({y})' 'excludeList=.excludes' --log info

------------------------------------------

/usr/local/bin/filebot: line 41: java: not found
------------------------------------------

[Process error]
I found a topic in the forum regarding line 41 issue. I logged in as root through ssh and started playing around with the java installation. That changed the output to

Code: Select all

/usr/local/bin/filebot: line 41: java: Permission denied
I assume, that I am putting the java installation in the wrong place. I tried putting ejdk-8u33-fcs-linux-i586.tar.gz in the shared folder "/volume1/software/.../java" and later "/volume1/@appstore/java8"

then

Code: Select all

ln -s -f /volume1/@appstore/java8 /usr/local/bin/java
What am I doing wrong?

Re: FileBot Node Java issue

Posted: 12 Jun 2015, 09:30
by rednoah
"java" is the "java" executable, not some folder. It's always called "java" and you will always find it in the "bin" folder.

Re: FileBot Node Java issue

Posted: 12 Jun 2015, 10:20
by ziemowit
I don't really understand. Which bin folder? The one in the root path doesn't have any java. Can you give a bit more detailed advice please?

I found a java file in /volume1/@appstore/java8/ejdk1.8.0_33/linux_i586/jre/bin/java. Created the link, but no change. Still the same issue.

EDIT: OK, seems like I found the issue. The old link has not been removed by the ln-command. After manual removal I could create the correct link.

When i want to schedule I get

Code: Select all

{ "errinfo" : { "key" : "error_error_system", "line" : 1406, "sec" : "error" }, "success" : false }
What's that?

Re: FileBot Node Java issue

Posted: 12 Jun 2015, 10:49
by rednoah
Restart the FileBot Node Service via Package Manager.

Re: FileBot Node Java issue

Posted: 12 Jun 2015, 10:57
by ziemowit
After restart

Code: Select all

{"data":{"id":5},"success":true}
EDIT:
Oh, now I understand! Thanks for the support

Re: FileBot Node Java issue

Posted: 15 Jun 2015, 06:28
by c4uran
Please, anyone can post instruction for typical user How to install Filebot and java after update

Re: FileBot Node Java issue

Posted: 15 Jun 2015, 15:20
by ziemowit
Don't really know if I can help. Can you describe a bit more detailed? I am a bit familiar with the process on a Synology NAS

Re: FileBot Node Java issue

Posted: 17 Jun 2015, 02:34
by Brailyn
I'm finding remnants of Java sort of everywhere on my Synology. Can someone clear up what symlinks should appear when Java is installed correctly?

Before you go to a bunch of work, you should know that when I run 'java -version' I get:

Code: Select all

java version "1.8.0_33"
Java(TM) SE Runtime Environment (build 1.8.0_33-b05)
Java HotSpot(TM) Client VM (build 25.33-b05, mixed mode)
and 'filebot -version':

Code: Select all

FileBot 4.6 (r3052) / Java(TM) SE Runtime Environment 1.8.0_33 (headless)
I am kind of a noob with CLI, so please be explicit if you are going to give me instructions.

My script is named 'amc.groovy' and is:

Code: Select all

#!/bin/sh

/usr/syno/bin/filebot -script /volume1/video/Scripts/amc.groovy --log-file /volume1/video/Scripts/amc-log.txt --output "/volume1/video/" --action move --conflict fail -non-strict --def artwork=n --def clean=y --def music=y -r --def excludeList=/volume1/video/Scripts/amc-exclude.txt "/volume1/video/Downloads/"
when I run it as admin (not root) 'chmod +x' I get:

Code: Select all

 chmod: amc.groovy: Operation not permitted 
Filebot Node works perfect.

Ideas?

Re: FileBot Node Java issue

Posted: 18 Jun 2015, 06:08
by c4uran
ziemowit wrote:Don't really know if I can help. Can you describe a bit more detailed? I am a bit familiar with the process on a Synology NAS
I installed Filebot from default package and Java manager

Over Java manager i can install only java 7 but anyway when i tryed to filebot -version i got:

line 41: java: not found

Re: FileBot Node Java issue

Posted: 18 Jun 2015, 07:14
by rednoah
As it stands, Synology Java Manager is completely useless. You'll need to download the JRE and symlink java to bin yourself.

Re: FileBot Node Java issue

Posted: 18 Jun 2015, 09:40
by rednoah
This video tutorial should help on Install Java on Embedded Linux => https://www.youtube.com/watch?v=8N6hYNj_QzY

Re: FileBot Node Java issue

Posted: 18 Jun 2015, 13:06
by c4uran
its just insane!
i see its not so hard but i have too much asks like what if java will get newer version or what security troubles i can get if do it

may be if wait some time filebot team will fix this issue?

Re: FileBot Node Java issue

Posted: 18 Jun 2015, 15:21
by rednoah
1.
You're literally just copying files. Files on a harddisk don't cause security troubles. I don't understand your point.

2.
I am the FileBot team. I don't plan on making a better Java Manager for Synology, that's the job of Synology. But those big companies take for ever to fix these things... maybe in a year or two.

Re: FileBot Node Java issue

Posted: 18 Jun 2015, 22:33
by Brailyn
The video seems very straight forward. I've completely blown away all reminant of java, and I am starting over with your video.

Now that I'm trying to do this command by command, I've run into a few problems.

Firstly, my device has the same CPU as the one in the video. This seems good.

I couldn't run "sudo" as admin, so logging in as root seems to help that.

I couldn't extract the java file. For some reason it was only 7KB, so I grabbed my download in windows explorer, extracted it with 7zip and placed it in the dir using WinSCP.

From

Code: Select all

/volume1/local/jdk1.8.0_33/bin
, I can't run a "./java -version" and it gives me

Code: Select all

-ash: ./java: Permission denied
I am assuming this step is essential before creating any symlinks.

Thanks for all of your help.

Re: FileBot Node Java issue

Posted: 19 Jun 2015, 07:57
by rednoah
1.
Copy the link from the in-progress download. If you copy the link directly from the download page you'll be downloading a html page. Alternatively you can copy the downloaded tar archive to the NAS shared folders and then extract from there.

2.
If you extract on Windows you will lose all the unix permissions. Hence broken permissions. You must extract the .tar on the NAS.

Re: FileBot Node Java issue

Posted: 20 Jun 2015, 00:19
by Brailyn
Looks like I got it all figured out. The Curl command didn't rename the file to java.tar.gz for some odd reason.

Good to know about the windows/linux permission thing. This saves me a lot of headaches.

Re: FileBot Node Java issue

Posted: 21 Jun 2015, 20:32
by Brailyn
rednoah wrote:This video tutorial should help on Install Java on Embedded Linux => https://www.youtube.com/watch?v=8N6hYNj_QzY
Can the 'local' folder be placed in a directory above volume1? I just noticed that the permission editor in the GUI shows the local folder now. I'd like to change this if possible.