MiddlewareError: Volume could not be imported: 2 devices failed to decrypt

Status
Not open for further replies.

KuanYin

Cadet
Joined
Apr 19, 2018
Messages
5
Hi,

I think I'm borked....

My FreeNas told me 1 HDD (a new one from amazon...) had write errors.
Since it was my last spare I had to order a new one (I run 12x 3TB + SSD Cache + 1 TB HDD where the Dataset is)

I shutdown the nas and replaced the HDD - booted and got the error below. I was WTF... replaced it back booted again and same error when trying to mount.

In my Drivelist the one with the write errors is not part of the set (anymore) since it reset the HDD Standby time etc...
so that is the 1st drive it cant find....

but why is the error telling me 2 drives not found.

At the moment it is the "faulty" setup with the new HDD not in the nas.


The Question now: Am I completly borked or is there a way to mount degraded with 1 missing and swap the hdd and resilver then find the 2nd apparently faulty hdd and replace that as well.?

Drive list shows boot SSD, Cache SSD, Dataset HDD and 11x HDD part of the set and one HDD outside..

I appreciate any help!

The error I get:
Environment:

Software Version: FreeNAS-11.1-U2 (c636d1f4b)
Request Method: POST
Request URL: http://192.168.236.50/storage/volume/1/unlock/?X-Progress-ID=0b722a7a-d7c0-49c6-8088-8c4d89c54ec7


Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/storage/views.py" in volume_unlock
1021. form.done(volume=volume)
File "./freenasUI/storage/forms.py" in done
2822. raise MiddlewareError(msg)

Exception Type: MiddlewareError at /storage/volume/1/unlock/
Exception Value: [MiddlewareError: Volume could not be imported: 2 devices failed to decrypt]
 
D

dlavigne

Guest
Were you able to resolve this? If not, paste the output of zpool status within code tags.
 

KuanYin

Cadet
Joined
Apr 19, 2018
Messages
5
Nope, it's shutdown since then.

zpool status only showed my Dataset and my Boot, not the encrypted pool i was trying to mount.
 

KuanYin

Cadet
Joined
Apr 19, 2018
Messages
5
here in plain text...

[root@Skyrim ~]# zpool status
pool: dataset1tb
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:20 with 0 errors on Sun Apr 15 00:00:20 2018
config:

NAME STATE READ WRITE CKSUM
dataset1tb ONLINE 0 0 0
gptid/8c1d1572-2477-11e8-9400-001e671e54a9 ONLINE 0 0 0

errors: No known data errors

pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:15 with 0 errors on Sun Apr 15 03:45:15 2018
config:

NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
ada1p2 ONLINE 0 0 0

errors: No known data errors
[root@Skyrim ~]#
 

KuanYin

Cadet
Joined
Apr 19, 2018
Messages
5
Another Update: out of curiosity i've installed the old failed hdd (prio to the issue above) - How can I force mount the Set with 1 HDD missing now? and where do I find out which HDD (SN) fails to decrypt?

Environment:

Software Version: FreeNAS-11.1-U2 (c636d1f4b)
Request Method: POST
Request URL: http://192.168.236.50/storage/volume/1/unlock/?X-Progress-ID=a31b4fb6-41c1-4136-87b0-dd65b09666de


Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/storage/views.py" in volume_unlock
1021. form.done(volume=volume)
File "./freenasUI/storage/forms.py" in done
2822. raise MiddlewareError(msg)

Exception Type: MiddlewareError at /storage/volume/1/unlock/
Exception Value: [MiddlewareError: Volume could not be imported: 1 devices failed to decrypt]

shutting it down again since i do not want Freenas to do smth in the background to the disks,


thanks
 

Fr33nasnoobi3

Dabbler
Joined
Mar 11, 2017
Messages
19
this is very interesting I literally just started having a very similar issue (if not the same) but i didn't replace any hard drives and had no warnings of one going bad (on the volume that wont unlock i have data1 thats encrypted and data2 that has things that dont matter on it) we had a storm/power-outage in the middle of the night came back up fine and now im unable to unlock the volume (data1) with a similar error ill post it when i get home.
 
Last edited:

Fr33nasnoobi3

Dabbler
Joined
Mar 11, 2017
Messages
19
Code:
Environment:

Software Version: FreeNAS-11.1-U4 (89e3d93bc)
Request Method: POST
Request URL: http://10.10.10.103/storage/volume/1/unlock/?X-Progress-ID=c809a97a-f0fd-44f1-833e-cb88aa23a3cc


Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  42.			 response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
  249.			 response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  178.			 response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
  162.		 return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.				 return view_func(request, *args, **kwargs)
File "./freenasUI/storage/views.py" in volume_unlock
  1033.			 form.done(volume=volume)
File "./freenasUI/storage/forms.py" in done
  2822.			 raise MiddlewareError(msg)

Exception Type: MiddlewareError at /storage/volume/1/unlock/
Exception Value: [MiddlewareError: Volume could not be imported]







[root@freenas ~]# zpool status																									 
  pool: data2																													   
 state: DEGRADED																													
status: One or more devices could not be opened.  Sufficient replicas exist for													 
		the pool to continue functioning in a degraded state.																	   
action: Attach the missing device and online it using 'zpool online'.															   
   see: http://illumos.org/msg/ZFS-8000-2Q																						 
  scan: scrub repaired 0 in 0 days 00:00:03 with 0 errors on Sun Apr 22 00:00:05 2018											   
config:																															 
																																	
		NAME												STATE	 READ WRITE CKSUM											 
		data2											   DEGRADED	 0	 0	 0											 
		  raidz1-0										  ONLINE	   0	 0	 0											 
			gptid/f308bbb0-0310-11e8-b695-d050992ecffc.eli  ONLINE	   0	 0	 0											 
			gptid/f47c51a1-0310-11e8-b695-d050992ecffc.eli  ONLINE	   0	 0	 0											 
			gptid/f66c4272-0310-11e8-b695-d050992ecffc.eli  ONLINE	   0	 0	 0											 
		  raidz1-1										  DEGRADED	 0	 0	 0											 
			gptid/8895ac11-40d6-11e8-9e5d-d050992ecffc.eli  ONLINE	   0	 0	 0											 
			gptid/fc76798b-0310-11e8-b695-d050992ecffc.eli  ONLINE	   0	 0	 0											 
			2194556125929666211							 UNAVAIL	  0	 0	 0  was /dev/gptid/fe03864c-0310-11e8-b695-d0509
92ecffc.eli																														 
																																	
errors: No known data errors																										
																																	
  pool: freenas-boot																												
 state: ONLINE																													 
  scan: scrub repaired 0 in 0 days 00:05:23 with 0 errors on Fri Apr 27 03:50:27 2018											   
config:																															 
																																	
		NAME		STATE	 READ WRITE CKSUM																					 
		freenas-boot  ONLINE	   0	 0	 0																					
		  mirror-0  ONLINE	   0	 0	 0																					 
			da6p2   ONLINE	   0	 0	 0																					 
			da7p2   ONLINE	   0	 0	 0																					 
																																	
errors: No known data errors																										
 

KuanYin

Cadet
Joined
Apr 19, 2018
Messages
5
fr looks like you need to resilver.


Well after looking into freenas some more and getting major annoyed with it (the lack of proper errorlogs pisses me off tbh...) I gave up on freenas

I went back to my trusted Adaptec controllers (which freenas does not support...) and windows server 2008r2... and now I run hw raid5s

sl
-KY
 

Fr33nasnoobi3

Dabbler
Joined
Mar 11, 2017
Messages
19
yeah on my data2 volume i do need to resilver, the other one wont unlock at all did you figure out your issue yet?
 
Status
Not open for further replies.
Top