filenode: java command not found

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
chiarac
Posts: 7
Joined: 20 May 2015, 18:13

filenode: java command not found

Post by chiarac » 24 Mar 2019, 18:32

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!

User avatar
rednoah
The Source
Posts: 16430
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: filenode: java command not found

Post by rednoah » 24 Mar 2019, 18:40

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.
:idea: Please read the FAQ and How to Request Help.

chiarac
Posts: 7
Joined: 20 May 2015, 18:13

Re: filenode: java command not found

Post by chiarac » 24 Mar 2019, 19:02

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

[email protected]:~$ 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

User avatar
rednoah
The Source
Posts: 16430
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: filenode: java command not found

Post by rednoah » 24 Mar 2019, 19:48

1.
What does the Java installer log say?

2.
What does uname -a say?

3.
Where does usr local bin java link to?
:idea: Please read the FAQ and How to Request Help.

chiarac
Posts: 7
Joined: 20 May 2015, 18:13

Re: filenode: java command not found

Post by chiarac » 24 Mar 2019, 20:39

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

[email protected]:~$ which java
/var/packages/Java8/target/j2sdk-image/bin/java

[email protected]:~$ echo ${JAVA_HOME}
/var/packages/java8/target/ejdk1.8.0_121/linux_armv6_vfp_hflt/jre



User avatar
rednoah
The Source
Posts: 16430
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: filenode: java command not found

Post by rednoah » 25 Mar 2019, 04:43

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.
:idea: Please read the FAQ and How to Request Help.

chiarac
Posts: 7
Joined: 20 May 2015, 18:13

Re: filenode: java command not found

Post by chiarac » 01 Apr 2019, 19:49

done as you said, works perfectly, thank you!!

Post Reply