[EINVAL] sharingsmb_create.path_local: SMB shares containing the apps dataset are not permitted

Hello all

I am in the final phases of rebuilding my backup server
My server (A) is a treunas scale vm on a proxmox server. It’s datasets were originally imported from a freenas installation, This dataset was created on this server over 4 years ago calles Tv Shows. and it served me very well

In building and configuring my new server (B), i can no longer create a dataset called Tv Shows. It must be called TvShows

In creating an rsync task from server a to server b (/mnt/media/Tv Shows as a source to /mnt/media as a destination target, the rsync task created a folder on server B called ‘Tv Shows’

I cannot create a dataset on server B called Tv SHows

When i try to create a share of the folder created by server a in server b using the GUI

When i go to save the new dataset (TV SHows) I get the following error

[EINVAL] sharingsmb_create.path_local: SMB shares containing the apps dataset are not permitted

In creating this share in the gui i select the path /mnt/media/

I see the Tv Shows folder. it shows an blue outline of a foder. If i try to expand this folder by licking the arrow i do see all the folder created in this dataset. They too show a picture outline of a folder

Why is truenas scale no longer allowing a space in the name of a dataset

How can i remedy this situation?

I see a possible solution is to created a shared smb dataset in server b called TvShows
in windows copy and paste from server a the contents of Tv Shows to TvShows on server B
verify ai both datasets are equal
delete the dataset Tv Shows in server a
create a dataset on server a called TvShows
copy and paste from server b to server a the contents of server b TvShows
Change Jellyfin server, rsync module names to tv shows

This will undoubtedly take a long time to perform

There should be a better way of doing this

I thank you all for any possible suggestion that will help me fix this issue in a more efficient way

Why is truenas scale no longer allowing a space in the name of a dataset

We don’t prevent this generally, although IMHO it is an anti-pattern that can cause headaches with scripting. The error is specifically mentioning SMB shares. Do you currently have an SMB share on the server in question that contains your ix-applications dataset (perhaps one that is pointing to /mnt/media)? This may be triggering a validation error message because we try to prevent users from doing that (especially if the pool contains ix-applications).

@awalkerix

Thank you for the quick reply.
I do have all my datasets shared via SMB (with the exception of Backups that is an SMB /NSF share).

I do not backup the IX application dataset

All my datasets are used by the same apps (jellyfin and rsync and tailscale)

If you are talking about the B server, this server does have has IX apps (only rsync).
.

How do i correct this anti-pattern? where could i find it (in setting for the pool maybe?

Once again thank you
I do not believe that this would be the case, if so then that would prevent all dataset to behave in the same manner

How do i find this ant-pattern could it be in the configuration of the pool?

In server b, to delete the dataset created by the rsync task, can i use rd Tv Shows?

Thank you for your help

@awalkerix

Just to give you an update.

Things are getting weirder and weirder.

To make my life simpler i wanted to create a new dataset from scratch on both server called Shows.

On each server when i configured the dataset, when i got to configuring the ACL .

Stangly enough the only preset truenas offered for these datasets was NS4_Open whereas all other datasets have POSIX_Open
I normally use the Posix_open as a bases and add my UID and my Grp with full privileges and save this modification as a preset call me

I copied and pasted (from my windows pc) the content of my Tv Shows dataset on server A to a new dataset called Shows.

I then modified the rsync task from server A to Server B taking into consideration the new dataset names
when I look into my server A shell under /mnt/
i see the my pool called media

However, If i open a shell in server B I now have in /mnt/ A pool called Apps and Media. How do i delete Apps
if i then go to my /mnt/media i see all the datasets i created and the dataset created by the Rsync task that started this whole mess.
If i go to the proper directory using cd /mnt/media/
i tried rmd t Tv Shows
I tried rm /Tv SHows
i tried rm and rdm with ‘Tv Shows’
to no avail

How do I delete this dataset called Tv Shows from server B

Thank you