[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

Sebastien Bacher 2049785 at bugs.launchpad.net
Fri Jan 19 09:48:43 UTC 2024


I reproduced the bug on a fresh 20.04.6 install, just upgraded update-
manager, disconnected from internet and started update manager

Failed to connect to authentication server
Check your Internet connection and try again.

[info] A new version is available: 30~20.04
Please run:
    sudo apt-get install ubuntu-advantage-tools
to get the latest version with new features and bug fixes.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/UpdateManager/Dialogs.py", line 118, in <lambda>
    button.connect("clicked", lambda x: callback())
  File "/usr/lib/python3/dist-packages/UpdateManager/Dialogs.py", line 371, in available
    self.window_main.start_available(error_occurred=True)
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 240, in start_available
    self.refresh_cache()
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 458, in refresh_cache
    self._get_ua_security_status()
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 284, in _get_ua_security_status
    s = json.load(p.stdout)
  File "/usr/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


ii  ubuntu-advantage-tools 27.13.6~20.04.1 amd64        management tools for Ubuntu Pro


$ pro security-status --format=json
Failed to connect to authentication server
Check your Internet connection and try again.

[info] A new version is available: 30~20.04
Please run:
    sudo apt-get install ubuntu-advantage-tools
to get the latest version with new features and bug fixes.


that's resolved after updating ubuntu-advantage-tools to 30~20.04 (the current version)



** Changed in: update-manager (Ubuntu)
   Importance: Undecided => High

** Changed in: update-manager (Ubuntu)
     Assignee: (unassigned) => Nathan Teodosio (nteodosio)

** Tags added: udeng-2103

-- 
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:
  New

Bug description:
  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