Hi guys,
I recently got my system back online, but I'm not sure it's working correctly.
My system was a freenas build that was upgraded to a truenas build during the reinstall.
I recreated my user account and SMB share and I got it connected to my laptop, but the permissions were very inconsistent.
Wiping users and shares clean, I went through the tutorial, but every time I try to give the user permissions I got this error.
I don't know what it means or how to fix it.
Many thanks
	
		
			
		
		
	
			
			I recently got my system back online, but I'm not sure it's working correctly.
My system was a freenas build that was upgraded to a truenas build during the reinstall.
I recreated my user account and SMB share and I got it connected to my laptop, but the permissions were very inconsistent.
Wiping users and shares clean, I went through the tutorial, but every time I try to give the user permissions I got this error.
I don't know what it means or how to fix it.
Many thanks
Code:
Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
    await self.future
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 405, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))
  File "/usr/local/lib/python3.9/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
    return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 979, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/filesystem.py", line 1070, in setacl
    return self.setacl_nfs4(job, data)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/filesystem.py", line 902, in setacl_nfs4
    self._common_perm_path_validate(data['path'])
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/filesystem.py", line 445, in _common_perm_path_validate
    jail_root = self.middleware.call_sync('jail.get_activated_pool')
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1283, in call_sync
    return methodobj(*prepared_call.args)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 979, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/jail_freebsd.py", line 1074, in get_activated_pool
    pool = ioc.IOCage(skip_jails=True, reset_cache=True).get('', pool=True)
  File "/usr/local/lib/python3.9/site-packages/iocage_lib/iocage.py", line 95, in __init__
    self.generic_iocjson = ioc_json.IOCJson()
  File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_json.py", line 1372, in __init__
    super().__init__(location, checking_datasets, silent, callback)
  File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_json.py", line 432, in __init__
    self.default_config = self.check_default_config()
  File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_json.py", line 1301, in check_default_config
    self.backup_iocage_jail_conf(default_json_location)
  File "/usr/local/lib/python3.9/site-packages/iocage_lib/ioc_json.py", line 919, in backup_iocage_jail_conf
    shutil.copy(
  File "/usr/local/lib/python3.9/shutil.py", line 427, in copy
    copymode(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/local/lib/python3.9/shutil.py", line 316, in copymode
    chmod_func(dst, stat.S_IMODE(st.st_mode))
PermissionError: [Errno 1] Operation not permitted: '/mnt/MediaAndStorage/iocage/defaults_backup.json'