Can't create dataset - "pool_dataset_create.name: Path already exists"

So I deleted dataset via GUI and tried to create again, but I get an error:

[EINVAL] pool_dataset_create.name: Path /mnt/Apps/Data/searxng already exists

Here’s the list of datasets:

admin@KarmaNAS[~]$ sudo zfs list -t all -r Apps/Data
NAME                              USED  AVAIL  REFER  MOUNTPOINT
Apps/Data                        48.1G   758G   152K  /mnt/Apps/Data
Apps/Data/caddy                   516K   758G   104K  /mnt/Apps/Data/caddy
Apps/Data/caddy/config            100K   758G   100K  /mnt/Apps/Data/caddy/config
Apps/Data/caddy/data              204K   758G   204K  /mnt/Apps/Data/caddy/data
Apps/Data/caddy/etc               108K   758G   108K  /mnt/Apps/Data/caddy/etc
Apps/Data/ddns-updater            200K   758G   200K  /mnt/Apps/Data/ddns-updater
Apps/Data/deluge                 1.70M   758G   104K  /mnt/Apps/Data/deluge
Apps/Data/deluge/config          1.48M   758G  1.48M  /mnt/Apps/Data/deluge/config
Apps/Data/deluge/downloads        120K   758G   120K  /mnt/Apps/Data/deluge/downloads
Apps/Data/fmd                    1.34M   758G   148K  /mnt/Apps/Data/fmd
Apps/Data/fmd/db                 1.20M   758G  1.20M  /mnt/Apps/Data/fmd/db
Apps/Data/gotosocial             99.1M   758G   112K  /mnt/Apps/Data/gotosocial
Apps/Data/gotosocial/.cache      84.6M   758G  84.6M  /mnt/Apps/Data/gotosocial/.cache
Apps/Data/gotosocial/config       100K   758G   100K  /mnt/Apps/Data/gotosocial/config
Apps/Data/gotosocial/data        14.3M   758G  14.3M  /mnt/Apps/Data/gotosocial/data
Apps/Data/home-assistant         57.5M   758G   112K  /mnt/Apps/Data/home-assistant
Apps/Data/home-assistant/config  28.5M   758G  28.5M  /mnt/Apps/Data/home-assistant/config
Apps/Data/home-assistant/media     96K   758G    96K  /mnt/Apps/Data/home-assistant/media
Apps/Data/home-assistant/pg      28.8M   758G  28.8M  /mnt/Apps/Data/home-assistant/pg
Apps/Data/homepage                140K   758G   140K  /mnt/Apps/Data/homepage
Apps/Data/immich                 6.45G   758G   104K  /mnt/Apps/Data/immich
Apps/Data/immich/pg               572M   758G   572M  /mnt/Apps/Data/immich/pg
Apps/Data/immich/profile           96K   758G    96K  /mnt/Apps/Data/immich/profile
Apps/Data/immich/thumbs          5.89G   758G  5.89G  /mnt/Apps/Data/immich/thumbs
Apps/Data/jackett                  96K   758G    96K  /mnt/Apps/Data/jackett
Apps/Data/joplin                  205M   758G    96K  /mnt/Apps/Data/joplin
Apps/Data/joplin/pg               205M   758G   205M  /mnt/Apps/Data/joplin/pg
Apps/Data/plex                   41.3G   758G  41.3G  /mnt/Apps/Data/plex
admin@KarmaNAS[~]$ 

Tried turning off SMB share and even unset Apps pool to be sure this dataset is not used. Also rebooted the system

ElectricEel-24.10.0.2

Maybe the folder already exists?

Try:
ls -l /mnt/Apps/Data/searxng

If you get a No such file or directory error then ignore what I said.

1 Like

That was it :thinking:
Any way to avoid this in the future? I never created that folder myself :roll_eyes:

Docker automatically creates directories if they don’t exist (a behaviour which I don’t really like). So my guess is that you deleted the dataset and then ran the searxng app. That would automatically create the directory.

1 Like