Change Mount Point from Read-Only

Matt Lock

Dabbler
Joined
May 11, 2015
Messages
18
Hi,

I have a mount point set against a plex jail (11.2-RELEASE-p9 ). Its currently set to read only. I want to change this to allow changes, but when I untick the read only option and click save, I get an error saying "[EFAULT] Destination: /mnt/vol1/iocage/jails/plex/root/media already exists!" I have stopped the jail, btw.

Here's the error log. Any suggestions? Do I need to delete the mount point and recreate it?
"
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/jail.py", line 707, in fstab
dump, _pass, index=index
File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 1037, in fstab
index=index
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_fstab.py", line 83, in __init__
self.__fstab_parse__()
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_fstab.py", line 125, in __fstab_parse__
self.__validate_fstab__([self.mount])
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_fstab.py", line 279, in __validate_fstab__
exception=iocage_lib.ioc_exceptions.ValidationFailed
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 90, in logit
_callback(content, exception)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 64, in callback
raise callback_exception(message)
iocage_lib.ioc_exceptions.ValidationFailed: ['Destination: /mnt/vol1/iocage/jails/plex/root/media already exists!']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 131, in main_worker
res = loop.run_until_complete(coro)
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
return future.result()
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 91, in _run
return await self._call(name, serviceobj, methodobj, params=args, job=job)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 84, in _call
return methodobj(*params)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 84, in _call
return methodobj(*params)
File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 668, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/jail.py", line 719, in fstab
raise CallError(e.message)
middlewared.service_exception.CallError: [EFAULT] Destination: /mnt/vol1/iocage/jails/plex/root/media already exists!
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 166, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1097, in call_method
return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1042, in _call
return await self._call_worker(name, *args)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1062, in _call_worker
return await self.run_in_proc(main_worker, name, args, job)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 996, in run_in_proc
return await self.run_in_executor(self.__procpool, method, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 972, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
middlewared.service_exception.CallError: [EFAULT] Destination: /mnt/vol1/iocage/jails/plex/root/media already exists!
 
D

dlavigne

Guest
Looks like a bug. Please create one at bugs.ixsystems.com and post the issue number here.
 

Matt Lock

Dabbler
Joined
May 11, 2015
Messages
18
HI, I see this bug has now been closed as it was discovered in a previous escalation. Can someone tell me if removing the Mount Point and recreating it (as not read-only) will be ok? Or will it still error that the mount point still exists? Read-only is causing many issues with Plex and I'd like to change it. Thanks.
 

cellardoor

Dabbler
Joined
Jul 21, 2017
Messages
25
try: iocage fstab -e yourjail
and change ro to rw
(save, quit vi, standart editor is vi if not set setenv to another editor

if this does not solve the problem delete the whole entry
(save, quit vi) and recreate the mountpoint rw
 
Last edited:
Top