Deleted Jails dataset, cant fix or find templates

Status
Not open for further replies.
Joined
Apr 26, 2017
Messages
4
I'm running Freenas 9.10.2 U3

I had jails and plugins listing fine until i had some trouble with mineos, which ill detail that problem in a different thread since currently i cant even get jails to work.

So in my effort to clean slate my mineos jail, i deleted everything jails related, including the dataset.

So after deleting the jails dataset containing my one mineos-jail , jails stopped working, but by not working i mean "Unable too find template!" keeps happening.

So I both complete reinstalled freenas, and destroyed my entire volume and recreated it, rebooted after all of this. still getting "Unable too find template!"...

PRIOR to trying to completely wipe things:

I tried the solution where change the collections from whatever it was (i think it had /latest/9/ something in its name) to http://download.freenas.org/jails/10/x64/


I also tried this at one point:
https://bugs.pcbsd.org/issues/11055

i tried doing some stuff which I probably shouldn't have done like deleting the jails-containing dataset (mine named jails) and them rm -rf .warden folders and then destroying the dataset via shell followed by a reboot. I did this a number of times in-between the various solutions i tried.

i tried creating the template directly form the shell using this:

Code:
warden template create -nick standard-tar http://download.freenas.org/jails/10/x64/freenas-standard-10.3-RELEASE.tgz


which results in this:
Code:
Creating ZFS /mnt/vol0/jails/.warden-template-standard dataset...			   
zfs create -o mountpoint='/vol0/jails/.warden-template-standard' -p 'vol0/jails/
.warden-template-standard'													 
http://download.freenas.org/jails/10/x64/freenas-standard-10.3-RELEASE.tgz: No a
ddress record																   
ERROR: Failed extracting: http://download.freenas.org/jails/10/x64/freenas-stand
ard-10.3-RELEASE.tgz															
cannot open 'vol0/jails/.warden-template-standard': dataset does not exist	 
find: /mnt/vol0/jails/.warden-template-standard: No such file or directory	 
ERROR: Failed to create ZFS base dataset


I also tried creating the /mnt/vol0/jails/.warden-template-standard dataset in the GUI and then trying the command again
to which i get "ERROR: A template with this nickname already exists! "

Of course even with these error i go in the GUI and try to create a jail to see if it just "works", and same message still appears.

also in plugins i get "unexpected token < in JSON as position 0" but only sometimes.

I still find it weird that i destroyed my entire volume reinstalled freenas and still have this problem....
the md5sum on my CD iso and what ended up getting burned on the CD matched so i know its not that.


If i'm missing any obvious information from my post let me know. I hate to sound like a "Its not working! what do i do!" person who doesn't give any feedback or logs.

Also I don't have data on the volume yet so feel free to ask me to wipe everything and start over a third time.
 
Last edited:
Joined
Jul 10, 2016
Messages
521
After trying many things

As per the forum rules, please provide some more information so people can better help you.

What "many things" have you tried? What version of FreeNAS are you using? Does your system have network access?
Did you follow the instruction in the documentation on how to create a jail-dataset and jails? https://doc.freenas.org/9.10/jails.html
Are you trying to create a standard jail or a plug-in jail?
Etc...
 

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
Joined
Apr 26, 2017
Messages
4
As per the forum rules, please provide some more information so people can better help you.

What "many things" have you tried? What version of FreeNAS are you using? Does your system have network access?
Did you follow the instruction in the documentation on how to create a jail-dataset and jails? https://doc.freenas.org/9.10/jails.html
Are you trying to create a standard jail or a plug-in jail?
Etc...
Bah! somehow it slipped me to fill in all that information here when i had it all prepared for this post! I'll update my post with as much information i can provide in a little while.
 
Joined
Apr 26, 2017
Messages
4
*SNIP*

Okay I feel stupid, No idea what problem I had before i destroyed my volume and reinstall FreeNAS, but on my reinstall, i forgot to put in DNS addresses, so while i could ping ip addresses, i couldn't resolve any domains. hence why it couldnt obtain templates.

This will probably resolve my mineos issue but if not, I'll make a thread or post in reply to the thread about mineos the non plugin way.

Thanks guys.
 
Last edited:
Status
Not open for further replies.
Top