Page 1 of 1

filenode: java command not found

Posted: 24 Mar 2019, 18:32
by chiarac
Hi all,
I've been happily using filebot from command line for some years, first on linux than on a Synology NAS through ssh
Now I thought I'd try automation through Filenode
It starts fine, but then anything I try (configuring opensubtitles, uploading licence) gives me this error:

Code: Select all

/usr/local/bin/filebot: line 67: java: command not found
I do have java (else it wouldn't run on command line either, right?)
it's Java 8 version 1.8.0_121-0043

maybe it has something to do with paths being different from shell?

thanks a lot!

Re: filenode: java command not found

Posted: 24 Mar 2019, 18:40
by rednoah
Did you install both FileBot and FileBot Node? Did you install the Java package that is included in the FileBot package repository?
viewtopic.php?f=13&t=1802


:!: The Java 8 package provided by Synology doesn't work well and it somewhat outdated.

Re: filenode: java command not found

Posted: 24 Mar 2019, 19:02
by chiarac
Hi, thank you and yes.
I also tried following the steps here viewtopic.php?f=13&t=3599 and I got this:

Code: Select all

admin@mynas:~$ sudo ln -s /var/packages/java8/target/ejdk1.8.0_121/linux_armv6_vfp_hflt/bin/java /usr/local/bin/java
ln: failed to create symbolic link ‘/usr/local/bin/java’: File exists

Re: filenode: java command not found

Posted: 24 Mar 2019, 19:48
by rednoah
1.
What does the Java installer log say?

2.
What does uname -a say?

3.
Where does usr local bin java link to?

Re: filenode: java command not found

Posted: 24 Mar 2019, 20:39
by chiarac
1 & 3: how do I see those?
2:
Linux mynas 3.2.40 #23824 SMP Fri Sep 7 12:48:46 CST 2018 armv7l GNU/Linux synology_armada375_ds215j

Just noticed and I suppose it might be relevant: the output of which java and echo ${JAVA_HOME} are different:

Code: Select all

admin@mynas:~$ which java
/var/packages/Java8/target/j2sdk-image/bin/java

admin@mynas:~$ echo ${JAVA_HOME}
/var/packages/java8/target/ejdk1.8.0_121/linux_armv6_vfp_hflt/jre



Re: filenode: java command not found

Posted: 25 Mar 2019, 04:43
by rednoah
1.
You can find files with the find command. You can find the log file with this command, then you can use the cat command to display the log file:

Code: Select all

find / -type f -iname install-jdk.log
2.
uname shows that you have armv7l CPU so my Java 8 installer should work.

3.
This log shows that you're using the Synology Java package. As you can see by which java, the executable is not in a standard location, such as /usr/local/bin, and that's why it only works for your login shell. Please uninstall the Synology Java package, and only install my Java package, to avoid confusing yourself.

Re: filenode: java command not found

Posted: 01 Apr 2019, 19:49
by chiarac
done as you said, works perfectly, thank you!!