Delete leftover jailmaker dataset in TrueNAS 24.10?

I’m using Electric Eel 24.10 now, but I have a jailmaker jail set up in 24.04. I can’t delete it with rm on the command line, nor with the GUI dataset delete. The latter responds with " Error deleting dataset Ark/jailmaker. [EBUSY] Failed to delete dataset: cannot unmount ‘/mnt/Ark/jailmaker/jails/ffmpeg’: pool or dataset is busy cannot unmount ‘/mnt/Ark/jailmaker/jails’: pool or dataset is busy cannot unmount ‘/mnt/Ark/jailmaker’: pool or dataset is busy"

jlmkr.py commands don’t work any more. How can I delete the jailmaker dataset?

Datasets cannot be removed with rm.
You need to delete the dataset from the GUI or zfs destroy .

But if there is any file being used/open under that directory, or you are in the command line, inside that directory, it will give you that error.

Check the Init/Shutdown Scripts or anything else using/opening files in that dataset.

Thanks. There actually is a postinit command to start up jailmaker after boot, by running /path/to/jailmaker/dataset/jlmkr.py startup.

I didn’t think it did anything because there is no jlmkr.py there anymore. Just to be sure, I deleted the postinit command and rebooted the machine. Then I could delete the jailmaker dataset in the GUI!

I don’t understand, but problem solved.

That would only be true if you actively removed it, since it would have been manually installed by you.

Okay, to be precise, when I tried to execute jlmkr.py commands just
as I did in 24.04, I got ‘command not found’.

what i did to remove jailmaker

  1. use the jailmaker command see the active jails.
  2. stop the jails
  3. delete the jails (there is a command for jailmaker in shell to do 1-3)
  4. go to truenas shares, delete the jailmaker dataset. for myself, the jailmaker dataset was a standalone, meaning i could safely delete this dataset as it wouldn’t affect anything else, because this dataset was by itself and only used for jailmaker. this is where all the jailmaker content went into e.g. creating jails and stuff.
  5. i used winscp sftp, browsed the directory to see if the jailmaker dataset location was still there or not. it should be gone if u did step 4, but if not, you can simply just delete the jailmaker folder. Sure you can do the linux method do a list, check the folders, then do a RM. But i prefer using a UI as a matter of preference. Up to you. anyway make sure this “jlmkr.py” is deleted.
  6. Go to your truenas settings, there part where u had the scripts e.g postinit to run jailmaker on start, undo all of that. In the jailmaker setup guide they tell u to do all that, so just do the reverse of those instructions to remove those jailmaker stuff from the truenas scripts to auto run on booting your nas.

At this point jailmaker is gone, should be.