java.nio.file.NoSuchFileException

All your suggestions, requests and ideas for future development
Post Reply
arette
Posts: 4
Joined: 30 Dec 2016, 14:52

java.nio.file.NoSuchFileException

Post 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 (°_°)
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Format Error Synology FileBot Command Line

Post 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.
:idea: Please read the FAQ and How to Request Help.
arette
Posts: 4
Joined: 30 Dec 2016, 14:52

Re: Format Error Synology FileBot Command Line

Post 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
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Format Error Synology FileBot Command Line

Post 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}"
:idea: Please read the FAQ and How to Request Help.
arette
Posts: 4
Joined: 30 Dec 2016, 14:52

Re: java.nio.file.NoSuchFileException

Post 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
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.nio.file.NoSuchFileException

Post 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
:idea: Please read the FAQ and How to Request Help.
arette
Posts: 4
Joined: 30 Dec 2016, 14:52

Re: java.nio.file.NoSuchFileException

Post by arette »

ok thank you for refreshing - good to go now after escaping the $'s
Post Reply