[Bug 2049785] Re: /usr/bin/update-manager:json.decoder.JSONDecodeError:/bin/update-manager at 118:start_update:start_available:refresh_cache:_get_ua_security_status:load:loads:decode:raw_decode

Chris Halse Rogers 2049785 at bugs.launchpad.net
Wed Jan 24 07:07:23 UTC 2024


This doesn't really seem to be a minimal fix, especially since it
appears that switching to the Python API but *not* upgrading to u-a-t >=
30 results in a similarly broken experience.

Given the choice between a 1 line diff to debian/control and an
architectural change *and also* that same 1-line diff to debian/control
it seems clear to me that just the 1-line change is the more appropriate
SRU. Is there extra context here that I'm missing that would change this
calculus?

If it later turns out that there are bugs that can only reasonably be
fixed by switching to the Python API, then that switch can be made for
that SRU. I don't think we need to preemptively re-architect this.

** Changed in: update-manager (Ubuntu)
       Status: Fix Committed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2049785

Title:
  /usr/bin/update-manager:json.decoder.JSONDecodeError:/bin/update-
  manager at 118:start_update:start_available:refresh_cache:_get_ua_security_status:load:loads:decode:raw_decode

Status in update-manager package in Ubuntu:
  Incomplete

Bug description:
  * Impact

  The new Ubuntu Pro integration hits an exception when the pro client
  call isn't returning a value json output

  * Test case

  Check that reports on
  https://errors.ubuntu.com/problem/741dff427bf59c3208da3b509caf1e8d2385fdea
  stop

  Also on a system not connected to pro, install an old ubuntu-
  advantage-tools 27 (outdated version), disconnect from internet and
  start update-manager, it should list the updates and not error out

  * Regression potential

  The code is changing the callback to get the list of pro updates to
  use the ubuntu-advantage-tools python API instead of calling the
  cmdline client. If there is an issue with the new API the pro updates
  listing on non pro-attached system could be incorrect or the client
  could hit a new exception

  --------------------------------------

  In JournalErrors:

  --->
  Failed to access URL: https://contracts.canonical.com/v1/resources?architecture=amd64&kernel=5.15.0-91-generic&series=focal
  Cannot verify certificate of server
  Please check your openssl configuration.
  [info] A new version is available: 30~20.04
  Please run:
  sudo apt-get install ubuntu-advantage-tools
  <---

  Is it the ubuntu-advantage-tools version problem, is it the failure to
  access contracts.canonical.com? Should we switch to calling the API
  directly as in 24.04[1] or handle the exception?

  [1] https://code.launchpad.net/~nteodosio/update-manager/+git/update-
  manager/+merge/456088

  ------

  The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager.  This problem was most recently seen with package version 1:20.04.10.18, the problem page at https://errors.ubuntu.com/problem/741dff427bf59c3208da3b509caf1e8d2385fdea contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2049785/+subscriptions




More information about the foundations-bugs mailing list