Page 1 of 1

Failure when moving file

Posted: 11 Apr 2014, 20:29
by cbrian
Hello, I am having issues with FileBot failing to move/rename files. I am running FileBot on Ubuntu, it is called by an Execute script when Deluge finishes downloading a torrent. The script should move the video file from my Torrents folder to an external hard drive (/Media1/), here is the output:

Code: Select all

Get [English] subtitles for 1 files
Looking up subtitles by filehash via OpenSubtitles
Matched [Dom Hemingway 2013 720p BRRip x264 AC3-JYK.mkv] to [Dom.Hemingway.2013.LIMITED.720p.BluRay.X264-AMIABLE-HI] via filehash
Fetching [Dom.Hemingway.2013.LIMITED.720p.BluRay.X264-AMIABLE-HI.srt]
Export [Dom.Hemingway.2013.LIMITED.720p.BluRay.X264-AMIABLE-HI.srt] as: SubRip / UTF-8
Writing [Dom.Hemingway.2013.LIMITED.720p.BluRay.X264-AMIABLE-HI.srt] to [Dom Hemingway 2013 720p BRRip x264 AC3-JYK.eng.srt]
Filename pattern: [0.00] SxE, [0.00] CWS
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/brian/Torrents/Movies/Dom Hemingway 2013 720p BRRip x264 AC3-JYK/Dom Hemingway 2013 720p BRRip x264 AC3-JYK.mkv]
[MOVE] Rename [/home/brian/Torrents/Movies/Dom Hemingway 2013 720p BRRip x264 AC3-JYK/Dom Hemingway 2013 720p BRRip x264 AC3-JYK.mkv] to [/media/Media1/Movies/Dom Hemingway [2014] (720p).mkv]
Failure (?_?)
Here's my sysinfo output:

Code: Select all

FileBot 4.0 (r2056)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.64
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (/usr/share/filebot/fpcalc)
Extended Attributes: DISABLED
Groovy Engine: 2.2.0
OpenJDK Runtime Environment 1.7.0_51 (headless)
64-bit OpenJDK 64-Bit Server VM
Linux (amd64)
Linux raekwon 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ

If I run the exact same FileBot command outside of my script, it works fine. I am thinking the issue has something to do with permissions, however it is being run under the same user whether in or out of the script.

Thanks for any help you can give me.

Re: Failure when moving file

Posted: 12 Apr 2014, 03:48
by rednoah
This is only the standard output, not the error output. So I can't see the exception. It is most definitely permissions though, probably because Deluge runs as a different user.

Read this:
http://www.cyberciti.biz/faq/redirectin ... to-stdout/

Re: Failure when moving file

Posted: 12 Apr 2014, 19:33
by cbrian

Code: Select all

brian@raekwon:~/Code$ cat output.txt 
[MOVE] Failed to rename [/home/brian/Torrents/Movies/Legend (2014) Telugu Movie DVDScr XviD - HTRG/[www.hollytorrents.com]Legend (2014) Telugu Movie DVDScr XviD - HTRG.mp4]
FileSystemException: /media/Media1/Movies/Legend [2014] (360p).mp4: Operation not permitted
java.nio.file.FileSystemException: /media/Media1/Movies/Legend [2014] (360p).mp4: Operation not permitted
	at net.sourceforge.tuned.FileUtilities.moveRename(FileUtilities.java:61)
	at net.sourceforge.filebot.StandardRenameAction$1.rename(StandardRenameAction.java:14)
	at net.sourceforge.filebot.cli.CmdlineOperations.renameAll(CmdlineOperations.java:589)
	at net.sourceforge.filebot.cli.CmdlineOperations.renameMovie(CmdlineOperations.java:481)
	at net.sourceforge.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:137)
	at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:87)
	at net.sourceforge.filebot.Main.main(Main.java:192)
Here's the exception. I tried changing the permissions on everything on the external HD to 777 as well as making sure that all of the files belong to me, but I'm still having the issue.

Re: Failure when moving file

Posted: 13 Apr 2014, 09:27
by rednoah
No idea, it's not a common issue. Have you tried using the latest revision? Does that make a difference?

Re: Failure when moving file

Posted: 13 Apr 2014, 14:17
by cbrian
Yeah, doesn't seem to do anything. I've also tried reinstalling FileBot.