group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #48129
[Bug 2078737] Re: /usr/lib/ubuntu-advantage/timer.py:UnicodeDecodeError:/usr/lib/ubuntu-advantage/timer.py@209:run_jobs:read:read:load_file
This bug was fixed in the package ubuntu-advantage-tools - 34~20.04
---------------
ubuntu-advantage-tools (34~20.04) focal; urgency=medium
* Backport 34 to focal (LP: #2075543)
ubuntu-advantage-tools (34) oracular; urgency=medium
* d/rules: check that version.py is consistent with changelog (GH: #3154)
* New upstream release 34: (LP: #2075543)
- apt-hook: redirect errors away from users (LP: #2074211, LP: #2055239)
- detach: ensure apt bearer tokens are always cleaned up
- fips-preview: add warnings and prompts similar to fips and fips-updates
- fips and realtime-kernel: add warning when the new kernel may have
different hardware support than the current kernel based on the flavor
(GH: #3115)
- fix: use more reliable api query param when looking up CVE fixes
- help:
+ change help output for base pro command
+ remove service descriptions from output (GH: #3126)
+ show help content when run without a subcommand
- timer: recover from corrupted job status file (LP: #2078737)
- update manpage
-- Grant Orndorff <grant.orndorff@xxxxxxxxxxxxx> Fri, 06 Sep 2024
19:58:21 -0400
** Changed in: ubuntu-advantage-tools (Ubuntu Bionic)
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/2078737
Title:
/usr/lib/ubuntu-advantage/timer.py:UnicodeDecodeError:/usr/lib/ubuntu-
advantage/timer.py@209:run_jobs:read:read:load_file
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 Noble:
Fix Released
Status in ubuntu-advantage-tools source package in Oracular:
Fix Released
Bug description:
[ Impact ]
If the jobs-status.json file somehow got corrupted on a pro attached
machine, the ua-timer.service would crash when trying to read it. This
is not a critical state file, so the fix is to catch the error and
delete the file if it is corrupted.
[ Test Plan ]
On a lxd container
systemctl start ua-timer.service
# check contents of /var/lib/ubuntu-advantage/jobs-status.json
cat /var/lib/ubuntu-advantage/jobs-status.json
# corrupt the file
head /dev/random >> /var/lib/ubuntu-advantage/jobs-status.json
systemctl start ua-timer.service
On an affected system, the service will crash. With the fix installed,
it will not crash.
[ Where problems could occur ]
Because this fix doesn't fix whatever was actually causing the invalid
utf-8 in the file, it may cover up the underlying bug indefinitely. If
it is a recurring problem a system, that system may re-run some pro
timer jobs more frequently than necessary. Note that the timer is only
enabled on attached systems.
[ Other Info ]
We could not reproduce the error, except by inserting invalid
characters in the file intentionally. 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.
[ 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 33.2~24.04.1, the problem page at https://errors.ubuntu.com/problem/ec1a626cb75b23a9228a49f84ecc3447a048ce92 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/.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2078737/+subscriptions