Error when creating new jail "Operation not permitted"

Toydoll

Dabbler
Joined
Sep 17, 2015
Messages
33
Hi

I recently got new hardware and decided to do a completely fresh install of freenas at the same time. Everything worked as expected until today when I wanted to create my third jail, it didn't work. The two first jails went perfectly fine and as far as I know I haven't done anything strange since then, the only thing I can remember doing is creating a couple of windows shares. But I don't see how that should matter, and I worked for years on my old freenas install.

What I try to do:
Create a new jail. I'm allowed to set the name and configure the network but when I press "submit" I'm met with:

(I noticed that when I reloaded the page I could see everything that's in the spoiler so I copied it to pastebn as well https://pastebin.com/cZYurkGL )
Errno 1 ": '/mnt/head/iocage/defaults.json' said:
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/plugins/jail.py", line 200, in create_job
empty=empty
File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 611, in create
clone=clone,
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_create.py", line 87, in create_jail
return self._create_jail(jail_uuid, location)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_create.py", line 194, in _create_jail
config = self.create_config(jail_uuid, cloned_release)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_create.py", line 574, in create_config
jail_props = ioc_json.json_check_default_config()
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_json.py", line 1924, in json_check_default_config
self.json_write(default_props, default_json_location)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_json.py", line 448, in json_write
json.dump(data, out, sort_keys=True, indent=4, ensure_ascii=False)
File "/usr/local/lib/python3.6/contextlib.py", line 88, in __exit__
next(self.gen)
File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 521, in open_atomic
os.chmod(filepath, 0o644)
PermissionError: [Errno 1] Operation not permitted: '/mnt/head/iocage/defaults.json'
"""

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/job.py", line 332, in run
await self.future
File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 356, in __run_body
rv = await self.middleware._call_worker(self.serviceobj, self.method_name, *self.args, job={'id': self.id})
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1105, in _call_worker
job,
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1036, 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 1021, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
PermissionError: [Errno 1] Operation not permitted: '/mnt/head/iocage/defaults.json'


I'm no tech guy so all this is completely gibberish to me. How do I even begin to fix this?

Freenas version: 11.2U3
 
Last edited:
Joined
Jul 10, 2016
Messages
521
Top