Cannot "up" jail after fresh system install

Status
Not open for further replies.

ertank

Explorer
Joined
Sep 16, 2018
Messages
66
Hello,

I was on 11.2-RC2 and was using a jail created with 11.2-BETA2 in that system.

I see that 11.2-RELEASE is out and wanted to upgrade. During upgrade I had issues with my USB stick and had to do a fresh new install of 11.2-RELEASE on a new USB stick. Now, after importing my system dataset everything but my jail is working.

When I try to start up jail I have following error:
mount: /mnt/iocage: No such file or directory jail: /sbin/mount -t nullfs -o rw /mnt/pool/share/svnbase /mnt/iocage/jails/svn/root/mnt: failed

When I check my pool, I see that I do have /mnt/iocage/jails/svn/root

Detailed errors I receive when I try to start my jail is:
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 rw /mnt/pool/share/svnbase /mnt/iocage/jails/svn/root/mnt: 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 rw /mnt/pool/share/svnbase /mnt/iocage/jails/svn/root/mnt: failed

Then I removed mount point from my jail.
Starting jail without mount point was just fine. It started up nicely.
As it started, I stop the jail and added same mount point. Exactly as above.
I try to start jail and it started up again. I could use it just fine.

I did not understand what problem was, just wanted to post in here for developers as they might find something.

Thanks & regards,
Ertan
 
D

dlavigne

Guest
Please create a report at bugs.freenas.org and post the issue number here.
 

ertank

Explorer
Joined
Sep 16, 2018
Messages
66
It took me a while as I was out for a trip.

Here is issue number #65997
 
Status
Not open for further replies.
Top