Changing ACL ruined Plugins and VMs

Joined
Sep 13, 2021
Messages
2
Hello.

I was trying to fix some Plex permissions and in the meantime I messed up big time. The permissions on the iocage are ruined and although TrueNAS shows my plugins (Plex and NextCloud) are up I can't access them. No connection and no iocage console.

When I try to change ACLs recursively I get this error:

Status: FAILEDStart Time: 2021-09-14 02:27:57Finished Time: 2021-09-14 02:28:08Error: [EFAULT] Winacl clone on path /mnt/Tinkering/iocage failed with error: [winacl: dev: acl_set_file() failed: Operation not supported winacl: dev: set_acl() failed: Operation not supported]
firefox_5pnNbDTmVb.png


Trying to Strip the ACL also doesn't work and gives this error message

[EFAULT] Winacl clone on path /mnt/Tinkering/iocage failed with error: [winacl: dev: acl_set_file() failed: Operation not supported winacl: dev: set_acl() failed: Operation not supported]

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/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 977, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/filesystem.py", line 1066, in setacl
return self.setacl_nfs4(job, data)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/filesystem.py", line 959, in setacl_nfs4
self._winacl(data['path'], 'clone', uid, gid, options)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/filesystem.py", line 430, in _winacl
raise CallError(f"Winacl {action} on path {path} failed with error: [{winacl.stderr.decode().strip()}]")
middlewared.service_exception.CallError: [EFAULT] Winacl clone on path /mnt/Tinkering/iocage failed with error: [winacl: dev: acl_set_file() failed: Operation not supported
winacl: dev: set_acl() failed: Operation not supported]

I have tried solutions from other threads but got no success.


Does anyone have an idea on how to fix this?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
What version is this? Generally speaking, altering recursively changing permissions across jails is a bad idea. For security reasons, many applications will not run if permissions for their config files (or OS files) are incorrect. You might be able to rebuild permissions manually, but it might be easier to just create new jails (or restore from snapshot). I presume the important application data was stored in a separate dataset mounted in the jail?
 
Last edited:
Joined
Sep 13, 2021
Messages
2
What version is this? Generally speaking, altering recursively changing permissions across jails is a bad idea. You might be able to rebuild permissions manually, but it might be easier to just create new jails (or restore from snapshot). I presume the important application data was stored in a separate dataset mounted in the jail?
Yes, fortunately everything was from a seperate dataset.
Im running CORE TrueNAS-12.0-U4
 
Top