Cannot Create Jails from GUI or CLI FreeNAS 9.3

Status
Not open for further replies.

georgev

Cadet
Joined
Apr 21, 2013
Messages
3
Hi First time that I'm posting, however I ran into a problem that I cannot solve,

I have been running freenas from early ver 7 days and always found it to be rock solid through all the upgrades even with the latest iteration to 9.3. I was running mediabrowser quite successfully until I installed the upgrade "FreeNAS-9.3-STABLE-201505010007". After that mediabrowser refused to start with a system error that said the jail was "worldwritable" and refused to start. After reading through some threads it was pointed out that there could be an issue with ownership and execution permissions. I adjusted all the permissions to default 755 that did not seem to make a difference. I decided to delete that jail and recreate it. I tried to install the plugin from the gui and after downloading the plugin it errored out saying that it could not find a template. I manually installed all the templates that I could lay my hands on for both 9.2 and 9.3 and tried to create a jail from the gui. That did not work same error. In desperation I tried to create a jail from the CLI and captured the process see below. I analyzed some of the output and it seemed that there might might be a routing or DNS problem because it could not find some files that the script was calling. So ran:

[root@TempNAS] ~# nslookup google.com

Server: 192.231.203.132
Address: 192.231.203.132#53
resulted in 15 addresses along the following lines
Name: google.com
Address: 59.167.145.230

so all ok on that front

Checked the DNS's
[root@TempNAS] ~# cat /etc/resolv.conf
search local
nameserver 192.231.203.132
nameserver 192.231.203.3

all ok..

and checked my default gateway

[root@TempNAS] ~# netstat -rn
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 10.254.254.30 UGS 0 399425 bge0
10.254.254.0/24 link#1 U 0 293267 bge0
10.254.254.31 link#1 UHS 0 52 lo0
127.0.0.1 link#10 UH 0 77643 lo0
all ok..

Output below from creating a jail from the cli

[root@TempNAS] ~# warden create jail1
Fetching jail environment. This may take a while...
get_freebsd_file amd64/9.1-RELEASE/base.txz /mnt/Top-STOR2/plugs/.download/base.txz
/usr/local/share/warden/scripts/backend/createtemplate.sh: aria2c: not found
Trying ftp-archive...
fetch -o /mnt/Top-STOR2/plugs/.download/base.txz http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/9.1-RELEASE/base.txz
/mnt/Top-STOR2/plugs/.download/base.txz 100% of 57 MB 159 kBps 06m06s
===== 25% =====
get_freebsd_file amd64/9.1-RELEASE/doc.txz /mnt/Top-STOR2/plugs/.download/doc.txz
/usr/local/share/warden/scripts/backend/createtemplate.sh: aria2c: not found
Trying ftp-archive...
fetch -o /mnt/Top-STOR2/plugs/.download/doc.txz http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/9.1-RELEASE/doc.txz
/mnt/Top-STOR2/plugs/.download/doc.txz 100% of 1409 kB 116 kBps 00m12s
===== 50% =====
get_freebsd_file amd64/9.1-RELEASE/games.txz /mnt/Top-STOR2/plugs/.download/games.txz
/usr/local/share/warden/scripts/backend/createtemplate.sh: aria2c: not found
Trying ftp-archive...
fetch -o /mnt/Top-STOR2/plugs/.download/games.txz http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/9.1-RELEASE/games.txz
/mnt/Top-STOR2/plugs/.download/games.txz 100% of 1091 kB 75 kBps 00m15s
===== 75% =====
get_freebsd_file amd64/9.1-RELEASE/lib32.txz /mnt/Top-STOR2/plugs/.download/lib32.txz
/usr/local/share/warden/scripts/backend/createtemplate.sh: aria2c: not found
Trying ftp-archive...
fetch -o /mnt/Top-STOR2/plugs/.download/lib32.txz http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/9.1-RELEASE/lib32.txz
/mnt/Top-STOR2/plugs/.download/lib32.txz 100% of 9515 kB 200 kBps 00m48s
===== 100% =====
Creating ZFS /mnt/Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64 dataset...
zfs create -o mountpoint='/Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64' -p 'Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64'
ERROR: Failed extracting ZFS template environment
cannot open 'Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64': dataset does not exist
find: /mnt/Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64: No such file or directory
ERROR: Failed to create ZFS base dataset
ERROR: Failed create default template



Very desperate to get things working as before any , help or pointers will be appreciated
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
I think you modified the permissions of your plugs dataset and that is what broke everything. Did you fully delete the plugs dataset before you tried installing new plugins? Maybe there is still permissions problems.
 

georgev

Cadet
Joined
Apr 21, 2013
Messages
3
"SweetAndLow, Yesterday at 11:48 PM

I think you modified the permissions of your plugs dataset and that is what broke everything. Did you fully delete the plugs dataset before you tried installing new plugins? Maybe there is still permissions problems"


Hi Sweet 'n Low
thank you for responding
plugs is a completely new dataset that I created, I deleted the previous one and it also had a completely different name , ... used to be called "Jails"

as for the permissions pic below says everything


upload_2015-5-18_18-4-33.png


as well as the cli output
[root@TempNAS] /mnt/Top-STOR2/plugs# ls -l
total 49
drwxr-xr-x 4 root wheel 5 May 17 19:46 ./
drwxrwxr-x 5 root wheel 5 May 17 17:33 ../
drwxr-xr-x 2 root wheel 2 May 17 19:46 .download/
-rw-r--r-- 1 root wheel 0 May 17 19:45 .fbsd-aria-stat-amd64
drwxr-xr-x 5 root wheel 5 May 17 17:38 .warden-files-cache/
[root@TempNAS] /mnt/Top-STOR2/plugs#



It seems to try and create a dataset for the jail ... then fail to mount it as it is not there ??

Creating ZFS /mnt/Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64 dataset...
zfs create -o mountpoint='/Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64' -p 'Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64'
ERROR: Failed extracting ZFS template environment
cannot open 'Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64': dataset does not exist
find: /mnt/Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64: No such file or directory
ERROR: Failed to create ZFS base dataset
ERROR: Failed create default template


when I create it manually then run "warden create jail1"

it is not happy again ... see below

[root@TempNAS] /mnt/Top-STOR2/plugs# warden create jail1
Building new Jail... Please wait...
zfs clone Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64@clean Top-STOR2/plugs/jail1
cannot open 'Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64@clean': dataset does not exist
ERROR: Failed creating clean ZFS base clone

now it is looking for
cannot open 'Top-STOR2/plugs/.warden-template-9.1-RELEASE-amd64@clean': dataset does not exist

seems to be a permission issue just don't know where to find it

Stumped ... again.

Any ideas ??
 
Status
Not open for further replies.
Top