java.nio.file.AccessDeniedException

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
Nebb
Posts: 3
Joined: 01 Jan 2017, 19:51

java.nio.file.AccessDeniedException

Post by Nebb »

Hi. I am really struggling to get a my filebot script to run without errors. I am running with the following versions;

DSM 6.0.2-8451 Update 7
Filebot 4.7.5
Oracle Java SE - 1.800_111 by rednoah

The command I am trying to run is;

Code: Select all

filebot -rename /volume1/RSync/TV --format "/volume1/Media/TV Shows/{n}/{'Season '+s}/{n}.{S00E00}.{t}" --db "thetvdb" -non-strict --action "move" --log-file /volume1/Storage/Logs/Filebot.log
This is the output error I am getting;

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [Futurama]
Fetching episode data for [Futurama]
[MOVE] Rename [/volume1/RSync/TV/Futurama.S07E01.The Bots and the Bees.avi] to [/volume1/Media/TV/Futurama/Season 7/Futurama.S07E01.The Bots and the Bees.avi]
[MOVE] Failed to rename [/volume1/RSync/TV/Futurama.S07E01.The Bots and the Bees.avi]
Processed 0 files
/volume1/RSync/TV/Futurama.S07E01.The Bots and the Bees.avi -> /volume1/Media/TV/Futurama/Season 7/Futurama.S07E01.The Bots and the Bees.avi
java.nio.file.AccessDeniedException: /volume1/RSync/TV/Futurama.S07E01.The Bots and the Bees.avi -> /volume1/Media/TV/Futurama/Season 7/Futurama.S07E01.The Bots and the Bees.avi
	at net.filebot.util.FileUtilities.moveRename(FileUtilities.java:85)
	at net.filebot.StandardRenameAction$1.rename(StandardRenameAction.java:19)
	at net.filebot.cli.CmdlineOperations.renameAll(CmdlineOperations.java:621)
	at net.filebot.cli.CmdlineOperations.renameSeries(CmdlineOperations.java:255)
	at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:110)
	at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:89)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:25)
	at net.filebot.Main.main(Main.java:122)

Failure (°_°)
Any help would be great. Thank you!
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot CLI Struggles

Post by rednoah »

Permission issue:

Code: Select all

java.nio.file.AccessDeniedException
Have you tried fixing the permissions?
:idea: Please read the FAQ and How to Request Help.
Nebb
Posts: 3
Joined: 01 Jan 2017, 19:51

Re: java.nio.file.AccessDeniedException

Post by Nebb »

It must be a permissions problem somewhere. As the command works when run with sudo. But the user account I am using is the owner and has full permissions over the destination folder.
Nebb
Posts: 3
Joined: 01 Jan 2017, 19:51

Re: java.nio.file.AccessDeniedException

Post by Nebb »

OMG! Permissions on the source folder!! Thanks for letting me bounce my thoughts off you!
Post Reply