"Unable to Find Template" for plugin installs after 9.3 GUI upgrade

Status
Not open for further replies.

thirdgen89gta

Dabbler
Joined
May 5, 2014
Messages
32
Searched the forums and found quite a few threads, however none of them worked, or many of the threads left off without a solution.

I upgraded from Freenas 9.2 to 9.3 because I was having issues with the "Update" not working on the Plex plugin.

The GUI upgrade was successful and I am now running FreeNAS-9.3-STABLE-201506292332.

When that didn't fix the plex issue I decided I would install a second instance of the Plex plugin, and just migrate the Plex data folders to the new plugin and once everything was working delete the old. However, after the gui downloaded the plex plugin (step#1 of 6) it failed out with the following error.

Jul 21 19:21:10 freenas manage.py: [middleware.exceptions:38] [MiddlewareError: Unable to find template!]

I've read a few of the threads, from these forums, and others. And it seems that the most common reason for that error is when someone deletes the jail templates. I can still create jails, just not plugins.

A few people in different threads asked for the outputs from ZFS List, warden template list, and warden list. Here's the output, if someone needs further I will provide.

Code:
freenas# zfs list
NAME                                                       USED  AVAIL  REFER  MOUNTPOINT
freenas                                                   8.63T  5.40T   108M  /mnt/freenas
freenas-boot                                               524M  13.7G    31K  none
freenas-boot/ROOT                                          517M  13.7G    25K  none
freenas-boot/ROOT/Initial-Install                            1K  13.7G   508M  legacy
freenas-boot/ROOT/default                                  517M  13.7G   511M  legacy
freenas-boot/grub                                         6.79M  13.7G  6.79M  legacy
freenas/.system                                           40.0G  5.40T   307K  legacy
freenas/.system/configs-65b35f8836204d90b852e6e548acaf82   230K  5.40T   230K  legacy
freenas/.system/configs-f1ae6c68bbe041c7bb38cadeec088781   230K  5.40T   230K  legacy
freenas/.system/cores                                     3.98M  5.40T  3.98M  legacy
freenas/.system/perftest                                  40.0G  5.40T  40.0G  legacy
freenas/.system/rrd-65b35f8836204d90b852e6e548acaf82       230K  5.40T   230K  legacy
freenas/.system/rrd-f1ae6c68bbe041c7bb38cadeec088781       230K  5.40T   230K  legacy
freenas/.system/samba4                                     735K  5.40T   735K  legacy
freenas/.system/syslog-65b35f8836204d90b852e6e548acaf82   7.51M  5.40T  7.51M  legacy
freenas/.system/syslog-f1ae6c68bbe041c7bb38cadeec088781    441K  5.40T   441K  legacy
freenas/Media                                             7.94T  5.40T  7.62T  /mnt/freenas/Media
freenas/Software                                           291G  5.40T   291G  /mnt/freenas/Software
freenas/TimeCapsule                                        197G   303G   197G  /mnt/freenas/TimeCapsule
freenas/jails                                              177G  5.40T  86.4M  /mnt/freenas/jails
freenas/jails/.warden-template-pluginjail                  543M  5.40T   543M  none
freenas/jails/.warden-template-pluginjail--x64             819M  5.40T   807M  none
freenas/jails/.warden-template-standard                   2.21G  5.40T  2.21G  /mnt/freenas/jails/.warden-template-standard
freenas/jails/Test1                                       2.69M  5.40T  2.21G  /mnt/freenas/jails/Test1
freenas/jails/plexmediaserver_1                            173G  5.40T   154G  /mnt/freenas/jails/plexmediaserver_1
freenas#
freenas# warden template list
Jail Templates:
------------------------------
standard - FreeBSD  (amd64)
freenas#
freenas#
freenas# warden list
ID                       AUTOSTART    STATUS       TYPE       
---------------------------------------------------------------------------
Test1                    Enabled      Stopped      standard   
plexmediaserver_1        Enabled      Running      pluginjail 
freenas# 
 

thirdgen89gta

Dabbler
Joined
May 5, 2014
Messages
32
Just on the off chance. Could this be a permissions issue? What permissions should be on the jails folder, templates, and the individual installed plugin jails themselves. I assume root:wheel?
 

thirdgen89gta

Dabbler
Joined
May 5, 2014
Messages
32
I finally figured it out. My template was corrupt. When I tried to pull down the new 9.3 pluginjail template it errored out and listed a pluginjail with that name already existing. But the output from 'warden template list" had none in it.

I ran the following command to delete the plugin jail, then I had the warden download the new 9.3 pluginjail template. After which I was able to install plugins again from the GUI.

Code:
warden template delete pluginjail
warden template create -nick pluginjail -tar http://download.freenas.org/jails/9.3/x64/freenas-pluginjail-9.3-RELEASE.tgz
 

nick779

Contributor
Joined
Dec 17, 2014
Messages
189
I finally figured it out. My template was corrupt. When I tried to pull down the new 9.3 pluginjail template it errored out and listed a pluginjail with that name already existing. But the output from 'warden template list" had none in it.

I ran the following command to delete the plugin jail, then I had the warden download the new 9.3 pluginjail template. After which I was able to install plugins again from the GUI.

Code:
warden template delete pluginjail
warden template create -nick pluginjail -tar http://download.freenas.org/jails/9.3/x64/freenas-pluginjail-9.3-RELEASE.tgz


Just an FYI, This just saved my ass.

Was getting a Cannot find jail template error.
 

thirdgen89gta

Dabbler
Joined
May 5, 2014
Messages
32
Glad it worked for you. FreeNAS is my friend and though I didn't originally plan for the Plex plugin, I love it now. It runs 24/7 and I had to upgrade my CPU to handle the transcoding. It was originally a A4-4000. Now it can handle around 4 or 5 1080P transcoding jobs simultaneously without pause.

I love having my own personal Netflix I can watch anywhere in the world now.

When I couldn't get the Plex Plugin to work it was driving me up the wall.
 
Status
Not open for further replies.
Top