Freenas 9.3 can't install plugins

Status
Not open for further replies.

Djole

Dabbler
Joined
Aug 6, 2013
Messages
13
Last night I updated to version 9.3, after that when I want to install some plugin (I tried transmission) I get the following error. Existing plugins and jails are working without any problems. I used the update package, uploaded via GUI.

Jan 6 15:33:58 freenas warden: Building new Jail... Please wait...
Jan 6 15:33:58 freenas warden: zfs clone Storage/jails/.warden-template-pluginjail@clean Storage/jails/transmission_1
Jan 6 15:33:58 freenas warden: ERROR: Failed creating clean ZFS base clone
Jan 6 15:33:58 freenas manage.py: [middleware.exceptions:38] [MiddlewareError: Failed to install plugin: cannot open 'Storage/jails/.warden-template-pluginjail@clean': dataset does not exist
ERROR: Failed creating clean ZFS base clone
]
 
D

dlavigne

Guest
Please create a bug report at bugs.freenas.org that includes the version you upgraded from and post the issue number here.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
How much RAM do you have? I saw this with someone I was doing a remote session with and they didn't have enough RAM and processes were terminating improperly causing the problem.
 

Djole

Dabbler
Joined
Aug 6, 2013
Messages
13
I have 24GB of RAM and 4x4TB RAIDZ setup.
 
Last edited:

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Please post the debug file on your system.
 

Djole

Dabbler
Joined
Aug 6, 2013
Messages
13
Here it is
 

Attachments

  • debug-freenas-20150107111938.tgz
    491.4 KB · Views: 466

Djole

Dabbler
Joined
Aug 6, 2013
Messages
13
I just notices that in the jail templates I have only VirtualBox 4.3.12, I remember there was a lot more before the upgrade
 

Simon Mackenzie

Dabbler
Joined
Aug 9, 2013
Messages
43
Same here after upgrading to the latest version of 9.3. Note version below. Tied to install a plugin but the install stopped at 4/4 75%. Closed the window and could see the jail but the was no installed plugin. Tried to delete the jail but it failed with this error posting.

Delete
Request Method: GET
Request URL: http://192.168.1.215/jails/delete/2
Software Version: FreeNAS-9.3-STABLE-201501090144
Exception Type: DoesNotExist
Exception Value:

Jail matching query does not exist

Exception Location: /usr/local/www/freenasUI/../freenasUI/jails/queryset.py in get, line 150
Server time: Sun, 11 Jan 2015 21:12:30 +1100
Traceback
Environment: Software Version: FreeNAS-9.3-STABLE-201501090144 Request Method: GET Request URL: http://192.168.1.215/jails/delete/2 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 157. 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/jails/views.py" in jail_delete 184. jail = models.Jails.objects.get(id=id) 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 150. raise self.model.DoesNotExist("Jail matching query does not exist") Exception Type: DoesNotExist at /jails/delete/2 Exception Value: Jail matching query does not exist

Request information
GET

No GET data
POST

No POST data
FILES

No FILES data
COOKIES
Variable Value
csrftoken 'fwgewWi1fVH6pXXU8CTuOF7SsdI4Nzmp'
sessionid '4go11pt9dr8xlwzd0b4ld7fh4g9batve'
fntreeSaveStateCookie 'root%2Croot%2F177%2Croot%2F179'
META
Variable Value
DOCUMENT_ROOT '/usr/local/etc/nginx/html'
REDIRECT_STATUS '200'
GATEWAY_INTERFACE 'CGI/1.1'
PATH_INFO u'/jails/delete/2'
SERVER_ADDR '192.168.1.215'
wsgi.input <flup.server.fcgi_base.InputStream object at 0x814f65790>
SERVER_NAME 'localhost'
HTTP_REFERER 'http://192.168.1.215/'
wsgi.url_scheme 'http'
REQUEST_URI '/jails/delete/2'
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded'
QUERY_STRING ''
REMOTE_ADDR '192.168.1.206'
HTTP_X_REQUESTED_WITH 'XMLHttpRequest'
REMOTE_PORT '55191'
CSRF_COOKIE u'fwgewWi1fVH6pXXU8CTuOF7SsdI4Nzmp'
REQUEST_METHOD 'GET'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
CONTENT_LENGTH ''
SERVER_PROTOCOL 'HTTP/1.1'
HTTP_USER_AGENT 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0'
HTTP_CONNECTION 'keep-alive'
HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.5'
HTTPS ''
SERVER_SOFTWARE 'nginx/1.6.2'
wsgi.multiprocess False
wsgi.run_once False
SERVER_PORT '80'
DOCUMENT_URI '/jails/delete/2'
CONTENT_TYPE 'application/x-www-form-urlencoded'
wsgi.version (1, 0)
HTTP_HOST '192.168.1.215'
wsgi.multithread True
HTTP_ACCEPT_ENCODING 'gzip, deflate'
HTTP_COOKIE 'csrftoken=fwgewWi1fVH6pXXU8CTuOF7SsdI4Nzmp; sessionid=4go11pt9dr8xlwzd0b4ld7fh4g9batve; fntreeSaveStateCookie=root%2Croot%2F177%2Croot%2F179'
SCRIPT_NAME u''
wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x814e83b50>
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
I have a very similar, but seemingly different issue and posted a new thread before I looked here. Sorry. My thread is here.

Cheers,
 

Djole

Dabbler
Joined
Aug 6, 2013
Messages
13
Now when I had some time to investigate, I saw that the 'pluginjail' template was corrupted or not installed correctly during the upgrade to 9.3. So I killed it with warden

Code:
warden template delete pluginjail


and reinstalled it

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


again and now it works. Since I am a bit of a newb on BSD I feel pretty proud of myself :)
 

Scharbag

Guru
Joined
Feb 1, 2012
Messages
620
Great information.
 

Osiris

Contributor
Joined
Aug 15, 2013
Messages
148
Very useful indeed. I tampered with the virtualbox template and had to delete it this way.
Took me hours to find your info, Djole.
Perhaps there should be an easy way to 're-fetch' the template anew.
 

mo100

Dabbler
Joined
Sep 24, 2011
Messages
12
Thanks Djole, very useful. Put me on the right path to fixing my problem which gave me similar error to yours.
In my case, my system had confused the location of the .warden-template-pluginjail. Most likely this happened during a recent movement of data onto new media.
I saw from
Code:
zfs list

I had a tank2/jails/.warden-template-pluginjail which was being mounted to my jails folder on tank1/jails. However
Code:
warden template list

knew of no such template.
I changed the mountpoint of my duplicate tank2/jails/.warden-template-pluginjail using
Code:
zfs set mountpoint=/tank2/jails/.warden-template-pluginjail tank2/jails/.warden-template-pluginjail

I still had an existing .warden-template-pluginjail in tank1/jails so i simply renamed this.
Then as a last step I used the command above to recreate the template:
Code:
warden template create -nick pluginjail -tar http://download.freenas.org/jails/9.3/x64/freenas-pluginjail-9.3-RELEASE.tgz

Everything is now installing great again. Many thanks!
 
Status
Not open for further replies.
Top