Page 1 of 1

java.nio.file.NoSuchFileException

Posted: 30 Dec 2016, 14:55
by arette
the rename format "{ny}/{ny}" doesn't work on the synology package. It works in the graphical windows version. Both are latest (4.7.5).

admin@NAS-ETTE:/volume1/Downloads/MoviesTemp$ filebot -rename --db TheMovieDB --format "{ny}/{ny}" "Art of Skiing, The (1941).mkv"
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/volume1/Downloads/MoviesTemp/Art of Skiing, The (1941).mkv]
[MOVE] Rename [/volume1/Downloads/MoviesTemp/Art of Skiing, The (1941).mkv] to [/volume1/Downloads/MoviesTemp/The Art of Skiing (1941)/The Art of Skiing (1941).mkv]
[MOVE] Failed to rename [/volume1/Downloads/MoviesTemp/Art of Skiing, The (1941).mkv]
Processed 0 files
/volume1/Downloads/MoviesTemp/Art of Skiing, The (1941).mkv
java.nio.file.NoSuchFileException: /volume1/Downloads/MoviesTemp/Art of Skiing, The (1941).mkv
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.renameMovie(CmdlineOperations.java:498)
at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:105)
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 (°_°)

Re: Format Error Synology FileBot Command Line

Posted: 30 Dec 2016, 15:00
by rednoah
The format clearly works:

Code: Select all

[MOVE] Rename [/volume1/Downloads/MoviesTemp/Art of Skiing, The (1941).mkv] to [/volume1/Downloads/MoviesTemp/The Art of Skiing (1941)/The Art of Skiing (1941).mkv]
Are you sure this file exists?

Code: Select all

java.nio.file.NoSuchFileException: /volume1/Downloads/MoviesTemp/Art of Skiing, The (1941).mkv
If yes, then it's probably a file permission issue. The error says you're calling FileBot on a file that doesn't exist.

Re: Format Error Synology FileBot Command Line

Posted: 30 Dec 2016, 15:27
by arette
Yeah I assumed that error was indicating that perhaps fielbot was doing things out of sequence (e.g. renaming the file then calling java with the old filename) or there was some race condition between the filesystem and the call to java. I assumed this would be reasonably likely given that my format was essentially moving the file under a directory of same name. Hence why I assumed it was an issue with the format spec.

But going with perms issue, I don't see what it could be since the file exists and has 777 (see below). Also the file is owned by the same user with which I run filebot (admin), so I don't know what perms issue could possibly be...

admin@NAS-ETTE:/volume1/Downloads/MoviesTemp$ ls -la
total 1728128
drwxrwxrwx 1 admin users 86 Dec 30 10:25 .
drwxrwxrwx+ 1 admin users 634 Dec 27 18:33 ..
drwxrwxrwx+ 1 root users 126 Dec 30 10:25 @eaDir
-rwxrwxrwx 1 admin users 1769528567 Dec 30 09:33 The Art of Skiing (1941).mkv
-rwxrwxrwx 1 admin users 71680 Jan 6 2014 Thumbs.db

Re: Format Error Synology FileBot Command Line

Posted: 30 Dec 2016, 15:37
by rednoah
This is the file that exists:

Code: Select all

The Art of Skiing (1941).mkv
This is the file that you're trying to process:

Code: Select all

Art of Skiing, The (1941).mkv
Next time, just pass in the current folder, as to avoid entering complicated filenames on the command-line:

Code: Select all

filebot -rename . --db TheMovieDB --format "{ny}/{ny}"

Re: java.nio.file.NoSuchFileException

Posted: 30 Dec 2016, 17:31
by arette
Yes I had found that and tried to post an update but was getting cloudfare connect errors. I did have another issue, I am now trying to change the format to improve lexical sort order per your post here viewtopic.php?t=211, but it doesn't work on the synology package It works on windows but on synology package I get: ", (1941)/, (1941).mkv"

Code: Select all

admin@NAS-ETTE:/volume1/Downloads/MoviesTemp$ filebot -rename --db TheMovieDB --format "{n.sortName('$2,$1')} ({y})/{n.sortName('$2,$1')} ({y})" "The Art of Skiing (1941).mkv"
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/volume1/Downloads/MoviesTemp/The Art of Skiing (1941).mkv]
[MOVE] Rename [/volume1/Downloads/MoviesTemp/The Art of Skiing (1941).mkv] to [/volume1/Downloads/MoviesTemp/, (1941)/, (1941).mkv]
Processed 1 files

Re: java.nio.file.NoSuchFileException

Posted: 30 Dec 2016, 18:34
by rednoah
Again, user error. If you're using the shell, you may want to brush up on some basics first.

e.g. compare and contrast:

Code: Select all

echo "Hello $1/$2"

Code: Select all

echo 'Hello $1/$2'
@see viewtopic.php?f=4&t=1899
@see viewtopic.php?f=3&t=3244

Re: java.nio.file.NoSuchFileException

Posted: 30 Dec 2016, 18:52
by arette
ok thank you for refreshing - good to go now after escaping the $'s