Project

General

Profile

Bug #9552

Update Via WEBUI Fails

Added by Philip Walston over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Important
Assignee:
-
Category:
-
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

Trying to apply pending updates from FreeNAS-9.3-STABLE train, the update appears to fail with the following error message:

"Error: global name 'UpdatePackageException' is not defined"

Log snippet follows:

May 2 13:56:43 SAL updated.py: [freenasOS.Installer:625] Delta package 9.3-STABLE-94c2812-c7bb047-adf8538->9.3-STABLE-ccbc6e6-9e81b33-adf8538 cannot upgrade current version 9.3-STABLE-ccbc6e6-9e81b33-adf8538
May 2 13:56:43 SAL updated.py: [freenasOS.Installer:797] Unable to install package base-os
May 2 13:56:43 SAL updated.py: [freenasOS.Update:802] Unable to install packages
May 2 13:56:43 SAL updated.py: [freenasOS.Update:828] Update got exception during update: global name 'UpdatePackageException' is not defined
May 2 13:56:46 SAL manage.py: [middleware.exceptions:38] [MiddlewareError: global name 'UpdatePackageException' is not defined]
May 2 13:57:26 SAL updated.py: [freenasOS.Installer:625] Delta package 9.3-STABLE-94c2812-c7bb047-adf8538->9.3-STABLE-ccbc6e6-9e81b33-adf8538 cannot upgrade current version 9.3-STABLE-ccbc6e6-9e81b33-adf8538
May 2 13:57:26 SAL updated.py: [freenasOS.Installer:797] Unable to install package base-os
May 2 13:57:26 SAL updated.py: [freenasOS.Update:802] Unable to install packages
May 2 13:57:26 SAL updated.py: [freenasOS.Update:828] Update got exception during update: global name 'UpdatePackageException' is not defined
May 2 13:57:31 SAL manage.py: [middleware.exceptions:38] [MiddlewareError: global name 'UpdatePackageException' is not defined]
May 2 14:10:11 SAL updated.py: [freenasOS.Installer:625] Delta package 9.3-STABLE-94c2812-c7bb047-adf8538->9.3-STABLE-ccbc6e6-9e81b33-adf8538 cannot upgrade current version 9.3-STABLE-ccbc6e6-9e81b33-adf8538
May 2 14:10:11 SAL updated.py: [freenasOS.Installer:797] Unable to install package base-os
May 2 14:10:11 SAL updated.py: [freenasOS.Update:802] Unable to install packages
May 2 14:10:11 SAL updated.py: [freenasOS.Update:828] Update got exception during update: global name 'UpdatePackageException' is not defined
May 2 14:10:15 SAL manage.py: [middleware.exceptions:38] [MiddlewareError: global name 'UpdatePackageException' is not defined]

Associated revisions

Revision b09e1ef8 (diff)
Added by Sean Fagan over 5 years ago

Import the UpdateBootEnvironmentException exception, which I apparently forgot to do previously. Ticket: #9552 Merge-FN93: Yes

Revision c08e9a1f (diff)
Added by Sean Fagan over 5 years ago

Import the UpdateBootEnvironmentException exception, which I apparently forgot to do previously. Ticket: #9552 Merge-FN93: Yes (cherry picked from commit b09e1ef82d5cb68b6e6086d61e56eb2f0de71563)

Revision 8cedba53 (diff)
Added by Sean Fagan over 5 years ago

Import the UpdateBootEnvironmentException exception, which I apparently forgot to do previously. (I think sef meant UpdatePackageException) Ticket: #9552 Merge-FN93: Yes (cherry picked from commit b09e1ef82d5cb68b6e6086d61e56eb2f0de71563)

Revision cd66a268 (diff)
Added by Sean Fagan over 5 years ago

Import the UpdateBootEnvironmentException exception, which I apparently forgot to do previously. (I think sef meant UpdatePackageException) Ticket: #9552 Merge-FN93: Yes (cherry picked from commit b09e1ef82d5cb68b6e6086d61e56eb2f0de71563) Former-commit-id: 8cedba539e9d8bee8da229575284e9ab2623f0ac

History

#1 Updated by Sean Fagan over 5 years ago

  • Status changed from Unscreened to 15
  • ChangeLog Entry updated (diff)

Something has gone wrong with your system, and the installation is failing. This seems to happen periodically, and we don't know why. The real problem is this:

May 2 13:56:43 SAL updated.py: [freenasOS.Installer:625] Delta package 9.3-STABLE-94c2812-c7bb047-adf8538->9.3-STABLE-ccbc6e6-9e81b33-adf8538 cannot upgrade current version 9.3-STABLE-ccbc6e6-9e81b33-adf8538

which means that the package system thinks that the new package is already installed. We're not sure how that could have happened; we can try to figure that out, or you can try going back to the most recent BE you have, and then do an upgrade from that. "Try to figure that out" means looking at the previous one or two boot environments, and trying to see what possibly could have gone wrong. A lot of the information would have been in the logs, however, and those are likely gone by now. And there's another couple of ways we can work around the problem if you want to avoid doing the previous BE method. (Note that the configuration database is part of the BE, so any changes you made to since the previous update would be lost doing this, unless you manually imported the configuration data.)

The other problem about the exception I've just fixed, in b09e1ef82d5cb68b6e6086d61e56eb2f0de71563

#2 Updated by Philip Walston over 5 years ago

I shut the system down, cold booted and ran the update from the command line. I did see some errors, but after rebooting I appear to be on FreeNAS-9.3-STABLE-201505010007. I hate undeterministic fixes, but maybe it 'just worked'. Fingers crossed.

#3 Updated by Sean Fagan over 5 years ago

  • Status changed from 15 to Ready For Release

Okay, we'll set this Ready For Release then, since it did prompt me fix an issue.

#4 Updated by Jordan Hubbard over 5 years ago

  • Target version set to Unspecified

Please remember to set Target Version, without which it won't wind up in the release notes.

#5 Updated by Jordan Hubbard over 5 years ago

  • Status changed from Ready For Release to Resolved

#6 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

Also available in: Atom PDF