Unable to find template, cant install new jails

Status
Not open for further replies.

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
After trying to install a new jail or plugin in FreeNAS 9.10 i get the following error:
Code:
[middleware.exceptions:37] [MiddlewareError: Unable to find template!]


The last change i made is moving the jails to a new SSD volume with these commands:
https://forums.freenas.org/index.ph...-volume-to-new-ssd-volume.42105/#post-271740]

FreeNAS version:
FreeNAS-9.10.1 (d989edd) and FreeNAS-9.10-STABLE-201606072003 (696eba7)
Hardware: In Signature below.

This bug report would give the idea this bug has been fixed already:
https://bugs.freenas.org/issues/11013

I have not tried the solution (below) from the bug report, this cause it should have been fixed already and i am to afraid to break it even more by using this (maybe older) method. Can i try this fix?
Code:
1. rmdir /your/jail/root/.warden-template-standard
2. zfs list -t snapshot | grep '.warden-template-standard@clean'
3. If the previous command lists anything, delete that snapshot
4. cd /root
5. fetch https://raw.githubusercontent.com/freenas/freenas/master/src/freenas/etc/ix.rc.d/ix-warden
6. cp ix-warden /conf/base/etc/ix.rc.d/
7. cp ix-warden /etc/ix.rc.d/
8. At this point, go to the UI and create a jail, if all goes well, it should work


Is this the only way to fix this problem and is the fix still up to date?
I am a noob with command line codes so i am quite nervous about breaking the already running jails. Would this fix effect already existing jails?
 
Last edited:

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
After more investigation I removed all non relevant information from the initial post.
Hope anyone can tell me more.

Should I make a bug report for this?
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Can you ping 8.8.8.8 from your FreeNAS box?
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Yes I can
Code:
629 packets transmitted, 629 packets received, 0.0% packet loss                
round-trip min/avg/max/stddev = 7.727/13.337/32.921/3.308 ms  
 
Last edited:

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Do you have a .warden-template-standard folder in your jails dataset? Is there anything in it?
 

mbrunelli87

Explorer
Joined
Sep 17, 2016
Messages
65
I think I have a similar problem. Everytime I try to add a Jail, the system gives me this error:
"Jail matching query does not exist"

I searched on the web and they say it's related to the plugin template...do you have any clue?

Below you can find the error screen displayed by the system

Code:
Request Method:
POST
Request URL: http://10.0.0.5/admin/jails/jails/add/
Software Version: FreeNAS-9.10.1 (d989edd)
Exception Type: DoesNotExist
Exception Value:
Jail matching query does not exist
Exception Location: /usr/local/www/freenasUI/../freenasUI/jails/queryset.py in get, line 152
Server time: sab, 24 Set 2016 20:58:10 +0200


Code:
Environment:

Software Version: FreeNAS-9.10.1 (d989edd)
Request Method: POST
Request URL: http://10.0.0.5/admin/jails/jails/add/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  105.  response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
  156.  return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.  return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in wrapper
  209.  return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  99.  response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  52.  response = view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py" in inner
  142.  return view(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in add
  365.  mf.save()
File "/usr/local/www/freenasUI/../freenasUI/jails/forms.py" in save
  492.  self.instance = Jails.objects.get(jail_host=jail_host)
File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py" in get
  151.  return self.get_queryset().get(*args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/jails/queryset.py" in get
  152.  raise self.model.DoesNotExist("Jail matching query does not exist")

Exception Type: DoesNotExist at /admin/jails/jails/add/
Exception Value: Jail matching query does not exist


Code:
GET
No GET data

POST
Variable Value
jail_vnet u'on'
jail_bridge_ipv4 u''
jail_bridge_ipv6 u''
jail_ipv6 u''
jail_bridge_ipv6_prefix u''
jail_ipv4 u'10.0.0.6'
jail_host u'aMule'
jail_bridge_ipv4_netmask u''
jail_autostart u'on'
jail_mac u''
jail_type u''
jail_flags u''
jail_ipv4_netmask u'24'
__form_id u'dialogForm_jails'
jail_defaultrouter_ipv4 u''
jail_ipv6_prefix u''
jail_defaultrouter_ipv6 u''
__all__ u''
FILES
No FILES data

COOKIES
Variable Value
sessionid '7afwwi8ersmqk5r4knrmmy4qsvm84w3l'
fntreeSaveStateCookie 'root%2Croot%2F186%2Croot%2F214%2Croot%2F206%2Croot%2F202%2Croot%2F55%2F56%2Croot%2F55%2F56%2F57%2Croot%2F55%2F56%2F57%2F94%2Croot%2F1%2Croot%2F1%2F6%2Croot%2F163%2F169%2Croot%2F163%2F169%2F171%2Croot%2F1%2F2%2Croot%2F178%2F196%2F198%2Croot%2F178%2F202%2Croot%2F178%2F202%2F204%2Croot%2F1%2F7%2Croot%2F189%2Croot%2F24%2F25%2Croot%2F24%2F28%2Croot%2F24%2F31%2Croot%2F24%2F34%2Croot%2F38%2F40%2Croot%2F38%2F45%2Croot%2F38%2F49%2Croot%2F38%2F52%2Croot%2F134%2F135%2Croot%2F134%2F138%2Croot%2F134%2F141%2Croot%2F134%2F145%2Croot%2F134%2F148%2Croot%2F193%2F199%2Croot%2F193%2F205%2Croot%2F193%2F211%2Croot%2F193%2F217%2Croot%2F134%2F148%2F150%2Croot%2F134%2F148%2F153%2Croot%2F134%2F148%2F156%2Croot%2F134%2F148%2F159%2Croot%2F134%2F148%2F162%2Croot%2F134%2F148%2F165%2Croot%2F168%2F178%2F180%2Croot%2F193%2F199%2F201%2Croot%2F193%2F205%2F207%2Croot%2F193%2F211%2F213%2Croot%2F193%2F217%2F219%2Croot%2F55%2F56%2F57%2F58%2Croot%2F55%2F56%2F57%2F82%2Croot%2F55%2F110%2Croot%2F55%2F115%2Croot%2F55%2F118%2Croot%2F55%2F121%2Croot%2F55%2F56%2F57%2F58%2F59%2Croot%2F55%2F56%2F57%2F58%2F63%2Croot%2F55%2F56%2F57%2F58%2F67%2Croot%2F55%2F56%2F57%2F58%2F71%2Croot%2F55%2F56%2F57%2F58%2F75%2Croot%2F55%2F56%2F57%2F82%2F83%2Croot%2F55%2F56%2F57%2F82%2F87%2Croot%2F55%2F56%2F57%2F82%2F91%2Croot%2F55%2F56%2F57%2F82%2F95%2Croot%2F1%2F5%2Croot%2F57%2Croot%2F167%2F173%2Croot%2F167%2F173%2F175%2Croot%2F185%2Croot%2F178%2Croot%2F182%2Croot%2F174%2Croot%2F172%2Croot%2F194%2Croot%2F176%2Croot%2F184%2Croot%2F188%2Croot%2F153%2Croot%2F155%2Croot%2F192%2Croot%2F190%2Croot%2F198%2F210%2F212%2Croot%2F198%2F204%2Croot%2F198%2F217%2Croot%2F56%2F57%2Croot%2F56%2F57%2F58'
csrftoken 'wWPFSNfB3pcHvAITBELdsyOkudR7C95V'
META
Variable Value
SERVER_ADDR '10.0.0.5'
HTTP_ACCEPT_LANGUAGE 'it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3'
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
DOCUMENT_URI '/admin/jails/jails/add/'
HTTP_REFERER 'http://10.0.0.5/'
wsgi.input <flup.server.fcgi_base.InputStream object at 0x818c18490>
SCRIPT_NAME u''
SERVER_SOFTWARE 'nginx/1.8.1'
HTTP_X_CSRFTOKEN 'wWPFSNfB3pcHvAITBELdsyOkudR7C95V'
CSRF_COOKIE u'wWPFSNfB3pcHvAITBELdsyOkudR7C95V'
GATEWAY_INTERFACE 'CGI/1.1'
CONTENT_LENGTH '321'
HTTPS ''
SERVER_PROTOCOL 'HTTP/1.1'
PATH_INFO u'/admin/jails/jails/add/'
HTTP_HOST '10.0.0.5'
REQUEST_URI '/admin/jails/jails/add/'
wsgi.multithread True
REMOTE_PORT '56518'
HTTP_X_REQUESTED_WITH 'XMLHttpRequest'
wsgi.url_scheme 'http'
QUERY_STRING ''
HTTP_COOKIE 'csrftoken=wWPFSNfB3pcHvAITBELdsyOkudR7C95V; sessionid=7afwwi8ersmqk5r4knrmmy4qsvm84w3l; fntreeSaveStateCookie=root%2Croot%2F186%2Croot%2F214%2Croot%2F206%2Croot%2F202%2Croot%2F55%2F56%2Croot%2F55%2F56%2F57%2Croot%2F55%2F56%2F57%2F94%2Croot%2F1%2Croot%2F1%2F6%2Croot%2F163%2F169%2Croot%2F163%2F169%2F171%2Croot%2F1%2F2%2Croot%2F178%2F196%2F198%2Croot%2F178%2F202%2Croot%2F178%2F202%2F204%2Croot%2F1%2F7%2Croot%2F189%2Croot%2F24%2F25%2Croot%2F24%2F28%2Croot%2F24%2F31%2Croot%2F24%2F34%2Croot%2F38%2F40%2Croot%2F38%2F45%2Croot%2F38%2F49%2Croot%2F38%2F52%2Croot%2F134%2F135%2Croot%2F134%2F138%2Croot%2F134%2F141%2Croot%2F134%2F145%2Croot%2F134%2F148%2Croot%2F193%2F199%2Croot%2F193%2F205%2Croot%2F193%2F211%2Croot%2F193%2F217%2Croot%2F134%2F148%2F150%2Croot%2F134%2F148%2F153%2Croot%2F134%2F148%2F156%2Croot%2F134%2F148%2F159%2Croot%2F134%2F148%2F162%2Croot%2F134%2F148%2F165%2Croot%2F168%2F178%2F180%2Croot%2F193%2F199%2F201%2Croot%2F193%2F205%2F207%2Croot%2F193%2F211%2F213%2Croot%2F193%2F217%2F219%2Croot%2F55%2F56%2F57%2F58%2Croot%2F55%2F56%2F57%2F82%2Croot%2F55%2F110%2Croot%2F55%2F115%2Croot%2F55%2F118%2Croot%2F55%2F121%2Croot%2F55%2F56%2F57%2F58%2F59%2Croot%2F55%2F56%2F57%2F58%2F63%2Croot%2F55%2F56%2F57%2F58%2F67%2Croot%2F55%2F56%2F57%2F58%2F71%2Croot%2F55%2F56%2F57%2F58%2F75%2Croot%2F55%2F56%2F57%2F82%2F83%2Croot%2F55%2F56%2F57%2F82%2F87%2Croot%2F55%2F56%2F57%2F82%2F91%2Croot%2F55%2F56%2F57%2F82%2F95%2Croot%2F1%2F5%2Croot%2F57%2Croot%2F167%2F173%2Croot%2F167%2F173%2F175%2Croot%2F185%2Croot%2F178%2Croot%2F182%2Croot%2F174%2Croot%2F172%2Croot%2F194%2Croot%2F176%2Croot%2F184%2Croot%2F188%2Croot%2F153%2Croot%2F155%2Croot%2F192%2Croot%2F190%2Croot%2F198%2F210%2F212%2Croot%2F198%2F204%2Croot%2F198%2F217%2Croot%2F56%2F57%2Croot%2F56%2F57%2F58'
CONTENT_TYPE 'application/x-www-form-urlencoded'
DOCUMENT_ROOT '/usr/local/etc/nginx/html'
wsgi.run_once False
wsgi.version (1, 0)
SERVER_NAME 'localhost'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0'
REMOTE_ADDR '10.0.0.16'
SERVER_PORT '80'
HTTP_ACCEPT_ENCODING 'gzip, deflate'
wsgi.multiprocess False
wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x818c18590>
HTTP_CONTENT_LENGTH '321'
REDIRECT_STATUS '200'
REQUEST_METHOD 'POST'
HTTP_CONNECTION 'keep-alive'
 
Last edited by a moderator:

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Sakuru, yes I do have that. There is 1.6g of data in it.
 
Last edited:

mbrunelli87

Explorer
Joined
Sep 17, 2016
Messages
65
Hi guys, I think I will perform a fresh Freenas install from scratch since I don't want to lose time fixing stuff...but I will take a look at the discussion because it's not the first time that I encounter this issue
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
@Johannez
Please provide the output of zfs list in [CODE] tags.
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Sakuru,

FreeNAS 1:
Code:
NAME                                                               USED  AVAIL  REFER  MOUNTPOINT                                 
Volume1                                                           10.0T  4.01T   192K  /mnt/Volume1                               
Volume1/F1Volume1                                                 9.87T  4.01T  9.87T  /mnt/Volume1/F1Volume1                     
Volume1/Qnap Backup M-J                                            160G  4.01T   160G  /mnt/Volume1/Qnap Backup M-J               
Volume1x320G                                                      36.9M   287G    96K  /mnt/Volume1x320G                         
Volume1x320G/Downloads-Torrents                                    356K   287G   356K  /mnt/Volume1x320G/Downloads-Torrents       
Volume2SSD                                                        9.06G   214G    96K  /mnt/Volume2SSD                           
Volume2SSD/.system                                                7.61M   214G   104K  legacy                                     
Volume2SSD/.system/configs-f1ae6c68bbe041c7bb38cadeec088781       1.57M   214G  1.57M  legacy                                     
Volume2SSD/.system/cores                                          4.75M   214G  4.75M  legacy                                     
Volume2SSD/.system/rrd-f1ae6c68bbe041c7bb38cadeec088781             96K   214G    96K  legacy                                     
Volume2SSD/.system/samba4                                          368K   214G   368K  legacy                                     
Volume2SSD/.system/syslog-f1ae6c68bbe041c7bb38cadeec088781         756K   214G   756K  legacy                                     
Volume2SSD/Mountpoints                                              96K  9.91M    96K  /mnt/Volume2SSD/Mountpoints               
Volume2SSD/NZBDownloads                                           6.47M   150G  6.47M  /mnt/Volume2SSD/NZBDownloads               
Volume2SSD/jails                                                  9.03G   214G  22.6M  /mnt/Volume2SSD/jails                     
Volume2SSD/jails/.warden-template-pluginjail                       470M   214G  3.30M  /mnt/Volume3x1TB/jails/.warden-template-plugi
njail                                                                                                                             
Volume2SSD/jails/.warden-template-pluginjail--x64                  452M   214G   449M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail--x64                                                                                                                         
Volume2SSD/jails/.warden-template-pluginjail--x64-20150826130529   449M   214G   449M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail--x64-20150826130529                                                                                                         
Volume2SSD/jails/.warden-template-pluginjail--x64-20150829230801   449M   214G   449M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail--x64-20150829230801                                                                                                         
Volume2SSD/jails/.warden-template-pluginjail--x64-20150922054624   456M   214G   449M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail--x64-20150922054624                                                                                                         
Volume2SSD/jails/.warden-template-pluginjail-9.3-x64               450M   214G  2.96M  /mnt/Volume3x1TB/jails/.warden-template-plugi
njail-9.3-x64                                                                                                                     
Volume2SSD/jails/.warden-template-standard                        1.61G   214G  3.73M  /mnt/Volume3x1TB/jails/.warden-template-stand
ard                                                                                                                               
Volume2SSD/jails/.warden-template-standard--x64                   1.58G   214G  1.58G  /mnt/Volume2SSD/jails/.warden-template-standa
rd--x64                                                                                                                           
Volume2SSD/jails/.warden-template-standard-9.3-x64                1.62G   214G  1.57G  none                                       
Volume2SSD/jails/PlexPy                                            257M   214G  1.68G  /mnt/Volume2SSD/jails/PlexPy               
Volume2SSD/jails/PlexPyRon                                         262M   214G  1.77G  /mnt/Volume2SSD/jails/PlexPyRon           
Volume2SSD/jails/couchpotato_1                                     148M   214G   614M  /mnt/Volume2SSD/jails/couchpotato_1       
Volume2SSD/jails/customplugin_1                                    179M   214G   624M  /mnt/Volume2SSD/jails/customplugin_1       
Volume2SSD/jails/sickrage_1                                        539M   214G   984M  /mnt/Volume2SSD/jails/sickrage_1           
Volume2SSD/jails/transmission_1                                    187M   214G   633M  /mnt/Volume2SSD/jails/transmission_1       
freenas-boot                                                       616M  13.7G    31K  none                                       
freenas-boot/ROOT                                                  609M  13.7G    25K  none                                       
freenas-boot/ROOT/Initial-Install                                    1K  13.7G   593M  legacy                                     
freenas-boot/ROOT/default                                          609M  13.7G   602M  legacy                                     
freenas-boot/grub                                                 6.50M  13.7G  6.50M  legacy

FreeNAS2:
Code:
NAME                                                       USED  AVAIL  REFER  MOUNTPOINT                                         
Volume1                                                   42.3G  71.0G    96K  /mnt/Volume1                                       
Volume1/.system                                           3.84M  71.0G   104K  legacy                                             
Volume1/.system/configs-c4a93aaf1c9442ea828ddc7efa630359  1.39M  71.0G  1.39M  legacy                                             
Volume1/.system/cores                                     1.00M  71.0G  1.00M  legacy                                             
Volume1/.system/rrd-c4a93aaf1c9442ea828ddc7efa630359        96K  71.0G    96K  legacy                                             
Volume1/.system/samba4                                     340K  71.0G   340K  legacy                                             
Volume1/.system/syslog-c4a93aaf1c9442ea828ddc7efa630359    936K  71.0G   936K  legacy                                             
Volume1/jails                                             42.3G  71.0G  29.2M  /mnt/Volume1/jails                                 
Volume1/jails/.warden-template-pluginjail                  469M  71.0G   469M  /mnt/SSD/jails/.warden-template-pluginjail         
Volume1/jails/.warden-template-standard                   1.62G  71.0G  1.62G  /mnt/SSD/jails/.warden-template-standard           
Volume1/jails/PlexMail                                     333M  71.0G  1.72G  /mnt/Volume1/jails/PlexMail                       
Volume1/jails/PlexPyF2                                     346M  71.0G  1.86G  /mnt/Volume1/jails/PlexPyF2                       
Volume1/jails/PlexRequests2                                511M  71.0G  1.89G  /mnt/Volume1/jails/PlexRequests2                   
Volume1/jails/plexmediaserver_1                           39.0G  71.0G  39.5G  /mnt/Volume1/jails/plexmediaserver_1               
Volume2                                                   39.3G  1.71T  25.4K  /mnt/Volume2                                       
Volume2/jails                                             39.3G  1.71T  22.4M  /mnt/Volume2/jails                                 
Volume2/jails/.warden-template-pluginjail                  418M  1.71T   418M  /mnt/SSD/jails/.warden-template-pluginjail         
Volume2/jails/.warden-template-standard                   1.01G  1.71T  1.01G  /mnt/SSD/jails/.warden-template-standard           
Volume2/jails/PlexMail                                     295M  1.71T  1.10G  /mnt/Volume2/jails/PlexMail                       
Volume2/jails/PlexPyF2                                     324M  1.71T  1.24G  /mnt/Volume2/jails/PlexPyF2                       
Volume2/jails/PlexRequests2                                469M  1.71T  1.27G  /mnt/Volume2/jails/PlexRequests2                   
Volume2/jails/plexmediaserver_1                           36.8G  1.71T  37.2G  /mnt/Volume2/jails/plexmediaserver_1               
Volume3                                                   17.6T  2.33T   205K  /mnt/Volume3                                       
Volume3/F2Volume3                                         17.6T  2.33T  17.6T  /mnt/Volume3/F2Volume3                             
freenas-boot                                               931M  13.5G    31K  none                                               
freenas-boot/ROOT                                          917M  13.5G    25K  none                                               
freenas-boot/ROOT/9.10.1                                   917M  13.5G   628M  /                                                 
freenas-boot/ROOT/Initial-Install                            1K  13.5G   594M  legacy                                             
freenas-boot/ROOT/default                                  254K  13.5G   594M  legacy                                             
freenas-boot/grub                                         12.7M  13.5G  6.33M  legacy

When looking over this output i see the templates are not moved, there still on the old location which does not exist anymore.

FreeNAS1:
Code:
Volume2SSD/jails/.warden-template-pluginjail                       470M   214G  3.30M  /mnt/Volume3x1TB/jails/.warden-template-plugi
njail      
Volume2SSD/jails/.warden-template-pluginjail-9.3-x64               450M   214G  2.96M  /mnt/Volume3x1TB/jails/.warden-template-plugi
njail-9.3-x64                                                                                                                     
Volume2SSD/jails/.warden-template-standard                        1.61G   214G  3.73M  /mnt/Volume3x1TB/jails/.warden-template-stand
ard


FreeNAS2:
Code:
Volume1/jails/.warden-template-pluginjail                  469M  71.0G   469M  /mnt/SSD/jails/.warden-template-pluginjail          
Volume1/jails/.warden-template-standard                   1.62G  71.0G  1.62G  /mnt/SSD/jails/.warden-template-standard

This is a remote back-up of my jails where it also refers to a wrong location:
Code:
Volume2/jails/.warden-template-pluginjail                  418M  1.71T   418M  /mnt/SSD/jails/.warden-template-pluginjail          
Volume2/jails/.warden-template-standard                   1.01G  1.71T  1.01G  /mnt/SSD/jails/.warden-template-standard


Thank you for helping out ! Really appreciated.
 
Last edited:

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
How can I point FreeNAS to the correct template locations?
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Try running zfs inherit mountpoint on those datasets to see if it fixes their mountpoints.
Code:
zfs inherit mountpoint Volume2SSD/jails/.warden-template-pluginjail
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Hi Sakuru,

Thank you for your reply, that specific command did not fix the problem, the same error remains.

I found this older bug report from 2 years ago, the problem is the same and should have been fixed already but hasn't.
https://bugs.freenas.org/issues/6077

Should i use the "inherit command" like explained here:
http://docs.oracle.com/cd/E19253-01/819-5461/ghnoq/index.html

I hope avoiding messing up the mountpoints more then they are already.

Hope to hear your thoughts.

Thank you.
 
Last edited:

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
FreeNAS1:
Code:
zfs set mountpoint=/mnt/Volume2SSD/jails/.warden-template-pluginjail Volume2SSD/jails/.warden-template-pluginjail
zfs set mountpoint=/mnt/Volume2SSD/jails/.warden-template-pluginjail-9.3-x64 Volume2SSD/jails/.warden-template-pluginjail-9.3-x64
zfs set mountpoint=/mnt/Volume2SSD/jails/.warden-template-standard Volume2SSD/jails/.warden-template-standard


FreeNAS2:
Code:
zfs set mountpoint=/mnt/Volume1/jails/.warden-template-pluginjail Volume1/jails/.warden-template-pluginjail
zfs set mountpoint=/mnt/Volume1/jails/.warden-template-standard Volume1/jails/.warden-template-standard
zfs set mountpoint=/mnt/Volume2/jails/.warden-template-pluginjail Volume2/jails/.warden-template-pluginjail
zfs set mountpoint=/mnt/Volume2/jails/.warden-template-standard Volume2/jails/.warden-template-standard
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Both does not change it. damn.
Should i use zfs inherit -r first or does this not apply for this problem?
 
Last edited by a moderator:

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
In the bug report https://bugs.freenas.org/issues/6077
The following solution is given, would you or anyone else know how i have to fill this line of code with my information? I haven't seen a confirmation if this should work anyone familiar with this code?
Code:
zfs get -rH -o name -s received mountpoint destination_dataset | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};" 
Run that (through ssh) after any replication, and it will fix up the mountpoint in any destination dataset when necessary.
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
You may have to run zfs mount -a for the new mountpoints to take effect. Either that, or reboot :)
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Sakuru,

After using the code i got a correct zfs list output:
Code:
								
NAME															   USED  AVAIL  REFER  MOUNTPOINT								   
Volume1														   10.1T  3.94T   192K  /mnt/Volume1								 
Volume1/F1Volume1												 9.94T  3.94T  9.94T  /mnt/Volume1/F1Volume1					   
Volume1/Qnap Backup M-J											160G  3.94T   160G  /mnt/Volume1/Qnap Backup M-J				 
Volume1x320G													  37.0M   287G	96K  /mnt/Volume1x320G							
Volume1x320G/Downloads-Torrents									356K   287G   356K  /mnt/Volume1x320G/Downloads-Torrents		 
Volume2SSD														13.4G   209G	96K  /mnt/Volume2SSD							 
Volume2SSD/.system												10.7M   209G  1.53M  legacy									   
Volume2SSD/.system/configs-f1ae6c68bbe041c7bb38cadeec088781	   2.09M   209G  2.09M  legacy									   
Volume2SSD/.system/cores										  4.75M   209G  4.75M  legacy									   
Volume2SSD/.system/rrd-f1ae6c68bbe041c7bb38cadeec088781			 96K   209G	96K  legacy									   
Volume2SSD/.system/samba4										  392K   209G   392K  legacy									   
Volume2SSD/.system/syslog-f1ae6c68bbe041c7bb38cadeec088781		1.86M   209G  1.86M  legacy									   
Volume2SSD/Mountpoints											  96K  9.91M	96K  /mnt/Volume2SSD/Mountpoints				 
Volume2SSD/NZBDownloads										   4.38G   146G  4.38G  /mnt/Volume2SSD/NZBDownloads				 
Volume2SSD/jails												  9.04G   209G  25.7M  /mnt/Volume2SSD/jails						
Volume2SSD/jails/.warden-template-pluginjail					   470M   209G  3.30M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail																																
Volume2SSD/jails/.warden-template-pluginjail--x64				  452M   209G   449M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail--x64																														   
Volume2SSD/jails/.warden-template-pluginjail--x64-20150826130529   449M   209G   449M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail--x64-20150826130529																											
Volume2SSD/jails/.warden-template-pluginjail--x64-20150829230801   449M   209G   449M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail--x64-20150829230801																											
Volume2SSD/jails/.warden-template-pluginjail--x64-20150922054624   456M   209G   449M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail--x64-20150922054624																											
Volume2SSD/jails/.warden-template-pluginjail-9.3-x64			   450M   209G  2.96M  /mnt/Volume2SSD/jails/.warden-template-plugin
jail-9.3-x64																														
Volume2SSD/jails/.warden-template-standard						1.61G   209G  3.73M  /mnt/Volume2SSD/jails/.warden-template-standa
rd																																 
Volume2SSD/jails/.warden-template-standard--x64				   1.58G   209G  1.58G  /mnt/Volume2SSD/jails/.warden-template-standa
rd--x64																															 
Volume2SSD/jails/.warden-template-standard-9.3-x64				1.62G   209G  1.57G  /mnt/Volume2SSD/jails/.warden-template-standa
rd-9.3-x64																														 
Volume2SSD/jails/PlexPy											258M   209G  1.68G  /mnt/Volume2SSD/jails/PlexPy				 
Volume2SSD/jails/PlexPyRon										 264M   209G  1.77G  /mnt/Volume2SSD/jails/PlexPyRon			 
Volume2SSD/jails/couchpotato_1									 151M   209G   616M  /mnt/Volume2SSD/jails/couchpotato_1		 
Volume2SSD/jails/customplugin_1									179M   209G   624M  /mnt/Volume2SSD/jails/customplugin_1		 
Volume2SSD/jails/sickrage_1										541M   209G   986M  /mnt/Volume2SSD/jails/sickrage_1			 
Volume2SSD/jails/transmission_1									189M   209G   634M  /mnt/Volume2SSD/jails/transmission_1		 
freenas-boot													   619M  13.7G	31K  none										 
freenas-boot/ROOT												  612M  13.7G	25K  none										 
freenas-boot/ROOT/Initial-Install									1K  13.7G   593M  legacy									   
freenas-boot/ROOT/default										  612M  13.7G   606M  legacy									   
freenas-boot/grub												 6.50M  13.7G  6.50M  legacy   
	
(on a side note, whatever i try i dont get the above tekst sorted correctly).

But on creating a jail or trying to install a plugin the error remains.
Code:
[middleware.exceptions:37] [MiddlewareError: Unable to find template!]
 
Last edited:

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Update:

Been trying for help in bug report, but have not solution yet.
It is clearly the same problem as:
https://bugs.freenas.org/issues/6077
https://bugs.freenas.org/issues/11013

After the mount point set to the correct locations i did removed the ghost volume which i detached already and removed, this one where still visible with SSH.

After rebooting and trying some light changes (to afraid to break it cause i am not common with the command line) only the ghost volume disappeared but i keep getting the same error
Code:
[middleware.exceptions:37] [MiddlewareError: Unable to find template!]

The Templates are there on the correct locations and mount points do point to them only FreeNAS is unable to find them...
 
Status
Not open for further replies.
Top