SOLVED "Jail Not Found" after rename and rollback.

Joined
Jul 27, 2017
Messages
16
I renamed a jail using the UI (staff-wiki to just wiki). I then ran into issues (unrelated to the rename). I shut down the jail, rolled it back to the last known good snapshot and attempted to start the jail back up as I have so many times before. This time, I get "jail 'wiki' not found!"

I did indeed roll the jail's root dataset back to before it was renamed using the UI. It didn't even occur to me that this would cause an issue.

Attempting to rename it, start it, delete it, or make any changes at all to it result in the jail-not-found error. In an attempt to fix it, I exported the jail, deleted it completely and its dataset, then imported it again. The import was successful, but the error remains.

If I try to start the jail from command line iocage start wiki, I get the same error. If I try to start the jail using the old name from command line iocage start staff-wiki, it acts like it's going to start but fails because .../iocage/jails/staff-wiki: No such file or directory

There's clearly more than one place that a jail derives its name. Is there some database entry I can alter to fix this?

SYSTEM:
TruNAS CORE 12.0-U8
10TBx7-Disks w/ RAIDZ2
Intel Xeon 2.10GHz x 16 cores
160GB Memory
2 x 10Gb LAGG network interface
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You will probably need to check /mnt/<pool>/iocage/wiki/fstab and possibly /mnt/<pool>/iocage/wiki/config.json. No database entries that I am aware of - all in the top level directory of the iocage jail.
 
Joined
Jul 27, 2017
Messages
16
That worked perfectly. I changed every reference of the new name back to the old name. It started up with no problem.

Thank you for your knowledgeable help.
 
Top