Drive containing jail died - removed zfs volume but plugin won't delete

Status
Not open for further replies.

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
Hi
Drive containing jail died BIOS Won't see it, it's a SD-> SATA card, I know I've ordered a 4GB USB3 flash drive

I removed zfs volume that was showing as unavailable

Now the plugin won't delete as it does not exist
Software Version: FreeNAS-9.1.0-RELEASE-x64 (dff7d13)
Exception Type: DoesNotExist
Exception Value:

Jail matching query does not exist

Exception Location: /usr/local/www/freenasUI/../freenasUI/jails/queryset.py in get, line 146
Server time: Sat, 10 Aug 2013 15:38:59 +0100

Environment:

Software Version: FreeNAS-9.1.0-RELEASE-x64 (dff7d13)
Request Method: POST
Request URL: http://freenas/admin/plugins/plugins/delete/1/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
109. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
165. 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
25. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in wrapper
158. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
91. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
89. response = view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py" in inner
140. return view(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in delete
623. mf.delete(events=events)
File "/usr/local/www/freenasUI/../freenasUI/plugins/forms.py" in delete
78. super(PluginsForm, self).delete(request=request, events=events)
File "/usr/local/www/freenasUI/../freenasUI/common/forms.py" in delete
67. self.instance.delete()
File "/usr/local/www/freenasUI/../freenasUI/plugins/models.py" in delete
117. jail = Jails.objects.get(jail_host=self.plugin_jail)
File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py" in get
143. return self.get_query_set().get(*args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/jails/queryset.py" in get
146. raise self.model.DoesNotExist("Jail matching query does not exist")

Exception Type: DoesNotExist at /admin/plugins/plugins/delete/1/
Exception Value: Jail matching query does not exist

Any ideas on how to fix this?
 

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
Yes same error

And on trying to delete mount points

Request Method: GET
Request URL: http://freenas/admin/jails/nullmountpoint/delete/1/
Software Version: FreeNAS-9.1.0-RELEASE-x64 (dff7d13)
Exception Type: AttributeError
Exception Value:
'NoneType' object has no attribute 'jail_host'
Exception Location: /usr/local/www/freenasUI/../freenasUI/jails/forms.py in __init__, line 724
Server time: Sat, 10 Aug 2013 20:54:56 +0100
Traceback

Environment:

Software Version: FreeNAS-9.1.0-RELEASE-x64 (dff7d13)
Request Method: GET
Request URL: http://freenas/admin/jails/nullmountpoint/delete/1/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
109. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
165. 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
25. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in wrapper
158. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
91. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
89. response = view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py" in inner
140. return view(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in delete
605. mf = mf(instance=instance)
File "/usr/local/www/freenasUI/../freenasUI/jails/forms.py" in __init__
724. jail_path = "%s/%s" % (self.jc.jc_path, self.jail.jail_host)

Exception Type: AttributeError at /admin/jails/nullmountpoint/delete/1/
Exception Value: 'NoneType' object has no attribute 'jail_host'
 

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
OK, and under Storage->Volumes there might still be the mountpoint (on which the jails should be installed), under this mountpoint there are the mountpoints of the jails, you have to delete these jail mointpoints from the gui
 

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
"I removed zfs volume that was showing as unavailable"

I already removed the mountpoint & the drive is physical out of the PC

Jails: No entry has been found

Looks like if you're hosting the jail on a drive and it dies then the system gets confused - I'll wait and see when I get the the new drive?

Alister
 

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
I'll wait till the USB3 drive arrives as I've 6TB of data on the box.

The back up file has the mount point in it as well

Hopefully a new jail drive will sort this out

I guess I should report this as a bug?
 

cbourner

Cadet
Joined
Jun 23, 2012
Messages
3
I am having a similar problem. I created a new boot image for FreeNAS 9.1 on a USB drive, switched it for the 8.3, and restored my configuration. Everything was fine, but the plugins would not start. I deleted MiniDLNA (the only plugin I actually want) but Transmission would not delete.

I have deleted the mount point for jails, and it seems like MiniDLNA is now reinstalling (taking ages, but ps -A shows stuff going on), but I can't get rid of Transmission.

Any ideas on how to clear this?
 

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
There are fixed for my issue in patch 1 apparently. The bug was Closed by William. I'd wait till then.
 

ndboost

Explorer
Joined
Mar 17, 2013
Messages
78
I have the same problem. Seems if you pull the storage from under the jail, you can't delete the jail.

I currently have a dead jail in offline mode on my install that I cant use or delete because of this storage issue.

My guess would be to add the storage with the same mount information back into the jail's config and then try to delete the jail.
 
Status
Not open for further replies.
Top