FreeNAS 11.1 Unable to create USB boot mirror

Status
Not open for further replies.

Paul Cushing

Cadet
Joined
Sep 26, 2016
Messages
4
Freenas 11.1 - I have been trying to mirror my USB stick boot drive. I have a larger drive (64GB) than the original (32GB) and I have followed the procedure several times - System/Boot/Status/Attach with no joy. When I click the button it seems to think for a bit and then the window closes and no new drive has appeared. Any help you can provide would be awesome. Thank you in advance. Here is a snippet from the log file immediately after trying to do the operation;

Code:
Dec 21 15:11:48 freenas uwsgi: [middleware.notifier:185] Popen()ing: zpool status freenas-boot
Dec 21 15:11:49 freenas uwsgi: [freeadmin.navtree:114] Unable to import 'freenasUI.api' 'nav': No module named 'freenasUI.api.nav'
Dec 21 15:11:49 freenas uwsgi: [freeadmin.navtree:402] App freenasUI.api has no nav.py module, skipping
Dec 21 15:11:49 freenas uwsgi: [freeadmin.navtree:114] Unable to import 'freenasUI.freeadmin' 'nav': No module named 'freenasUI.freeadmin.nav'
Dec 21 15:11:49 freenas uwsgi: [freeadmin.navtree:402] App freenasUI.freeadmin has no nav.py module, skipping
Dec 21 15:11:49 freenas uwsgi: [services.forms:1166] Failed to decrypt DDNS password
Traceback (most recent call last):
  File "./freenasUI/services/models.py", line 1164, in _decrypt_password
	self.ddns_password = notifier().pwenc_decrypt(self.ddns_password)
  File "./freenasUI/middleware/notifier.py", line 3859, in pwenc_decrypt
	encrypted = base64.b64decode(encrypted)
  File "/usr/local/lib/python3.6/base64.py", line 87, in b64decode
	return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
Dec 21 15:11:49 freenas uwsgi: [freeadmin.navtree:114] Unable to import 'freenasUI.support' 'nav': No module named 'freenasUI.support.nav'
Dec 21 15:11:49 freenas uwsgi: [freeadmin.navtree:402] App freenasUI.support has no nav.py module, skipping
Dec 21 15:11:49 freenas uwsgi: [freeadmin.navtree:114] Unable to import 'freenasUI.documentation' 'nav': No module named 'freenasUI.documentation.nav'
Dec 21 15:11:49 freenas uwsgi: [freeadmin.navtree:402] App freenasUI.documentation has no nav.py module, skipping
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show -inet6 default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show -inet6 default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show -inet6 default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show -inet6 default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [common.warden:406] warden_base.__init__: cmd = list - flags = 0x00000001
Dec 21 15:11:49 freenas uwsgi: [common.warden:437] warden_base.__init__: args =  -v
Dec 21 15:11:49 freenas uwsgi: [common.warden:443] warden_base.__init__: leave
Dec 21 15:11:49 freenas uwsgi: [common.warden:449] warden_base.run: enter
Dec 21 15:11:49 freenas uwsgi: [common.warden:458] warden_base.cmd = /usr/local/bin/warden list  -v
Dec 21 15:11:49 freenas uwsgi: [common.cmd:189] cmd_pipe.__init__: cmd = /usr/local/bin/warden list  -v, kwargs = {'pipeopen_kwargs': {}}
Dec 21 15:11:49 freenas uwsgi: [common.cmd:208] cmd_pipe.__init__: out = Error: No jails found!
Dec 21 15:11:49 freenas uwsgi: [common.cmd:219] cmd_pipe.__init__: leave
Dec 21 15:11:49 freenas uwsgi: [common.warden:1072] Warden.__call: Failed with '[warden_exception: The command /usr/local/bin/warden list  -v failed: "Error: No jails found!
"]'
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [middleware.notifier:185] Popen()ing: route -nv show -inet6 default|grep 'interface:'|awk '{ print $2 }'
Dec 21 15:11:49 freenas uwsgi: [common.warden:406] warden_base.__init__: cmd = list - flags = 0x00000001
Dec 21 15:11:49 freenas uwsgi: [common.warden:437] warden_base.__init__: args =  -v
Dec 21 15:11:49 freenas uwsgi: [common.warden:443] warden_base.__init__: leave
Dec 21 15:11:49 freenas uwsgi: [common.warden:449] warden_base.run: enter
Dec 21 15:11:49 freenas uwsgi: [common.warden:458] warden_base.cmd = /usr/local/bin/warden list  -v
Dec 21 15:11:49 freenas uwsgi: [common.cmd:189] cmd_pipe.__init__: cmd = /usr/local/bin/warden list  -v, kwargs = {'pipeopen_kwargs': {}}
Dec 21 15:11:49 freenas uwsgi: [common.cmd:208] cmd_pipe.__init__: out = Error: No jails found!
Dec 21 15:11:49 freenas uwsgi: [common.cmd:219] cmd_pipe.__init__: leave
Dec 21 15:11:49 freenas uwsgi: [common.warden:1072] Warden.__call: Failed with '[warden_exception: The command /usr/local/bin/warden list  -v failed: "Error: No jails found!
 
Last edited by a moderator:

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,995
I cant tell you how many times I've answered this question this month alone. Short and sweet answer is to backup your config file, Install FeeeNAS 11.1 on the USB Flash Drives (clean install from iso), restore your config file. This is the fastest way and best way. Also I recommend you use new/different flash drives or better yet, a SSD. Also I don't recommend using a mirror for boot device, they are not needed.
 

Paul Cushing

Cadet
Joined
Sep 26, 2016
Messages
4
Thank you for the advice Joe. I'll grab a USB SSD drive. Can I do the "install" to the USB drive on my Macbook then plug it in to the FreeNAS box and do the restore of the config file or must I do the install on the FreeNAS box itself.
 
Last edited by a moderator:

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
There is no point in using a USB SSD. Use a standard SATA SSD and avoid the problems with USB entirely.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,995

PrinceSir

Cadet
Joined
Dec 18, 2017
Messages
4
Got the same problem on my mirrored boot USB after upgrading from 11.0 to 11.1-RELEASE. It says my boot volume is degraded as one mirrored device is down. The boot mirror setup never made any problem in 11.0.

Just now I backup the config file and made a completely clean installation from the 11.1-RELEASE ISO on another completely new USB. After the clean installation, the config file was uploaded to the new boot USB and everything runs properly like before.

BUT, the attach mirror boot device again failed with the same message. It seems not to be related to this upgrade action, rather the 11.1-RELEASE version itself:

Request Method: POST
Request URL: http://192.168.0.80/system/bootenv/pool/attach/?label=da0p2
Software Version: FreeNAS-11.1-RELEASE (dc7d195f4)
Exception Type: MiddlewareError
Exception Value:
[MiddlewareError: Command '('gpart', 'add', '-t', 'freebsd-zfs', '-i', '2', '-a', '4k', '-s', '30752067584B', 'da1')' returned non-zero exit status 1.]
Exception Location: ./freenasUI/system/forms.py in done, line 293
Server time: Sun, 24 Dec 2017 17:39:59 +0100

Code:
Environment:

Software Version: FreeNAS-11.1-RELEASE (dc7d195f4)
Request Method: POST
Request URL: http://192.168.0.80/system/bootenv/pool/attach/?label=da0p2


Traceback:
File "./freenasUI/system/forms.py" in done
  291.				 c.call('boot.attach', devname, {'expand': self.cleaned_data['expand']})
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
  394.			 raise ClientException(c.error, c.errno, c.trace, c.extra)
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/system/views.py" in bootenv_pool_attach
  496.			 form.done()
File "./freenasUI/system/forms.py" in done
  293.				 raise MiddlewareError(str(e))
File "./freenasUI/system/forms.py" in done
  293.				 raise MiddlewareError(str(e))

Exception Type: MiddlewareError at /system/bootenv/pool/attach/
Exception Value: [MiddlewareError: Command '('gpart', 'add', '-t', 'freebsd-zfs', '-i', '2', '-a', '4k', '-s', '30752067584B', 'da1')' returned non-zero exit status 1.]

 
Status
Not open for further replies.
Top