ERROR FileBot: [Errno 13] Permission denied

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
feuerwasser
Posts: 13
Joined: 04 Mar 2015, 18:38

ERROR FileBot: [Errno 13] Permission denied

Post by feuerwasser »

Can someone help me please?
After every successful unrar Pyload .log is like:
DEBUG FileBot-Hook: MKV-Checkup (archive_extracted)
DEBUG Hier sind keine Archive
ERROR FileBot: [Errno 13] Permission denied
DEBUG All downloads finished
How can it be?
Config:
Synology 1813+ with enkidu package but user is root in start-stop-status start script.
The downloadpath as well as the filebot.py from GutzPilz also the filebot.sh with depending paths are 777
paths in the hook plugin are set correctly.
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ERROR FileBot: [Errno 13] Permission denied

Post by rednoah »

So what's the output of the filebot call?
:idea: Please read the FAQ and How to Request Help.
User avatar
feuerwasser
Posts: 13
Joined: 04 Mar 2015, 18:38

Re: ERROR FileBot: [Errno 13] Permission denied

Post by feuerwasser »

Hi, what do you mean by "output of call"?
FileBot is triggered by the filebot.py plugin from GutzPilz. I dont know where i can give pyload and filebot permissions for the pyload path and download path. Or is it something else?
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ERROR FileBot: [Errno 13] Permission denied

Post by rednoah »

I guess filebot isn't called then. Ask GutzPilz how to debug the python code that fails to start filebot.

The answer is most likely some combination of symlink to bin, chmod +x, and maybe chown. Google will help.
:idea: Please read the FAQ and How to Request Help.
User avatar
feuerwasser
Posts: 13
Joined: 04 Mar 2015, 18:38

Re: ERROR FileBot: [Errno 13] Permission denied

Post by feuerwasser »

Thanks! Now i'm 1 step closer. the symlink /usr/bin/filebot has root:root and 777, but the binary file /volume1/@appstore/filebot/FileBot.jar has root:root 622. After i chmod, the file is corrupted.

Code: Select all

Diskstation:/# filebot -version
/usr/syno/bin/filebot: line 1: PK: not found
/usr/syno/bin/filebot: line 2:®7F: not found
/usr/syno/bin/filebot: line 3: EDIa~H1@Ó#
                                         ,: not found
/usr/syno/bin/filebot: line 3­7FÀô±þMETA-INF/MANIFEST.MFUM
                                                          0Çï}ë°áLü©ÑÍ]ãIq°6+èÛFu8z~A7*kr: not found
/usr/syno/bin/filebot: /usr/syno/bin/filebot: line 3: line 3: N: not foundcan't open : no such file

/usr/syno/bin/filebot: line 4:ª7FMETA-INF/services/PK: not found
/usr/syno/bin/filebot: line 5:¥7Fnet/PK: not found
/usr/syno/bin/filebot: line 6:«7F
net/filebot/PK: not found
/usr/syno/bin/filebot: line 7:§7Fnet/filebot/archive/PK: not found
/usr/syno/bin/filebot: line 8:«7Fnet/filebot/cli/PK: not found
/usr/syno/bin/filebot: line 9:ª7Fnet/filebot/format/PK: not found
/usr/syno/bin/filebot: line 10:§7Fnet/filebot/gio/PK: not found
/usr/syno/bin/filebot: line 11:ª7Fnet/filebot/hash/PK: not found
/usr/syno/bin/filebot: line 12:¨7Fnet/filebot/mac/PK: not found
/usr/syno/bin/filebot: line 13:¨7Fnet/filebot/mac/xattr/PK: not found
/usr/syno/bin/filebot: line 14:«7Fnet/filebot/media/PK: not found
/usr/syno/bin/filebot: line 15:¨7Fnet/filebot/mediainfo/PK: not found
/usr/syno/bin/filebot: line 16:«7Fnet/filebot/resources/PK: not found
/usr/syno/bin/filebot: line 17:ª7Fnet/filebot/resources/flags/PK: not found
/usr/syno/bin/filebot: line 18:ª7Fnet/filebot/similarity/PK: not found
/usr/syno/bin/filebot: line 19:ª7Fnet/filebot/subtitle/PK: not found
/usr/syno/bin/filebot: line 20:¨7Fnet/filebot/torrent/PK: not found
/usr/syno/bin/filebot: line 21:©7Fnet/filebot/ui/PK: not found
/usr/syno/bin/filebot: line 22:¨7Fnet/filebot/ui/analyze/PK: not found
/usr/syno/bin/filebot: line 23:¨7Fet/filebot/ui/episodelist/PK: not found
/usr/syno/bin/filebot: line 24:¨7Fnet/filebot/ui/list/PK: not found
/usr/syno/bin/filebot: line 25:«7Fnet/filebot/ui/rename/PK: not found
/usr/syno/bin/filebot: line 26:©7Fnet/filebot/ui/sfv/PK: not found
/usr/syno/bin/filebot: line 27:ª7Fnet/filebot/ui/subtitle/PK: not found
/usr/syno/bin/filebot: line 28:ª7Fnet/filebot/ui/transfer/PK: not found
/usr/syno/bin/filebot: line 29:ª7Fnet/filebot/util/PK: not found
/usr/syno/bin/filebot: line 30:ª7Fnet/filebot/util/prefs/PK: not found
/usr/syno/bin/filebot: line 31:ª7Fnet/filebot/util/ui/PK: not found
/usr/syno/bin/filebot: line 32:ª7F!net/filebot/util/ui/notification/PK: not found
/usr/syno/bin/filebot: line 33:ª7Fnet/filebot/vfs/PK: not found
/usr/syno/bin/filebot: line 34:ª7Fnet/filebot/web/PK: not found
/usr/syno/bin/filebot: line 35ª7F: not found
/usr/syno/bin/filebot: /usr/syno/bin/filebot: line 35:
                                                       õc: not foundline 35: ØCûJ-9q»R?5ªã»wº¬ã*x¦8±à­ÞÙPyq.k: not found

/usr/syno/bin/filebot: line 36: syntax error: unexpected ")"
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ERROR FileBot: [Errno 13] Permission denied

Post by rednoah »

FileBot.jar is a jar file. Jar files are zip files, hence not executable. But since you made it executable your shell is now executing a zip file as if it was a shell script...

You will find the startup script somewhere in /volume1/@appstore/filebot/bin and it's gonna be an executable shell script.
:idea: Please read the FAQ and How to Request Help.
User avatar
feuerwasser
Posts: 13
Joined: 04 Mar 2015, 18:38

Re: ERROR FileBot: [Errno 13] Permission denied

Post by feuerwasser »

Old but gold...
For the sake of completeness i solved the problem a view months ago, this is just for other users with the same problem.
The problem was not the shell script, i could call in a SSH-Session filebot manually but not via pyload and DSM Taskplanner (in a synology based system), so the difference is a PATH variable.
The only one which comes into question is the java path. The running shell knows where to find java, but pyload and DSM try's to find java in /usr/syno/bin/filebot
That is not the path for the oracle java package installed in /volume1/@appstore/java
A symlink (as you said, but my linux knowledge wasn't good enough) with chmod +x solved the problem, so pyload and DSM now finds java end executes filebot well.
Post Reply