11.1-U6 iocage issue

Status
Not open for further replies.

rfanch3r

Dabbler
Joined
Aug 16, 2015
Messages
34
Hi all, I attempted to run a script I found to build a nextcloud jail using iocage. Apparently it is not working in U6 and it wound up making random dirs all over the place so I attempted to clean it up and start over manually, I am having a hard time cleaning it up.

zfs list
Data/iocage 265M 26.7T 145K /mnt/iocage
Data/iocage/download 260M 26.7T 128K /mnt/iocage/download
Data/iocage/download/11.1-RELEASE 260M 26.7T 260M /mnt/iocage/download/11.1-RELEASE
Data/iocage/images 128K 26.7T 128K /mnt/iocage/images
Data/iocage/jails 128K 26.7T 128K /mnt/iocage/jails
Data/iocage/log 128K 26.7T 128K /mnt/iocage/log
Data/iocage/releases 4.70M 26.7T 128K /mnt/iocage/releases
Data/iocage/releases/11.1-RELEASE 4.58M 26.7T 128K /mnt/iocage/releases/11.1-RELEASE
Data/iocage/releases/11.1-RELEASE/root 4.45M 26.7T 4.45M /mnt/iocage/releases/11.1-RELEASE/root
Data/iocage/templates 128K 26.7T 128K /mnt/iocage/templates

root@FreeNasV2:~ # cd /mnt/iocage
root@FreeNasV2:/mnt/iocage # ls -la
total 0
drwxr-xr-x 3 root wheel 64 Nov 1 22:22 .
drwxr-xr-x 4 root wheel 192 Nov 1 22:22 ..
drwxr-xr-x 3 root wheel 64 Nov 1 22:22 download <-- thats all that is in there

iocage clean nextcloud
Usage: iocage clean [OPTIONS]

Error: Got unexpected extra argument (nextcloud)

iocage create -n nextcloud -r 11.1-RELEASE ip4_addr="vnet0|192.168.1.56/24" defaultrouter="192.168.1.1" vnet="on" allow_raw_sockets="1" boot="on" <-- If I change the name I get the same error
Fetching: 11.1-RELEASE

Extracting: base.txz...
dataset already exists

iocage list -t
Shows nothing

root@FreeNasV2:~ # iocage destroy nextcloud
This will destroy jail nextcloud
Are you sure? [y/N]: y
Partial UUID/NAME supplied, cannot check for dependant jails.

Proceed? [y/N]: y
jail 'nextcloud' not found!
root@FreeNasV2:~ # iocage fstab -e nextcloud
jail 'nextcloud' not found!


How do I get rid of the dataset and start over again? From what I read it should not do this, I mean this is how you make different jails right?
 

rfanch3r

Dabbler
Joined
Aug 16, 2015
Messages
34
Wow, no one has any answers to this? I cant be the only one running into this issue.
 

gt2416

Patron
Joined
Feb 4, 2018
Messages
262
Try
Code:
 iocage clean
to deactivate and destroy all iocage data.
 

tprelog

Patron
Joined
Mar 2, 2016
Messages
297
@rfanch3r All those directories and/or datasets inside the iocage dataset are normal.

iocage list -t only shows templates I dont think you would see anything with this command unless you manually created a template.

Try iocage list or iocage list -l to show standard jails or plugins that you have installed.

Also I dont use nextcloud but if that pluging script is using the 11.2-RELEASE I dont think it will work with FreeNAS 11.1 Im not sure that's the problem your having though.

As @gt2416 mentioned iocage clean will destroy ALL iocage datasets so caution with that command if you have any other iocage jails or plugins installed. Those will be destroyed as well.

iocage destroy plugin is used to remove a single plugin or jail however it has been my experience that a failed plugin install (at least in FreeNAS 11.2) with automatically destroy the created plugin anyways
 
Status
Not open for further replies.
Top