Software Updater crashes upon login

Bug #2060971 reported by Adam Vest
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
New
Undecided
Unassigned
update-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello,

I started seeing this recently on my laptop, where a crash report window would pop up shortly after logging in claiming that the software updater (apparently running in the background) had crashed, and asking me what to do about it. I don't recall having made any changes to my system that would have affected this, and it seems to have just started suddenly. lmk if I can provide any more info! Thanks!

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-advantage-tools 31.2~22.04
ProcVersionSignature: Ubuntu 6.5.0-26.26~22.04.1-generic 6.5.13
Uname: Linux 6.5.0-26-generic x86_64
NonfreeKernelModules: zfs nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Apr 11 09:18:30 2024
InstallationDate: Installed on 2022-08-21 (598 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: No upgrade log present (probably fresh install)
apparmor_logs.txt: Apr 11 09:09:19 adam-Lenovo-ideapad kernel: audit: type=1400 audit(1712840959.966:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="ubuntu_pro_apt_news" pid=1870 comm="apparmor_parser"
cloud-id.txt-error: Failed running command 'cloud-id' [exit(2)]. Message:
livepatch-status.txt-error: Failed running command '/snap/bin/canonical-livepatch status' [exit(1)]. Message: error executing status: open /var/snap/canonical-livepatch/264/livepatchd.err: permission denied
modified.conffile..etc.ubuntu-advantage.uaclient.conf: contract_url: https://contracts.canonical.com
mtime.conffile..etc.ubuntu-advantage.uaclient.conf: 2024-02-22T15:31:29.497366
uaclient.conf: contract_url: https://contracts.canonical.com

Revision history for this message
Adam Vest (foxmulder2004) wrote :
Revision history for this message
Adam Vest (foxmulder2004) wrote :

Screenshot from the desktop that I've been seeing.

Revision history for this message
Lucas Albuquerque Medeiros de Moura (lamoura) wrote :

Hi foxmulder2004,

Just looking at the provided Pro client logs, I couldn't find any errors that could explain that behavior on the Pro side.

When that error happens, what message does it show under "Show details" on the crash pop-up ?

Revision history for this message
Adam Vest (foxmulder2004) wrote :
Download full text (4.0 KiB)

Hey there Lucas! I'll have to retrigger the error to see what's contained therein, but I also see this in my systems journal from that time as well (that wasn't captured in the earlier-attached logs):
---
Apr 11 09:11:06 adam-Lenovo-ideapad pkexec[9315]: adam: Executing command [USER=root] [TTY=unknown] [CWD=/home/adam] [COMMAND=/usr/lib/update-notifier/package-system-locked]
Apr 11 09:11:12 adam-Lenovo-ideapad update-notifier.desktop[9340]: [4.7K blob data]
Apr 11 09:11:12 adam-Lenovo-ideapad update-notifier.desktop[9340]: [196B blob data]
Apr 11 09:11:12 adam-Lenovo-ideapad update-notifier.desktop[9340]: [101B blob data]
Apr 11 09:11:18 adam-Lenovo-ideapad update-notifier.desktop[9427]: WARNING:root:can not import unity GI Namespace Dbusmenu not available
Apr 11 09:11:25 adam-Lenovo-ideapad update-notifier.desktop[9451]: Unexpected error(s) occurred.
Apr 11 09:11:25 adam-Lenovo-ideapad update-notifier.desktop[9451]: For more details, see the log: /var/log/ubuntu-advantage.log
Apr 11 09:11:25 adam-Lenovo-ideapad update-notifier.desktop[9451]: To file a bug run: ubuntu-bug ubuntu-advantage-tools
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: Traceback (most recent call last):
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: File "/usr/bin/update-manager", line 124, in <module>
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: app.start_update()
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 223, in start_update
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: self.start_available()
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 241, in start_available
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: self.refresh_cache()
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 459, in refresh_cache
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: self._get_ua_security_status()
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 285, in _get_ua_security_status
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: s = json.load(p.stdout)
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: File "/usr/lib/python3.10/json/__init__.py", line 293, in load
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: return loads(fp.read(),
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: return _default_decoder.decode(s)
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
Apr 11 09:11:26 adam-Lenovo-ideapad update-notifier.desktop[9427]: obj, end = self.raw_decode(s, idx=_w(s, 0).en...

Read more...

Revision history for this message
Adam Vest (foxmulder2004) wrote :

And for a little more context, it looks like this all started on 15 March after this update:
---
Start-Date: 2024-03-15 09:04:49
Commandline: aptdaemon role='role-commit-packages' sender=':1.224'
Install: ubuntu-pro-client:amd64 (31.2~22.04, automatic)
Upgrade: libsynctex2:amd64 (2021.20210626.59705-1ubuntu0.1, 2021.20210626.59705-1ubuntu0.2), libkpathsea6:amd64 (2021.20210626.59705-1ubuntu0.1, 2021.20210626.59705-1ubuntu0.2), libexpat1:amd64 (2.4.7-1ubuntu0.2, 2.4.7-1ubuntu0.3), firefox:amd64 (123.0.1+build1-0ubuntu0.22.04.1~mt1, 124.0+build1-0ubuntu0.22.04.1~mt1), ubuntu-pro-client-l10n:amd64 (30~22.04, 31.2~22.04), warp-terminal:amd64 (0.2024.03.05.08.02.stable.01, 0.2024.03.12.08.02.stable.01), apache2-utils:amd64 (2.4.52-1ubuntu4.7, 2.4.52-1ubuntu4.8), libexpat1-dev:amd64 (2.4.7-1ubuntu0.2, 2.4.7-1ubuntu0.3), ubuntu-advantage-tools:amd64 (30~22.04, 31.2~22.04)
End-Date: 2024-03-15 09:05:07

...<snip>...
Mar 15 09:05:24 adam-Lenovo-ideapad update-notifier.desktop[8329]: raise JSONDecodeError("Expecting value", s, err.value) from None
Mar 15 09:05:24 adam-Lenovo-ideapad update-notifier.desktop[8329]: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Mar 15 09:05:24 adam-Lenovo-ideapad systemd[6561]: Starting Notification regarding a crash report...
░░ Subject: A start job for unit UNIT has begun execution
---

Revision history for this message
Adam Vest (foxmulder2004) wrote :

OK, got another crash this morning, and here are the contents of the details section. Looks like it's more or less the same as what I posted yesterday from the journal.

Revision history for this message
Alberto Contreras (aciba) wrote :
Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Hi Adam!

What version of update-manager do you have? I believe this was fixed in 1:22.04.20 which was SRU'd recently.

information type: Private → Public
tags: removed: need-amd64-retrace
Revision history for this message
Adam Vest (foxmulder2004) wrote :

Hi Grant!

I keep my system updated regularly, but indeed I'm on slightly older:
---
:~$ dpkg -l|grep update-manager
ii python3-update-manager 1:22.04.19 all python 3.x module for update-manager
ii update-manager 1:22.04.19 all GNOME application that manages apt updates
ii update-manager-core 1:22.04.19 all manage release upgrades
---

Looks like it's phasing for me, so I'll override that and let you know if that helps any!
---
The following packages have been kept back:
  python3-update-manager update-manager update-manager-core
---

Can confirm the issue happened again this morning, so should be easy to tell.

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.