dmesg need permission after kernel 5.8

Bug #1901000 reported by Alex Tu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
Confirmed
Medium
Unassigned
apport (Ubuntu)
Fix Released
High
Unassigned
Groovy
Fix Released
High
Unassigned

Bug Description

apport used to collect dmesg well before kernel 5.8.
But not it just show permission issue while collect dmesg so that apport not able to upload dmesg information for launchpad bugs after kernel 5.8.

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: apport 2.20.11-0ubuntu50
ProcVersionSignature: Ubuntu 5.8.0-25.26-generic 5.8.14
Uname: Linux 5.8.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
CasperMD5CheckResult: skip
CrashReports: 640:1001:125:66238:2020-10-15 18:43:14.784183502 +0800:2020-10-15 18:43:15.784183502 +0800:/var/crash/_usr_lib_ubuntu-release-upgrader_check-new-release-gtk.1001.crash
Date: Thu Oct 22 18:54:46 2020
InstallationDate: Installed on 2020-10-15 (7 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Beta amd64 (20201013.1)
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 2157 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDmesg:
 Error: command ['pkexec', 'dmesg'] failed with exit code 127: polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
 Error executing command as another user: Not authorized

 This incident has been reported.
DistroRelease: Ubuntu 20.10
InstallationDate: Installed on 2020-10-15 (7 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Beta amd64 (20201013.1)
MachineType: Dell Inc. Precision 5550
Package: linux-image-5.8.0-25-generic 5.8.0-25.26
PackageArchitecture: amd64
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-25-generic root=UUID=8ca13cda-8130-47e0-a506-138e96e7d2ce ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.8.0-25.26-generic 5.8.14
RelatedPackageVersions:
 linux-restricted-modules-5.8.0-25-generic N/A
 linux-backports-modules-5.8.0-25-generic N/A
 linux-firmware 1.190
Tags: groovy
Uname: Linux 5.8.0-25-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: sudo
WifiSyslog:

_MarkForUpload: True
acpidump:
 Error: command ['pkexec', '/usr/share/apport/dump_acpi_tables.py'] failed with exit code 127: polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
 Error executing command as another user: Not authorized

 This incident has been reported.
dmi.bios.date: 06/01/2020
dmi.bios.release: 1.2
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.2.1
dmi.board.name: 0203K4
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.asset.tag: 7654321
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.2.1:bd06/01/2020:br1.2:svnDellInc.:pnPrecision5550:pvr:rvnDellInc.:rn0203K4:rvrA00:cvnDellInc.:ct10:cvr:
dmi.product.family: Precision
dmi.product.name: Precision 5550
dmi.product.sku: 097E
dmi.sys.vendor: Dell Inc.

Revision history for this message
Alex Tu (alextu) wrote :
tags: added: apport-collected
description: updated
Revision history for this message
Alex Tu (alextu) wrote : AlsaInfo.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : CRDA.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : Dependencies.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : IwConfig.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : Lspci.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : Lspci-vt.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : Lsusb.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : Lsusb-t.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : Lsusb-v.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : PaInfo.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : ProcEnviron.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : ProcModules.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : PulseList.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : RfKill.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote : UdevDb.txt

apport information

Revision history for this message
Alex Tu (alextu) wrote :

the followed attached message from `apport-collect` shows it did ask permission, but still shows error message in launchpad description.

$ id
uid=1001(ubuntu) gid=1001(ubuntu) groups=1001(ubuntu),27(sudo)

$ apport-collect -p linux-image-5.8.0-25-generic 1901000
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/dmesg' as the super user
Multiple identities can be used for authentication:
 1. u,,, (u)
 2. ,,, (ubuntu)
Choose identity to authenticate as (1-2): 2
Password:
==== AUTHENTICATION FAILED ===
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/share/apport/dump_acpi_tables.py' as the super user
Multiple identities can be used for authentication:
 1. u,,, (u)
 2. ,,, (ubuntu)
Choose identity to authenticate as (1-2): 2
Password:
==== AUTHENTICATION FAILED ===
No journal files were opened due to insufficient permissions.

Unexcepted message in bug description:
```
CurrentDmesg:
 Error: command ['pkexec', 'dmesg'] failed with exit code 127: polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
 Error executing command as another user: Not authorized
```

Changed in oem-priority:
importance: Undecided → Critical
status: New → Confirmed
Rex Tsai (chihchun)
tags: added: oem-priority
Revision history for this message
Brian Murray (brian-murray) wrote :

It looks like attach_mac_events() in hookutils.py needs updating too. And the package hooks for update-manager and ubuntu-release-upgrader need updating too.

tags: added: rls-gg-incoming
tags: added: fr-886
tags: removed: rls-gg-incoming
Changed in apport (Ubuntu):
status: New → Confirmed
Changed in apport (Ubuntu Groovy):
status: New → Confirmed
Changed in apport (Ubuntu):
importance: Undecided → High
Changed in apport (Ubuntu Groovy):
importance: Undecided → High
Rex Tsai (chihchun)
Changed in oem-priority:
importance: Critical → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

Actually it is possible for dmesg to be collected provided you run apport in a GUI session or you run it as root. The actual problem is with there not being a pkagent running which is bug 1821415.

Changed in oem-priority:
status: Confirmed → Fix Released
Changed in apport (Ubuntu):
status: Confirmed → Fix Released
Changed in apport (Ubuntu Groovy):
status: Confirmed → Fix Released
Changed in oem-priority:
status: Fix Released → Confirmed
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.