Unable to delete unused empty dataset - OSError [Errno 116] Stale file handle: '/proc/3965363/fd/0'

NTMan

Cadet
Joined
Sep 19, 2023
Messages
1
I am getting the following error when attempting to delete either a child or parent dataset in TrueNAS-SCALE-22.12.3.3:

Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 204, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1344, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1378, in nf
return await func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1246, in nf
res = await f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool.py", line 4340, in processes
return await self.middleware.call('pool.dataset.processes_using_paths', paths)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1395, in call
return await self._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1355, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1258, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/track_processes.py", line 52, in processes_using_paths
(include_devs and os.stat(fd).st_dev in include_devs) or
OSError: [Errno 116] Stale file handle: '/proc/3965363/fd/0'

Screenshots of the attempted actions are attached. Any help that can solve this issue would be valued. I am running out of ideas other than this is a bug...
 

Attachments

  • Dataset.png
    Dataset.png
    558.2 KB · Views: 168
  • Attempted Deletion.png
    Attempted Deletion.png
    501 KB · Views: 184

treboR2Robert

Dabbler
Joined
Sep 24, 2014
Messages
46
I am having the same problem, did you resolve it ?
 

treboR2Robert

Dabbler
Joined
Sep 24, 2014
Messages
46
@anodos I solved it, but thank you for the quick reply.

There was an SMB share containing the dataset I wanted to delete.
After deleting the SMB share it still wouldn't let me delete the dataset.

Done a reboot after deleting the SMB share and it then let me delete the dataset without error.

Hope this helps someone

p.s I'm using TrueNAS-SCALE-22.12.4
 
Top