/usr/bin/software-properties-gtk:TypeError:msg_reply_handler:_enabled_reply_handler:__call__:call_async

Bug #1830348 reported by errors.ubuntu.com bug bridge
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
High
Unassigned
Bionic
Fix Released
Undecided
Unassigned

Bug Description

* Impact
Some livepatch errors case are not handling correctly and leading to having an error report rather than a error message

* Test case

Unsure how to trigger that livepatch error state, but that can be tested by hacking the source and set the 'token' parameter to the calls to SetLivePatchEnabled() to None

Also check that the error reports stop for the new version

* Regression potential

The change is to use an empty string instead of None on error, since the type was incorrect and that case not working it should regress (it could keep not working if the other type was still not valid though, but that shouldn't be the case)

---------------------------------

The Ubuntu Error Tracker has been receiving reports about a problem regarding software-properties. This problem was most recently seen with package version 0.96.24.32.8, the problem page at https://errors.ubuntu.com/problem/ca90da51d0612253e93b8547563a5d9c7c900104 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/.

Related branches

Revision history for this message
Sebastien Bacher (seb128) wrote :

The isssue seems an incorrectly handler of error cases

'Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 604, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/LivepatchPage.py", line 363, in _enabled_reply_handler
    timeout=1200)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 137, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 584, in call_async
    message.append(signature=signature, *args)
TypeError: Expected a string or unicode object'

Looking at some of the reports their journal log have such errors

'canonical-livepatch[851]: cannot disable machine: cannot send request: Delete https://livepatch.canonical.com/api/machine-tokens: net/http: TLS handshake timeout
update-notifier.desktop[1556]: ERROR:dbus.connection:Unable to set arguments (True, None) according to signature 'bs': <class 'TypeError'>: Expected a string or unicode object'

or

'canonical-livepatch[1161]: error in livepatch check state: check-failed
canonical-livepatch[1161]: No payload available.
update-notifier.desktop[3255]: ERROR:dbus.connection:Unable to set arguments (False, None) according to signature 'bs': <class 'TypeError'>: Expected a string or unicode object'

Changed in software-properties (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in software-properties (Ubuntu):
status: Confirmed → Fix Committed
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello errors.ubuntu.com, or anyone else affected,

Accepted software-properties into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software-properties/0.96.24.32.9 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in software-properties (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.98.3

---------------
software-properties (0.98.3) eoan; urgency=medium

  * debian/control:
    - required snapd-glib 1.42 (lp: #1830353)
  * data/software-properties-drivers.desktop.in:
    - enable the "Additional Drivers" desktop entry under GNOME, having it
      in "software sources" is not logical (lp: #1710377)

  [ Iain Lane ]
  * softwareproperties/gtk/LivepatchPage.py:
    - livepatch: Always pass a string to SetLivePatchEnabled (lp: #1830348)

 -- Sebastien Bacher <email address hidden> Fri, 24 May 2019 15:20:34 +0200

Changed in software-properties (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

Using 0.96.24.32.9 shows no problem, the fix makes sense and e.u.c has no report, marking as verified

tags: added: verification-done verification-done-bionic
removed: verification-needed verification-needed-bionic
tags: added: regression-update
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for software-properties has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.96.24.32.9

---------------
software-properties (0.96.24.32.9) bionic; urgency=medium

  * debian/control:
    - required snapd-glib 1.42 (lp: #1830353)

  [ Iain Lane ]
  * softwareproperties/gtk/LivepatchPage.py:
    - livepatch: Always pass a string to SetLivePatchEnabled (lp: #1830348)

  [ Corey Bryant ]
  * cloudarchive: Enable support for the Train Ubuntu Cloud Archive on
    18.04 (LP: #1829017).

 -- Sebastien Bacher <email address hidden> Fri, 24 May 2019 17:03:01 +0200

Changed in software-properties (Ubuntu Bionic):
status: Fix Committed → Fix Released
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.