Page 1 of 1

java not found on Synology Scheduled Task

Posted: 02 Dec 2015, 07:56
by sylvain
Hi
I have a Synology DS1813+ with Filebot 4.6.1 and MediaInfo 0.7.73-32 (installed through Package Center),

I launch this script in CLI as root

filebot -script fn:suball /volume2/Media --lang en -non-strict&

it works

but when I launch it as a scheduled task I got this error in the log
as admin
/usr/local/bin/filebot: cd: line 21: can't cd to /root
/usr/local/bin/filebot: line 53: java: not found
as root
/usr/local/bin/filebot: line 53: java: not found

What did I forget thanks

Re: java not found on Synology Scheduled Task

Posted: 02 Dec 2015, 08:44
by rednoah
1.
Use https://github.com/rednoah/java-installer to install java correctly.

2.
/root shouldn't be the default working dir for the admin user. Make sure to enable user homes in Synology DSM.