Cant enable ua from GUI, works from CLI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-desktop-daemon (Ubuntu) |
Fix Released
|
High
|
Sebastien Bacher | ||
Jammy |
Fix Released
|
High
|
Sebastien Bacher |
Bug Description
* Impact
Livepatch can't be enabled from software-
* Test Case
Try to attach your machine to an UA token from the livepatch tab from software-
Before the fix it was displayed an error message in red, with the fix it should display livepatch as activated
* Regression potential
The change reduces the hardening in the systemd unit which isn't optimal but is needed, the details of the change is on https:/
What could go wrong would be if one of the changes were incorrect and leading to restrict an access allowed before, if that was the case ua could end up not being able to perform some of the actions needed
-------
Hi,
I have the same UI red message when tryng to enable ua from the GUI on a 22.04 LTS fresh install:
https:/
Step to reproduce:
1 : open the GUI, a link to get the token is displayed ( https:/
2 : I copy past the token into the prompted field
3 : The GUI says it is successfuly linked, but can't activate livepatch
4 : Checking on the advantage page, only 1 active device out of a max of 3
5 : I rebooted (to make sure it wasn't something due with the linux-firmware update just received few minutes earlier) and tryed again from the GUI: says device is linked, but using the switch on button doesnt enable successfuly livepatch
6 : I use the anwser from the previous askubuntu link ( `sudo ua enable livepatch` )
7 : it says it was enabled with success, top icon appear, a shield with a green check, opening the GUI says it is well enabled,
expected result:
on step 3 it should had work as same it worked from CLI and jump to step 7 (success)
note: note sure I reported it against the right package, sorry if that's the case, tryed ubuntu-bug ua, didnt worked, i just picked the first package in launchpad talking about advantage
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Tue May 10 10:57:23 2022
InstallationDate: Installed on 2022-04-29 (10 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | ubuntu-advantage-tools (Ubuntu) → ubuntu-advantage-desktop-daemon (Ubuntu) |
Changed in ubuntu-advantage-desktop-daemon (Ubuntu): | |
assignee: | nobody → Sebastien Bacher (seb128) |
Changed in ubuntu-advantage-desktop-daemon (Ubuntu): | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in ubuntu-advantage-desktop-daemon (Ubuntu Jammy): | |
assignee: | nobody → Sebastien Bacher (seb128) |
importance: | Undecided → High |
Confirmed, /var/log/ ubuntu- advantage. log has
2022-05-10 11:17:23,560 - util.py:(596) [DEBUG]: Ran cmd: /usr/bin/snap wait system seed.loaded, rc: 0 stderr: b'' bin/canonical- livepatch config remote-server=https:/ /livepatch. canonical. com' [exit(1)]. Message: cmd_run.go:1044: WARNING: cannot create user data directory: cannot create snap home dir: mkdir /root/snap: read-only file system
2022-05-10 11:17:23,613 - util.py:(640) [DEBUG]: Failed running command '/snap/
cannot join mount namespace of pid 1: Operation not permitted
2022-05-10 11:17:23,613 - util.py:(642) [WARNING]: Stderr: cmd_run.go:1044: WARNING: cannot create user data directory: cannot create snap home dir: mkdir /root/snap: read-only file system
cannot join mount namespace of pid 1: Operation not permitted