Page 1 of 1

Read Only Filesystem Error

Posted: 11 May 2015, 03:01
by HNLRoscoe
Hi,

I'm running a FreeNAS system, so I have Filebot 4.5.6 installed in a virtual box running Linux Mint 17.1 with JRE 1.8.0_45 on a jail. When I run Filebot, I can load files to it and fetch data for them, but when I try to rename or symlink anything, I get a File System Error.
FSError.png
I thought this may have been because I was running Filebot as a regular user. So I tried a sudo run. Here's the console output:

Code: Select all

May 10, 2015 7:35:56 PM net.filebot.ui.rename.RenameAction$RenameJob done
SEVERE: FileSystemException: /media/sf_Downloads/Anime/Series/[Coalgirls]_Star_Driver_(1280x720_Blu-Ray_FLAC)/Star Driver Kagayaki no Takuto - 1x19 - The Trio`s Sunday.mkv: Read-only file system
java.util.concurrent.ExecutionException: java.nio.file.FileSystemException: /media/sf_Downloads/Anime/Series/[Coalgirls]_Star_Driver_(1280x720_Blu-Ray_FLAC)/Star Driver Kagayaki no Takuto - 1x19 - The Trio`s Sunday.mkv: Read-only file system
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at javax.swing.SwingWorker.get(SwingWorker.java:602)
	at net.filebot.ui.rename.RenameAction$RenameJob.done(RenameAction.java:341)
	at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
	at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
	at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
	at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
	at javax.swing.Timer.fireActionPerformed(Timer.java:313)
	at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.nio.file.FileSystemException: /media/sf_Downloads/Anime/Series/[Coalgirls]_Star_Driver_(1280x720_Blu-Ray_FLAC)/Star Driver Kagayaki no Takuto - 1x19 - The Trio`s Sunday.mkv: Read-only file system
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.createSymbolicLink(UnixFileSystemProvider.java:457)
	at java.nio.file.Files.createSymbolicLink(Files.java:1043)
	at net.filebot.util.FileUtilities.createRelativeSymlink(FileUtilities.java:130)
	at net.filebot.StandardRenameAction$4.rename(StandardRenameAction.java:53)
	at net.filebot.ui.rename.RenameAction$RenameJob.doInBackground(RenameAction.java:324)
	at net.filebot.ui.rename.RenameAction$RenameJob.doInBackground(RenameAction.java:294)
	at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at javax.swing.SwingWorker.run(SwingWorker.java:334)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

I'm not sure where the hangup in permissions is, because I can go into the terminal as a regular user and manipulate files normally. Any ideas?

Re: Read Only Filesystem Error

Posted: 11 May 2015, 09:50
by rednoah
I've never seen that one before... no idea.

Permissions seem to be the obvious issue. But sometimes these errors can be misleading. Especially for remote filesystems. I'd try renaming in place, then moving to your HOME folder, step by step trying to figure what exactly isn't working.

Re: Read Only Filesystem Error

Posted: 12 May 2015, 01:41
by HNLRoscoe
UPDATE:

So it turns out the issue has to do with VirtualBox not allowing symlinks by default because of a security risk it can pose. The workaround was fairly easy to find, but I had some trouble getting it to work in the context of a FreeNAS jail based VM. Here's the step-by-step process I used to get it working in case any other FreeNAS users come by.

https://forums.freenas.org/index.php?th ... sue.30820/

P.S. Thanks so much for making Filebot. I was getting in way over my head trying to code up something like this on my own before I found out about it.