New to TrueNAS and a bit confused as to why a DataSet I created and then deleted is still showing in the Dataset listings.
Now when I try to delete it it says the Path is not found but if I try to recreate one with the same name, it says that one already exists and I can’t create it with that name.
How do I refresh the Datasets listing? or is there a command line that I can use to refresh it in the shell?
(TrueNAS Fangtooth)
How did you “delete” the dataset that you created?
Where?
On the web UI Datasets page?
On a page that asks you to select a folder, such as SMB Shares?
In the terminal using zfs commands?
Does the dataset show when you use the terminal?
zfs list -t filesystem -r <pool>
I deleted the App
and then in the Datasets page I selected each subfolder and clicked the “Delete” button.
If I go into the terminal, and then type that command (replacing with the path to the folder) it says “no such file or directory” However if I use the command and point to the parent folder, then it lists everything including the folder it just said that there was no such file or directory.
I am experiencing the same issue. Except it’s the child datasets. I tried to delete a dataset without deleting the child datasets first (dumb move in hindsight) and now I am unable to delete the main dataset in the UI. When I run:
zfs list -t filesystem -r
TN shows the ‘deleted’ datasets in question. But when I click on the ‘deleted’ child datasets in the UI I get the message:
CallError
[ENOENT] Path /mnt/Mirror_1/docker/owncloud/files not found
The debug shows:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/api/base/server/ws_handler/rpc.py”, line 323, in process_method_call
result = await method.call(app, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/api/base/server/method.py”, line 52, in call
result = await self.middleware.call_with_audit(self.name, self.serviceobj, methodobj, params, app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 911, in call_with_audit
result = await self._call(method, serviceobj, methodobj, params, app=app,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 731, 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 624, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/api/base/decorator.py”, line 101, in wrapped
result = func(*args)
^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/filesystem.py”, line 393, in stat
raise CallError(f’Path {_path} not found’, errno.ENOENT)
middlewared.service_exception.CallError: [ENOENT] Path /mnt/Mirror_1/docker/owncloud/files not found
Any ideas how I might fix this?
I see two options to fix this:
- Use zfs destroy in the cli:
zfs destroy poolname/datasetname - Temporarily create the mountpoint (
mkdir -p /mnt/Mirror_1/docker/owncloud/files). Then the UI might work (it might complain that the datset isn’t mounted, a reboot should fix that).