I want to run this script all the time. But i don't get it managed. it runs from the shell via "sh housekeeping.sh" But if i add it as as task in the Synology Diskstation it does not run. Also it does not run if i add it to crontab.
Has anyone an idea?
Failed to initialize cache: java.nio.file.AccessDeniedException: /volume1/@appstore/filebot/data/cache/0/.lock
By running the script as root you've probably initialized certain files with root permissions, and the admin user now doesn't have access breaking everything. Delete all folder in /data/* to fix the problem and never ever run scripts as root, but admin only.
2.
Note that these two scripts here are console-interactive so you must not redirect I/O
Probably because it's executed by a non-interactive shell. I guess if you redirect output it'll receive it's shutdown signal immediately. That being said, you're not supposed to run shell interactive scripts via DSM Scheduler anyway.
3.
Whatever it is you're trying to do, these scripts here are probably not a good solution, and the amc script (hourly with --def excludeList) is always the best option for any sort of automation task.
Use a proper scheduled task and don't keep filebot running indefinitely.
One Problem is pending. It is just working if I start the script in Synology Task Scheduler as "root". If I start as "admin" or another administrative user i get an error. I already deleted the files u said.
So what's the owner / permissions of the files in /volume1/@appstore/filebot/data then? It's clearly a permission issue, exactly as I've explained above.
filebot must not be run as root and it is recommended that you always run filebot as admin
By running filebot as root you've messed up all application data / cache / etc permissions which have been created with root permissions since the app was running as root. Uninstall & reinstall filebot and never ever run as root.