Can't enable livepatch

Bug #2058556 reported by Julien Mahiette
This bug report is a duplicate of:  Bug #2058560: "sudo pro attach <token>" fails. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu 22.04.4 LTS
Release: 22.04

hinkPad-T470s-W10DG:~$ apt-cache policy pkgname
N: Impossible de trouver le paquet pkgname

I wanted to try ubuntu pro and followed the documentation and after this command:
sudo pro attach *******************
I have noticed that livepatch was disabled and wasn't supposed to
I have tryed a couple of commands:

ThinkPad-T470s-W10DG:~$ sudo pro enable livepatch
One moment, checking your subscription first
Unexpected error(s) occurred.
For more details, see the log: /var/log/ubuntu-advantage.log
To file a bug run: ubuntu-bug ubuntu-advantage-tools
ThinkPad-T470s-W10DG:~$ sudo pro attach ***********************
This machine is already attached to '*********@gmail.com'
To use a different subscription first run: sudo pro detach.
ThinkPad-T470s-W10DG:~$ sudo pro enable livepatch
One moment, checking your subscription first
Unable to enable Livepatch: Failed running command '/snap/bin/canonical-livepatch enable <REDACTED>' [exit(1)]. Message: Could not retrieve client information.: GET request to "https://livepatch.canonical.com/v1/client/a4d400be9ce245e1b1d14861d2eb4728/info" failed

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-advantage-tools 31.2~22.04
ProcVersionSignature: Ubuntu 5.15.0-101.111-generic 5.15.143
Uname: Linux 5.15.0-101-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Mar 20 21:08:09 2024
InstallationDate: Installed on 2024-02-19 (30 days ago)
InstallationMedia: Ubuntu 20.04.6 LTS "Focal Fossa" - Release amd64 (20230316)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: Upgraded to jammy on 2024-03-18 (2 days ago)
apparmor_logs.txt: mars 20 21:01:41 julien-ThinkPad-T470s-W10DG kernel: audit: type=1400 audit(1710964901.392:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="ubuntu_pro_apt_news" pid=788 comm="apparmor_parser"
cloud-id.txt-error: Invalid command specified 'cloud-id'.
livepatch-status.txt-error:
 Failed running command '/snap/bin/canonical-livepatch status' [exit(1)]. Message: Machine is not enabled. Please run 'sudo canonical-livepatch enable' with the
 token obtained from https://ubuntu.com/livepatch.
uaclient.conf:
 contract_url: https://contracts.canonical.com
 log_level: debug

Revision history for this message
Julien Mahiette (julienmhtt) wrote :
Revision history for this message
Renan Rodrigo (renanrodrigo) wrote :

Hello, Julien
Thanks for reporting this bug

Unfortunately this happened due to an outage in contracts.canonical.com. The service is now back online and everything should be working fine.

Would you mind trying again please?

For the future, we will improve this error message so users know what is happening instead of seeing 'unexpected error'.

As we received many bug reports about this, I am marking this one a duplicate (for easier tracking). Feel free to come back if the error persists though.

information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.