11.3 Beta - iocage directory moved
Description
Problem/Justification
Impact
duplicates
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity

Waqar Ahmed November 7, 2019 at 7:55 PM
@endcycle glad it is resolved. @xodlike i'll be closing this as this has been fixed in a different ticket, if you have any objections/concerns, please let me know. Thank you

endcycle November 7, 2019 at 6:08 PMEdited
Waqar - thank you for taking a look.
I want to make sure I understand you completely and that I am approaching this correctly.
For example, my file at qbittorrent/fstab reads as follows:
/mnt/pool-zfs-1/torrents /mnt/pool-zfs-1/iocage/jails/qbittorrent/root/media/torrents "[0, rw 0 0
/mnt/pool-zfs-1/Media/Movies /mnt/pool-zfs-1/iocage/jails/qbittorrent/root/media/Movies nullfs rw 0 0
/mnt/pool-zfs-1/Media/TV /mnt/pool-zfs-1/iocage/jails/qbittorrent/root/media/TV nullfs rw 0 0
I commented everything out and try to start the jail (still listed as corrupt) and receive the following:
Error: [EFAULT] freebsd-version could not be found at /mnt/pool-zfs-1/iocage/jails/qbittorrent/root/bin/freebsd-version
Am I missing something obvious here?
EDIT: I also tried copying over a known-good fstab from another jail with the same mount points and renaming the targets as appropriate. no difference.
EDIT2: I'd be happy to install beta2 now if that will help
EDIT 3: I am a complete idiot. Fixed the fstab. I was looking at it like it was a standalone jail and not a plugin. Updated one of the corrupt jails and am gonna move onto the other ones.

Waqar Ahmed November 7, 2019 at 5:56 PM
@endcycle you have not updated your fstab with the correct iocage paths now ; ) I mentioned that for plugins/basejails that needs to be done. For beta2 it has been fixed, but with that in place, you should not face this issue again. If there's a reason otherwise, please let me know. I'll be happy to help. Thank you

endcycle November 7, 2019 at 5:30 PM
Attached Debug showing my current system state-
output of iocage list -
freebsd-version could not be found at /mnt/pool-zfs-1/iocage/jails/qbittorrent/root/bin/freebsd-version
freebsd-version could not be found at /mnt/pool-zfs-1/iocage/jails/radarr/root/bin/freebsd-version
freebsd-version could not be found at /mnt/pool-zfs-1/iocage/jails/sonarr/root/bin/freebsd-version
+-----+--------------+---------+--------------+--------------+
| JID | NAME | STATE | RELEASE | IP4 |
+=====+==============+=========+==============+==============+
| - | Jackett | down | 11.2-RELEASE | 192.168.1.55 |
+-----+--------------+---------+--------------+--------------+
| - | pms-plexpass | down | 11.2-RELEASE | 192.168.1.70 |
+-----+--------------+---------+--------------+--------------+
| - | qbittorrent | CORRUPT | N/A | N/A |
+-----+--------------+---------+--------------+--------------+
| - | radarr | CORRUPT | N/A | N/A |
+-----+--------------+---------+--------------+--------------+
| - | sabnzbdplus | down | 11.2-RELEASE | 192.168.1.56 |
+-----+--------------+---------+--------------+--------------+
| - | sonarr | CORRUPT | N/A | N/A |
+-----+--------------+---------+--------------+--------------+
I have run "zfs inherit mountpoint iocage_pool_name/iocage" with the correct pool name. No change.
Thank you-

endcycle November 7, 2019 at 5:22 PM
Waqar thank you so much for your prompt reply. I will attach a debug shortly as well.
Running the command as sudo was successful, however I receive the same issue on iocage list:
freenas% sudo iocage list
freebsd-version could not be found at /mnt/pool-zfs-1/iocage/jails/qbittorrent/root/bin/freebsd-version
freebsd-version could not be found at /mnt/pool-zfs-1/iocage/jails/radarr/root/bin/freebsd-version
freebsd-version could not be found at /mnt/pool-zfs-1/iocage/jails/sonarr/root/bin/freebsd-version
---------------------------------------------------
JID | NAME | STATE | RELEASE | IP4 |
========================================================
| Jackett | down | 11.2-RELEASE | 192.168.1.55 |
---------------------------------------------------
| pms-plexpass | down | 11.2-RELEASE | 192.168.1.70 |
---------------------------------------------------
| qbittorrent | CORRUPT | N/A | N/A |
---------------------------------------------------
| radarr | CORRUPT | N/A | N/A |
---------------------------------------------------
| sabnzbdplus | down | 11.2-RELEASE | 192.168.1.56 |
---------------------------------------------------
| sonarr | CORRUPT | N/A | N/A |
---------------------------------------------------
I will attach a debug as well.
Details
Details
Assignee

Reporter

Upon upgrading to freenas 11.3 (from 11.2-U6) my iocage directory appears to be in the wrong path, resulting in jails not loading (showing corrupt)
During the upgrade, the iocage directory was had a "mnt" folder appended to the path, resulting in it being in /mnt/mnt/volJail1/iocage
root@freenas:/mnt/volJail1 # ls
.plugins
.warden-files-cache
.warden-template-pluginjail-11.0-x64
.warden-template-pluginjail-11.0-x64-20180821204825
.warden-template-pluginjail-11.0-x64-20180916155611
.warden-template-standard-11.0-x64
defaults.json
Docker
download
home
images
jails
log
releases
templates
Users
root@freenas:/mnt/volJail1 # pwd
/mnt/volJail1
root@freenas:/mnt/volJail1 # cd /mnt/mnt/volJail1/
root@freenas:/mnt/mnt/volJail1 # ls
iocage
root@freenas:/mnt/mnt/volJail1 #