java.nio.file.AccessDeniedException: /SHOWNAME

All your suggestions, requests and ideas for future development
Post Reply
quickshot12
Posts: 2
Joined: 18 May 2016, 13:02

java.nio.file.AccessDeniedException: /SHOWNAME

Post by quickshot12 »

After reinstalling filebot node on DSM 6, I'm having trouble with my TV shows being moved into the Unsorted folder.

Here's the output:

Code: Select all

filebot -script 'fn:amc' /volume1/downloads/complete/tv --output /volume1/video/ --action move -non-strict --conflict index --lang en --def 'ut_label=tv' 'music=y' 'unsorted=y' 'clean=y' 'deleteAfterExtract=y' 'plex=10.0.0.50:qi8MiWKqKxkE8vCSjstX' 'pushover=xxxx' 'seriesFormat=/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}' 'excludeList=.excludes' --log info --log-file '/volume1/@appstore/filebot-node/data/filebot.log'

------------------------------------------

[MOVE] Rename [/volume1/downloads/complete/tv/FOLDER/FILE.mkv] to [/SHOWNAME/Season 03/NAME - S03E03 - EPNAME.mkv]
[MOVE] Failed to rename [/volume1/downloads/complete/tv/FOLDER/FILE.mkv]
/SHOWNAME
java.nio.file.AccessDeniedException: /SHOWNAME
	at net.filebot.util.FileUtilities.resolveDestination(FileUtilities.java:110)
	at net.filebot.util.FileUtilities.moveRename(FileUtilities.java:60)
	at net.filebot.StandardRenameAction$1.rename(StandardRenameAction.java:17)
	at net.filebot.cli.CmdlineOperations.renameAll(CmdlineOperations.java:625)
	at net.filebot.cli.CmdlineOperations.renameSeries(CmdlineOperations.java:255)
	at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:110)
	at net.filebot.cli.ScriptShellBaseClass.rename(ScriptShellBaseClass.java:336)
	at Script1$_run_closure72.doCall(Script1.groovy:371)
	at Script1.run(Script1.groovy:356)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
	at net.filebot.Main.main(Main.java:120)
Processing 1 unsorted files
[MOVE] Rename [/volume1/downloads/complete/tv/FOLDER/FILE.mkv] to [/SHOWNAME/Season 03/NAME - S03E03 - EPNAME.mkv]
[MOVE] Failed to rename [/volume1/downloads/complete/tv/FOLDER/FILE.mkv]
Notify Plex: 10.0.0.50
Sending Pushover notification
Clean clutter files and empty folders
Delete /volume1/downloads/complete/tv/FOLDERNAME
------------------------------------------

[Process completed]

I've tried:

1. Deleting everything in /volume1/@appstore/filebot/data (/volume1/@appstore/filebot/data$ rm -rf *)

2. adding ports 5452 and 5453 to the Synology firewall

Using
- DSM 6.0-7321 Update 6
- Filebot 4.7
- Filebot Node 0.2.0

Thanks!
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TV being sorted into unsorted

Post by rednoah »

I presume this is not actually what the logs say?

Code: Select all

/SHOWNAME/Season 03/NAME - S03E03 - EPNAME.mkv
Well, if you want your format to be resolved relatively to your --output folder, then it must be a relative path.

Relative Path => Good

Code: Select all

{n}/{n} - {s00e00} - {t}
Absolute Path => Bad (because you don't and shouldn't have write permissions to the / filesystem root)

Code: Select all

/{n}/{n} - {s00e00} - {t}

PS: Why do you even use a custom format? Your custom format provides no benefit over the defaults. Also, your format will fail in special cases you haven't considered yet. ;)
:idea: Please read the FAQ and How to Request Help.
quickshot12
Posts: 2
Joined: 18 May 2016, 13:02

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

Post by quickshot12 »

So, I switched out the format to this...

Code: Select all

TV/{n}/{episode.special ? 'Special' : 'Season '+s.pad(1)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}
...and it's working!

The reason for the custom format was because my files live in /TV not /TV Shows and I just grabbed some random "Plex compatible" format off the web.

Thanks for your help, really appreciate it.
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

As a reminder, the plex standard says TV Shows so I'd recommend changing the folder name, not changing the format. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply