Filebot works from SSH but not task scheduler Synology NAS

Any questions? Need some help?
Post Reply
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Filebot works from SSH but not task scheduler Synology NAS

Post by Achandab »

For testing purposes just running "filebot -script fn:amc" in SSH works fine, can see the java process running in process manager
Set a task to run in task scheduler and doesn't work. No java process is launching.

I have entred the full path to java in the filebot.sh file just to see if that makes a difference but it did not. This was working fine prior to updating to the latest version of Java 8 and Filebot 4.5.

Any suggestions?
User avatar
rednoah
The Source
Posts: 23942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot works from SSH but not task scheduler Synology N

Post by rednoah »

The notes on this page should help:
http://www.filebot.net/forums/viewtopic.php?f=3&t=1802

First step is to redirect output (including error output!!!) to see what's going on.

Most likely the error output will say "java: command not found", as explained here:
Running commands from the login shell is not the same as using Synology DSM Task Scheduler or cron because they'll not initialise with ~/.profile so PATH may be different.
:idea: Please read the FAQ and How to Request Help.
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Filebot works from SSH but not task scheduler Synology N

Post by Achandab »

thanks RN

Checked volume1 and the path doesn't seem to exist.

have attached image
User avatar
rednoah
The Source
Posts: 23942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot works from SSH but not task scheduler Synology N

Post by rednoah »

The PATH is a variable, not a file:
http://en.wikipedia.org/wiki/PATH_(variable)

Also .profile / .bash_rc / etc are hidden files "." so you wouldn't see them anyway on this screenshot.



Besides:
First step is to redirect output (including error output!!!) to see what's going on.
So what's the output?
:idea: Please read the FAQ and How to Request Help.
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Filebot works from SSH but not task scheduler Synology N

Post by Achandab »

I'm a linux dummy. Can you advise how to redirect output?
User avatar
rednoah
The Source
Posts: 23942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot works from SSH but not task scheduler Synology N

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Filebot works from SSH but not task scheduler Synology N

Post by Achandab »

yes output is as follows "/usr/syno/bin/filebot: line 36: java: not found"

you are right, but i have put the full path to java in the filbot.sh file. is there something else?
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Filebot works from SSH but not task scheduler Synology N

Post by Achandab »

nevermind!!!!

issue was i was pointing to the old version of filebot.sh not the new one that is installed in the appstore.

thanks RN!
Post Reply