SOLVED Unable to create jail/plugin

Status
Not open for further replies.
Joined
Jun 13, 2013
Messages
25
I built a new freenas box from scratch (9.10 latest). Supermicro CSE-826E16-R500LPB + X8DTH-iF with 48GB RAM and Dual X5570, IT mode LSI 9211-8i. Swapped in the disks from my old box and imported the pool. All great until I tried to install some plugins.

I've tried:
  • Turn it off and on again :)
  • Delete jails dataset, create new one, assign it to the jails config
  • No DHCP on jails (this seems a bit hit and miss from reading other threads)
  • Added a jail template based on standard, then plugins from http://download.freenas.org/jails/10/x64/...
  • Tried the same for 9.3
If I try and create a plugin, it starts off fine then sits at the "creating template" stage for a very long time before giving "an error occurred".

If I try to create a jail, in basic mode it sits there and starts to download the template... Then gets bored and I get "unable to find template". If I create it from the advanced mode it starts to download the template, then it gets bored and "unable to find template" again.

The issue seems to be getting the template file downloaded. It crawls along - the timer goes down but the downloaded file size jumps up in tiny increments. That picture is after about 20 minutes... There's nothing wrong with the internet connection (I can download it from the URL manually fine) or the connection to the box. The attached shows the freenas gui after about 20 minutes from pressing the create button and a putty session to the same box doing a wget to the same URL after about 10 seconds.

Only thing I can see in the logs is the command to the warden template create :

Jun 7 15:52:48 freenas manage.py: [common.pipesubr:61] Popen()ing: /usr/local/bin/warden template create -tar 'http://download.freenas.org/jails/10/x64/freenas-standard-10.3-RELEASE.tgz' -nick 'plugin' -mtree 'http://download.freenas.org/jails/10/x64/freenas-standard-10.3-RELEASE.mtree'

then about 20 minutes later

Jun 7 16:17:24 freenas manage.py: [common.cmd:209] cmd_pipe.__init__: out = Creating ZFS /mnt/store/JLS/.warden-template-plugin dataset...
Jun 7 16:17:24 freenas manage.py: [common.cmd:209] cmd_pipe.__init__: out = zfs create -o mountpoint='/store/JLS/.warden-template-plugin' -p 'store/JLS/.warden-template-plugin'


followed by a load of lines with different files:

Jun 7 16:17:25 freenas manage.py: [common.cmd:211] cmd_pipe.__init__: err = x ./usr/ports/news/c-nocem/

before finally:

Jun 7 16:17:25 freenas manage.py: [common.warden:1070] Warden.__call: Failed with 'x ./

It's driving me mental - I'm considering just flattening the install and starting again!

Anyone any suggestions?
 

Attachments

  • Capture.PNG
    Capture.PNG
    153 KB · Views: 459
Joined
Jun 13, 2013
Messages
25
And I now can't delete the jail template - "The JailTemplate could not be changed because the data didn't validate."

:(
 

Attachments

  • error.PNG
    error.PNG
    265.3 KB · Views: 458

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Configure your networking correctly and it will probably work. Are you using static or dynamic ips? Make sure you set a gateway and nameservers and test by ping 8.8.8.8 and Google. Com
 
Joined
Jun 13, 2013
Messages
25
I was finally able to install plugins via the following method :

wget http://download.freenas.org/jails/10/x64/freenas-pluginjail-10.3-RELEASE.tgz
wget http://download.freenas.org/jails/10/x64/freenas-pluginjail-10.3-RELEASE.mtree

warden template create -tar freenas-pluginjail-10.3-RELEASE.tgz -nick 'pluginjail' -mtree freenas-pluginjail-10.3-RELEASE.mtree


This mimics what the initial stages of the plugin installation is trying to do. The jail template creation obviously takes a bit of time to do the untar and whatever else it does, but after that point I was able to install the plugins via the GUI, as the template was now there.

Very odd as to why the downloads didn't work when done via the warden command but were fine via wget.
 
Status
Not open for further replies.
Top