Project

General

Profile

Bug #23884

Stuck on the Train, chooo choo

Added by rm -r over 3 years ago. Updated about 3 years ago.

Status:
Closed: Behaves correctly
Priority:
No priority
Assignee:
Sean Fagan
Category:
OS
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Currently on FreeNAS-11-MASTER-201705090409 (12dc9e5) - tried to switch from nightly train to stable to pickup the RC and a bit of safety - but get

You're not allowed to change away from the nightly train, it is considered a downgrade.
If you have an existing boot environment that uses that train, boot into it in order to upgrade that train.

so tried manual update using ISO file from http://download.freenas.org/11/RC/x64/FreeNAS-11.0-RC.iso - RC downloads and get

Environment: Software Version: FreeNAS-11-MASTER-201705090409 (12dc9e5) Request Method: POST Request URL: http://192.168.2.4/system/manualupdate/?X-Progress-ID=f43de9a1-5451-46aa-8215-2dcf8f4262e2 Traceback: File "/usr/local/lib/python3.6/subprocess.py" in check_output 336. **kwargs).stdout File "/usr/local/lib/python3.6/subprocess.py" in run 418. output=stdout, stderr=stderr) File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner 39. 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 "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 23. return view_func(request, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in view 68. return self.dispatch(request, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in dispatch 237. response = super(WizardView, self).dispatch(request, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch 88. return handler(request, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in post 300. return self.render_done(form, **kwargs) File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in render_done 357. **kwargs) Exception Type: MiddlewareError at /system/manualupdate/ Exception Value: [MiddlewareError: b"Failed to apply update Command '['/usr/local/bin/freenas-update', '-C', '/var/tmp/firmware', 'update']' returned non-zero exit status 1.: b''"] 

I have no boot env to role back to as was on corral and started fresh on 11 nightly

Only option to backup configuration and nuke back to RC then load configuration back in?

History

#1 Updated by Sean Fagan over 3 years ago

  • Status changed from Unscreened to Closed: User Config Issue

Since the ISO install doesn't do any network activity, you're doing it wrong.

The manual update file is a tar file.

#2 Updated by rm -r over 3 years ago

Sean Fagan wrote:

Since the ISO install doesn't do any network activity, you're doing it wrong.

The manual update file is a tar file.

Hi,

I have changed to this file now and get this error

http://download.freenas.org/11/RC/FreeNAS-11.0-RC.tar

Environment: Software Version: FreeNAS-11-MASTER-201705090409 (12dc9e5) Request Method: POST Request URL: http://192.168.2.4/system/manualupdate/?X-Progress-ID=5986d469-f317-4233-8341-0b689e45e91e Traceback: File "/usr/local/lib/python3.6/subprocess.py" in check_output 336. **kwargs).stdout File "/usr/local/lib/python3.6/subprocess.py" in run 418. output=stdout, stderr=stderr) File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner 39. 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 "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 23. return view_func(request, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in view 68. return self.dispatch(request, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in dispatch 237. response = super(WizardView, self).dispatch(request, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch 88. return handler(request, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in post 300. return self.render_done(form, **kwargs) File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in render_done 357. **kwargs) Exception Type: MiddlewareError at /system/manualupdate/ Exception Value: [MiddlewareError: b"Failed to apply update Command '['/usr/local/bin/freenas-update', '-C', '/var/tmp/firmware', 'update']' returned non-zero exit status 1.: b''"] 

#3 Updated by Sean Fagan over 3 years ago

  • Status changed from Closed: User Config Issue to 15

Run the command from ssh -- download the file, place it on the FN box, and run "freenas-update -v FreeNAS-11.0-RC.tar"

#4 Updated by rm -r over 3 years ago

Sean Fagan wrote:

Run the command from ssh -- download the file, place it on the FN box, and run "freenas-update -v FreeNAS-11.0-RC.tar"

Hi,

That worked, output below, thank you for your help.

As a suggestion "you're doing it wrong" - while factually correct, is not particularly kind or welcoming. Next time may i suggest, "the .ISO file is not designed to be used for upgrade, use the .tar file" or similar.

And while i was "doing it wrong" originally the .tar still didn't work through the UI.

root@nas:/mnt/data/downloads # freenas-update -v FreeNAS-11.0-RC.tar 
Extracting ./base-os-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Done extracting ./base-os-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Extracting ./docs-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Done extracting ./docs-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Extracting ./freebsd-pkgdb-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Done extracting ./freebsd-pkgdb-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Extracting ./freenas-pkg-tools-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Done extracting ./freenas-pkg-tools-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Extracting ./FreeNASUI-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Done extracting ./FreeNASUI-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
Extracting ./ValidateUpdate
Done extracting ./ValidateUpdate
Extracting ./ReleaseNotes
Done extracting ./ReleaseNotes
Extracting ./ChangeLog
Done extracting ./ChangeLog
Extracting ./ChangeLog.txt
Done extracting ./ChangeLog.txt
Extracting ./MANIFEST
Done extracting ./MANIFEST
[freenasOS.Configuration:687] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem'])
[freenasOS.Configuration:84] CheckFreeSpace(path=/tmp/tmpael1alng.pem, pool=None, required=1028)
[freenasOS.Configuration:817] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem']):  Read 1028 bytes total
[freenasOS.Configuration:687] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem'])
[freenasOS.Configuration:84] CheckFreeSpace(path=/tmp/tmpy1w2s77w.pem, pool=None, required=1028)
[freenasOS.Configuration:817] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem']):  Read 1028 bytes total
Upgrade package base-os 11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9->11.0-RC-7468dae17edac560997ce914e8c261cc
Upgrade package docs 11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9->11.0-RC-7468dae17edac560997ce914e8c261cc
Upgrade package freebsd-pkgdb 11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9->11.0-RC-7468dae17edac560997ce914e8c261cc
Upgrade package freenas-pkg-tools 11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9->11.0-RC-7468dae17edac560997ce914e8c261cc
Upgrade package FreeNASUI 11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9->11.0-RC-7468dae17edac560997ce914e8c261cc
Reboot is (conditionally) required
Train FreeNAS-11-Nightlies -> FreeNAS-11-STABLE
Sequence 2c99e4ea6ff473586379a24226952cf9 -> 7468dae17edac560997ce914e8c261cc
[freenasOS.Configuration:687] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem'])
[freenasOS.Configuration:84] CheckFreeSpace(path=/tmp/tmpk1bvndbw.pem, pool=None, required=1028)
[freenasOS.Configuration:817] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem']):  Read 1028 bytes total
[freenasOS.Configuration:687] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem'])
[freenasOS.Configuration:84] CheckFreeSpace(path=/tmp/tmpdbgnwltn.pem, pool=None, required=1028)
[freenasOS.Configuration:817] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem']):  Read 1028 bytes total
[freenasOS.Configuration:687] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem'])
[freenasOS.Configuration:84] CheckFreeSpace(path=/tmp/tmpyfl8r6g3.pem, pool=None, required=1028)
[freenasOS.Configuration:817] TryGetNetworkFile(['http://update-master.ixsystems.com/updates/ix_crl.pem']):  Read 1028 bytes total
[freenasOS.Update:1263] Upgrade package base-os-11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9 to base-os-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Update:1263] Upgrade package docs-11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9 to docs-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Update:1263] Upgrade package freebsd-pkgdb-11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9 to freebsd-pkgdb-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Update:1263] Upgrade package freenas-pkg-tools-11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9 to freenas-pkg-tools-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Update:1263] Upgrade package FreeNASUI-11-MASTER-201705090409-2c99e4ea6ff473586379a24226952cf9 to FreeNASUI-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Update:1273] new_boot_name = 11.0-RC, reboot = True
[freenasOS.Configuration:1269] Searching for base-os-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Configuration:1275] Found package file /var/db/system/update/base-os-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Configuration:1269] Searching for docs-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Configuration:1275] Found package file /var/db/system/update/docs-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Configuration:1269] Searching for freebsd-pkgdb-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Configuration:1275] Found package file /var/db/system/update/freebsd-pkgdb-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Configuration:1269] Searching for freenas-pkg-tools-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Configuration:1275] Found package file /var/db/system/update/freenas-pkg-tools-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Configuration:1269] Searching for FreeNASUI-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Configuration:1275] Found package file /var/db/system/update/FreeNASUI-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz
[freenasOS.Update:1284] Installer got packages [{'base-os': <_io.BufferedReader name='/var/db/system/update/base-os-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}, {'docs': <_io.BufferedReader name='/var/db/system/update/docs-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}, {'freebsd-pkgdb': <_io.BufferedReader name='/var/db/system/update/freebsd-pkgdb-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}, {'freenas-pkg-tools': <_io.BufferedReader name='/var/db/system/update/freenas-pkg-tools-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}, {'FreeNASUI': <_io.BufferedReader name='/var/db/system/update/FreeNASUI-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}]
[freenasOS.Configuration:84] CheckFreeSpace(path=None, pool=freenas-boot, required=1571164160)
[freenasOS.Update:403] No pruning necessary
[freenasOS.Update:260] RunCommand(/usr/local/sbin/beadm, ['create', '11.0-RC'])
[freenasOS.Update:105] GRUB configuration updated successfully
[freenasOS.Update:105] Created successfully
[freenasOS.Update:260] RunCommand(/usr/local/sbin/beadm, ['mount', '11.0-RC', '/tmp/tmpzqr487mu'])
[freenasOS.Update:105] Mounted successfully on '/tmp/tmpzqr487mu'
[freenasOS.Update:260] RunCommand(/sbin/umount, ['-f', '/boot/grub'])
[freenasOS.Update:260] RunCommand(/sbin/mount, ['-t', 'devfs', 'devfs', '/tmp/tmpzqr487mu/dev'])
[freenasOS.Update:260] RunCommand(/sbin/mount, ['-t', 'tmpfs', 'tmpfs', '/tmp/tmpzqr487mu/var/tmp'])
[freenasOS.Update:260] RunCommand(/sbin/mount, ['-t', 'zfs', 'freenas-boot/grub', '/tmp/tmpzqr487mu/boot/grub'])
[freenasOS.Installer:1083] Installing package {'base-os': <_io.BufferedReader name='/var/db/system/update/base-os-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}
[freenasOS.Installer:711] base-os-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Installer:745] upgrade_aware = True
....10....20....30....40....50....60....70....80....90....100
[freenasOS.Installer:1083] Installing package {'docs': <_io.BufferedReader name='/var/db/system/update/docs-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}
[freenasOS.Installer:711] docs-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Installer:745] upgrade_aware = False
....10....20....30....40....50....60....70....80....90....100
[freenasOS.Installer:1083] Installing package {'freebsd-pkgdb': <_io.BufferedReader name='/var/db/system/update/freebsd-pkgdb-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}
[freenasOS.Installer:711] freebsd-pkgdb-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Installer:745] upgrade_aware = False
...100

[freenasOS.Installer:1083] Installing package {'freenas-pkg-tools': <_io.BufferedReader name='/var/db/system/update/freenas-pkg-tools-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}
[freenasOS.Installer:711] freenas-pkg-tools-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Installer:745] upgrade_aware = True
............100

[freenasOS.Installer:1083] Installing package {'FreeNASUI': <_io.BufferedReader name='/var/db/system/update/FreeNASUI-11.0-RC-7468dae17edac560997ce914e8c261cc.tgz'>}
[freenasOS.Installer:711] FreeNASUI-11.0-RC-7468dae17edac560997ce914e8c261cc
[freenasOS.Installer:745] upgrade_aware = True
....10....20....30....40....50....60....70....80....90....100
[freenasOS.Update:260] RunCommand(/sbin/umount, ['-f', '/tmp/tmpzqr487mu/boot/grub'])
[freenasOS.Update:260] RunCommand(/sbin/mount, ['/boot/grub'])
[freenasOS.Update:260] RunCommand(/sbin/umount, ['-f', '/tmp/tmpzqr487mu/dev'])
[freenasOS.Update:260] RunCommand(/sbin/umount, ['-f', '/tmp/tmpzqr487mu/var/tmp'])
[freenasOS.Update:260] RunCommand(/usr/local/sbin/beadm, ['unmount', '-f', '11.0-RC'])
[freenasOS.Update:105] Unmounted successfully
[freenasOS.Update:260] RunCommand(/usr/local/sbin/beadm, ['activate', '11.0-RC'])
[freenasOS.Update:105] GRUB configuration updated successfully
[freenasOS.Update:105] Activated successfully
System should be rebooted now

#5 Updated by Dru Lavigne about 3 years ago

  • Status changed from 15 to Closed: Behaves correctly
  • Target version set to N/A

Also available in: Atom PDF