This bug is about the timer job failing to read the jobs-status.json
file. The failure happens when trying to decode the file, as non-utf8
characters are present.

I could not reproduce the error, except by inserting invalid characters
in the file intentionally. It may be happening while trying to migrate
the file after an upgrade?

The curious detail is that many of those errors, which happen on noble,
are reported from systems which were installed from focal installation
media. That means they have been upgraded for a while (both the system
and our package).

The fair solution to this is to capture errors when trying to read this
file and erase it if it is corrupt. The next execution of the timer jobs
will recreate it.

** Changed in: ubuntu-advantage-tools (Ubuntu)
       Status: New => Triaged

** Changed in: ubuntu-advantage-tools (Ubuntu)
     Assignee: (unassigned) => Renan Rodrigo (renanrodrigo)

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

Title:
  /usr/lib/ubuntu-advantage/timer.py:UnicodeDecodeError:/usr/lib/ubuntu-
  advantage/timer.py@209:run_jobs:read:read:load_file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2078737/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to