Can't install TailScale on Truneas Scale

Hi Everyone.
I’m using Truenas scale, as my NAS machine at home.
I want to be able to log in to it outside of my network.
I understand I need to configure VPN as it easiest way to do so.
I want to be able to log in with my iphone and other devices to my SMB on truenas.
While I trying to install the app I getting error message
“The root dataset of pool Media is used by SMB services. Shares should be configured so that they export data contained in child datasets such as Media/SHARE.”

I manage to install TailScale if I turn SMB off. but of course I want it to be on.
I understand it something about my dataset but I’m not fully undertand what wrong.
btw I currently have 1 SSD drive and one vdev.
any ideas what wrong?

when I open the more info on the error message I got this:

Error: Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 469, in run
await self.future
File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 511, in __run_body
rv = await self.method(*args)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 47, in nf
res = await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 187, in nf
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/kubernetes_linux/update.py”, line 504, in do_update
await self.validate_data(config, ‘kubernetes_update’, old_config)
File “/usr/lib/python3/dist-packages/middlewared/plugins/kubernetes_linux/update.py”, line 377, in validate_data
verrors.check()
File “/usr/lib/python3/dist-packages/middlewared/service_exception.py”, line 70, in check
raise self
middlewared.service_exception.ValidationErrors: [EINVAL] kubernetes_update.pool: The root dataset of pool Media is used by SMB services. Shares should be configured so that they export data contained in child datasets such as Media/SHARE.

Thanks

What does your datasets tree look like?

That error is telling you that you have an SMB share configured for the root dataset of a pool /Media. Sharing a root dataset is discouraged because it can cause issues with permissions.

Instead, as the error suggests, you should configure your share for a child dataset like Media/*ShareName*. Another common way is to have a more generic pool name and then a media dataset under it (with additional media folders as needed). So you could have a pool called tank, set up a share for tank/Media and then include child datasets or folders for /movies /music etc.

My dataset configure as /mnt/Media.
How can I create another pool?
I think I looked in the wrong place.
I tried to go on trunas scale to Storage - create pool , but I cant choose Automated Disk Selection under Data section. I’m guess it is because I already create a pool that use all the disk size

Right, at this point the easiest thing to do is to stick with the existing pool. Remove the SMB share from /mnt/Media. Go to Datasets and create a new dataset under that pool, /mnt/Media/*newdataset*, and set up an SMB share for that dataset. Then you can use the new dataset as the base level of your share and reorganize the files you want to share into folders under that one.

I did that, created a new dataset under /mnt/Media, but still got the same error message.
did you mean that I need to make the /mnt/Media/newdata set . as SMB share and turn off the SMB for /mnt/Media so that i can install the app on the Media POOL.
But I move all my files to the new dataset an have access from there?