Page 1 of 1

java.nio.file.AccessDeniedException: /.filebot

Posted: 30 Aug 2018, 09:33
by aibynn
Thought I had this fixed, but...

I have a script that runs perfectly well from the terminal.

When I run it from inside uTorrent, I get the following error:

Code: Select all

Error during startup
java.lang.ExceptionInInitializerError
	at net.filebot.Main.main(Main.java:110)
Caused by: net.sf.ehcache.CacheException: java.nio.file.AccessDeniedException: /.filebot
	at net.filebot.CacheManager.<init>(CacheManager.java:36)
	at net.filebot.CacheManager.<clinit>(CacheManager.java:22)
	... 1 more
Caused by: java.nio.file.AccessDeniedException: /.filebot
	at net.filebot.util.FileUtilities.createFolders(FileUtilities.java:184)
	at net.filebot.CacheManager.acquireDiskStore(CacheManager.java:73)
	at net.filebot.CacheManager.<init>(CacheManager.java:33)
	... 2 more
I'm assuming it's some kind of permission error, but as far as I can tell, everything is running from the same account.

Any and all advice welcome.

Cheers.

Re: Filebot won't run from inside uTorrent

Posted: 30 Aug 2018, 09:34
by rednoah
/.filebot is not a valid folder anyway, so the error message is effective telling us that something is wrong with the environment, because FileBot shouldn't create folders in / in the first place anyway, even if it had permission to do so.

Like any application, filebot uses ~/.filebot for it's application data:

Code: Select all

$HOME/.filebot
You need to make sure that the $HOME environment variable is set correctly before calling filebot. Usually not an issue for your Desktop user. Might be an issue for limited service users though, where important environment variables aren't set for some reason.

Re: java.nio.file.AccessDeniedException: /.filebot

Posted: 30 Aug 2018, 10:14
by aibynn
Yup, setting the $HOME directory worked fine.

You must be correct that it wasn't set for uTorrent, which I find strange since it's running under the same account, but it's working, so...

Cheers!