group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #44691
[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~18.04.1
---------------
ubuntu-advantage-tools (27.13.5~18.04.1) bionic; urgency=medium
* Backport new upstream release
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)
ubuntu-advantage-tools (27.13.4~23.04.1) lunar; urgency=medium
* d/ubuntu-advantage-tools.postinst:
- remove stale esm-apps unauthenticated caches (LP: #2004193)
* apt-hook:
- Change esm-apps advertisement message on apt upgrade to
make it clearer that the service is providing more upgrades
and not restricting user to only get updates if esm-apps
is enabled (LP: #2006510)
* contract:
- make code aware that the effective date is not a required field
in the machine-token.json file (LP: #2006351)
* esm_cache
- do not fail if we cannot extract information from
/etc/os-release file (LP: #2006508)
* security-status:
- consider packages without a candidate as 'unknown' (LP: #2006049)
* status:
- treat null effective contract dates as unknown/expired
(LP: #2004650)
* timer:
- recycle invalid jobs-status.json file if we detect it is
corrupted (LP: #2006261)
-- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx> Thu, 09 Feb 2023
14:35:59 -0300
** Changed in: ubuntu-advantage-tools (Ubuntu Xenial)
Status: Fix Committed => 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:
In Progress
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:
In Progress
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