Unable to find template

Status
Not open for further replies.

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
Long story short, I got a notification that my backup nas was at 95% capacity so I went in to delete anything I didnt use. I accidentally deleted the standard plugin jail containing my Plex server on my main FreeNAS box.

Now Im comfortable recreating it, but I cant download the Jail again. It says the template doesnt exist.

In the shell "warden template list" returns nothing, yet I have 3 templates in the gui.

Im on the latest 9.3 - FreeNAS-9.3-STABLE-201509282017

Ive read a handful of threads, but im just lost and dont want to break anything else.

Threads of note -
https://forums.freenas.org/index.php?threads/jail-unable-to-find-template.36009/page-2
https://forums.freenas.org/index.php?threads/warden-templates.24910/#post-155110
 

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
Last edited:

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
EUREKA!

Code:
warden template create -nick 'NAMEOFSCREWEDUPTEMPLATE' -tar http://download.freenas.org/jails/9.3/x64/freenas-standard-9.3-RELEASE.tgz


Source : https://forums.freenas.org/index.ph...-plugin-installs-after-9-3-gui-upgrade.35613/

Now im sure that the database is still FUBARED, and id like to somehow clear the database, but I can work with this.

Does anyone know how to rebuild or clear that template database?
 
Last edited:

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
Now im sure that the database is still FUBARED, and id like to somehow clear the database, but I can work with this.

Does anyone know how to rebuild or clear that template database?

Anyone?
 

zoomzoom

Guru
Joined
Sep 6, 2015
Messages
677
I'm not sure under what circumstances others have encountered this error, however I did after having to offline the system zfs pool due to a bad cable and a bad disk. This caused the system dataset to auto switch to the next available and it appears this is where the problem began.

I solved it by first deleting the old warden template and then ran the command above in nick779's post
It's recommended to run the command from an ssh session, and not from the Web GUI shell. Once the command completes, reboot the server (this is crucial, as without the reboot, the error will continue to occur). Once back online, it should allow the plugins to be downloaded and installed without issue.
 

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
I'm not sure under what circumstances others have encountered this error, however I did after having to offline the system zfs pool due to a bad cable and a bad disk. This caused the system dataset to auto switch to the next available and it appears this is where the problem began.

I solved it by first deleting the old warden template and then ran the command above in nick779's post
It's recommended to run the command from an ssh session, and not from the Web GUI shell. Once the command completes, reboot the server (this is crucial, as without the reboot, the error will continue to occur). Once back online, it should allow the plugins to be downloaded and installed without issue.

Well im glad it worked out for you.

I wish someone from with more expertise could chime in of rebuilding the entire warden database though. Mine still hiccups every now and then when trying to make a new jail.
 
Status
Not open for further replies.
Top