group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #44720
[Bug 2006261] Re: /usr/lib/ubuntu-advantage/timer.py:uaclient.exceptions.InvalidFileFormatError:read:loads:decode:raw_decode:/usr/lib/ubuntu-advantage/timer.py@176:run_jobs:read
This bug was fixed in the package ubuntu-advantage-tools -
27.13.5~23.04.1
---------------
ubuntu-advantage-tools (27.13.5~23.04.1) lunar; urgency=medium
* d/ubuntu-advantage-tools.postinst:
- fix version for cleaning the esm-apps stale unauthenticated files
(LP: #2006765)
-- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx> Thu, 09 Feb 2023
14:20:47 -0300
** Changed in: ubuntu-advantage-tools (Ubuntu Lunar)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/2006261
Title:
/usr/lib/ubuntu-
advantage/timer.py:uaclient.exceptions.InvalidFileFormatError:read:loads:decode:raw_decode:/usr/lib/ubuntu-
advantage/timer.py@176:run_jobs:read
Status in ubuntu-advantage-tools package in Ubuntu:
Fix Released
Status in ubuntu-advantage-tools source package in Xenial:
Fix Released
Status in ubuntu-advantage-tools source package in Bionic:
Fix Released
Status in ubuntu-advantage-tools source package in Focal:
Fix Released
Status in ubuntu-advantage-tools source package in Jammy:
Fix Released
Status in ubuntu-advantage-tools source package in Kinetic:
Fix Released
Status in ubuntu-advantage-tools source package in Lunar:
Fix Released
Bug description:
[Original Description]
The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-advantage-tools. This problem was most recently seen with package version 27.13.3~22.10.1, the problem page at https://errors.ubuntu.com/problem/9271af8b26844a0fd6f6608db504837125211b97 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/.
[Impact]
If the jobs-status.json file gets corrupted for any reason, users will
see a degraded state on systemd, since we will not be able to run the
timer job anymore.
[ Test Case ]
1) Launch a LXD container with an affected Ubuntu release
2) Install the Pro client version with the fix
3) Manually run the timer job, python3 /usr/lib/ubuntu-advantage/timer.py
4) Corrupt the /var/lib/ubuntu-advantage/jobs-status.json file (i.e. remove the last bracket on the file)
5) Run the job again and guarantee that it doesn't fail
6) Check /var/lib/ubuntu-advantage/jobs-status.json and verify that it is no longer corrupted
[ Regression potential ]
We deleting the corrupted file and running the job to recreate a
correct one. Since we are just acting upon a corrupted file, we don't
believe this change pose a significant regression potential
[ Discussion]
We are now checking if the jobs-status.json file can be read. If it
can't, we delete the file and run the job normally to recreate it. We
are also checking for error situations where we can't delete the file.
In that situation we will log the error and not continue running the
job
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2006261/+subscriptions