FreeNAS 11.2 nextcloud jail stopped working

Status
Not open for further replies.

morningwon

Dabbler
Joined
Sep 7, 2018
Messages
22
Hello freenas gurus!

my nextcloud iocage jail stopped working this is the error I get when I try to start it:

RUNTIME ERROR

mount: /mnt/iocage: No such file or directory jail: /sbin/mount -t nullfs -o ro /mnt/iocage/releases/11.2-RELEASE/root/bin /mnt/iocage/jails/nextcloud/root/bin: failed



As far as I can tell I think it should be pointed to mnt/volume1/iocage/jails/nextcloud/root/bin. It worked after I upgraded to 11.2 but now it wont start.

Any help would be greatly appreciated.

Here is the more info:

Error: concurrent.futures.process._RemoteTraceback:
"""
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 128, 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 88, in _run
return await self._call(f'{service_name}.{method}', serviceobj, methodobj, params=args, job=job)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 81, in _call
return methodobj(*params)
File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 81, 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 542, in start
iocage.start()
File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 1654, in start
callback=self.callback
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_start.py", line 66, in __init__
self.__start_jail__()
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_start.py", line 391, in __start_jail__
silent=self.silent)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 81, 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)
RuntimeError: mount: /mnt/iocage: No such file or directory
jail: /sbin/mount -t nullfs -o ro /mnt/iocage/releases/11.2-RELEASE/root/bin /mnt/iocage/jails/nextcloud/root/bin: failed

"""

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 161, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1109, 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 1046, in _call
return await self._call_worker(serviceobj, name, *args)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1073, in _call_worker
job,
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1004, 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 989, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
RuntimeError: mount: /mnt/iocage: No such file or directory
jail: /sbin/mount -t nullfs -o ro /mnt/iocage/releases/11.2-RELEASE/root/bin /mnt/iocage/jails/nextcloud/root/bin: failed
 

morningwon

Dabbler
Joined
Sep 7, 2018
Messages
22
I found the solution to this:

I created another nextcloud instance and looked at the fstab in /mnt/volume1/iocage/jails/nextcloud (volume1 would be your volume name)

After comparing the two my volume name (volume1) was dropped from every line in the fstab. next I just did ee fstab added it back to every line, saved, and the jail started right up.

this is the before: (I am showing just one line for demonstration purposes)

/mnt/iocage/releases/11.2-RELEASE/root/usr/lib32 /mnt/iocage/jails/nextcloud/root/usr/lib32

This is after:

/mnt/volume1/iocage/releases/11.2-RELEASE/root/usr/lib32 /mnt/volume1/iocage/jails/nextcloud/root/usr/lib32

I do not know exactly what caused it, but this was the fix.

I hope this helps someone.
 
Status
Not open for further replies.
Top