Bug 2019536
| Summary: | [abrt] power-profiles-daemon: __call__(): powerprofilesctl:138:_list:SystemError | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | jakob | ||||||||||||||
| Component: | power-profiles-daemon | Assignee: | Bastien Nocera <bnocera> | ||||||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||
| Priority: | unspecified | ||||||||||||||||
| Version: | 35 | CC: | bnocera, bugs, d, tanguy-3 | ||||||||||||||
| Target Milestone: | --- | ||||||||||||||||
| Target Release: | --- | ||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||
| OS: | Unspecified | ||||||||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/1ce15e8386e202261a25c6e196921f1b3eedf182 | ||||||||||||||||
| Whiteboard: | abrt_hash:2b01d2133bf5e6d230679a2a6d9da09349a1f3f1;VARIANT_ID=workstation; | ||||||||||||||||
| Fixed In Version: | power-profiles-daemon-0.10.1-2.fc35 | Doc Type: | If docs needed, set a value | ||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||
| Last Closed: | 2021-11-14 04:07:11 UTC | Type: | --- | ||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||
| Embargoed: | |||||||||||||||||
| Attachments: |
|
||||||||||||||||
Created attachment 1839299 [details]
File: backtrace
Created attachment 1839300 [details]
File: cpuinfo
Created attachment 1839301 [details]
File: environ
Created attachment 1839302 [details]
File: mountinfo
Created attachment 1839303 [details]
File: namespaces
Created attachment 1839304 [details]
File: open_fds
I manually installed power-profiles-daemon 0.8.1 on fedora 34 and that worked without issues. After the upgrade to fedora 35 and power-profiles-daemon 0.10.1 it no longer works.
❯ powerprofilesctl get
Traceback (most recent call last):
File "/usr/bin/powerprofilesctl", line 262, in <module>
main()
File "/usr/bin/powerprofilesctl", line 211, in main
_get()
File "/usr/bin/powerprofilesctl", line 106, in _get
profile = proxy.Get('(ss)', 'net.hadess.PowerProfiles', 'ActiveProfile')
File "/usr/lib/python3.10/site-packages/gi/overrides/Gio.py", line 349, in __call__
result = self.dbus_proxy.call_sync(self.method_name, arg_variant,
gi.repository.GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer. (3)
❯ sudo gdbus introspect --system --dest net.hadess.PowerProfiles --object-path /net/hadess/PowerProfiles
Error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer.
For some reason the systemd service is masked (dead)
❯ sudo systemctl status power-profiles-daemon.service
○ power-profiles-daemon.service
Loaded: masked (Reason: Unit power-profiles-daemon.service is masked.)
Active: inactive (dead)
I did : sudo dnf remove power-profiles-daemon sudo rm /etc/systemd/system/power-profiles-daemon.service sudo dnf install power-profiles-daemon sudo systemctl enable power-profiles-daemon sudo systemctl start power-profiles-daemon And it's working now (In reply to jakob from comment #8) > For some reason the systemd service is masked (dead) > > ❯ sudo systemctl status power-profiles-daemon.service > ○ power-profiles-daemon.service > Loaded: masked (Reason: Unit power-profiles-daemon.service is masked.) > Active: inactive (dead) This was probably because I had tlp installed. Removing that and manually enabling the service fixed the issue for me. For some reason, tlp wasn't an issues with the older version of power-profiles-daemon. Similar problem has been detected: I just ran powerprofilesctl in a terminal. I'm trying to use power profiles in Gnome settings but they are not there. reporter: libreport-2.15.2 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-55ae77ba-99e0-46ba-993b-9a3cd0e96365.scope cmdline: /usr/bin/python3 /usr/bin/powerprofilesctl crash_function: __call__ exception_type: gi.repository.GLib.GError executable: /usr/bin/powerprofilesctl interpreter: python3-3.10.0-1.fc35.x86_64 kernel: 5.14.16-350.vanilla.1.fc35.x86_64 package: power-profiles-daemon-0.10.1-1.fc35 reason: powerprofilesctl:138:_list:SystemError runlevel: N 5 type: Python3 uid: 1000 re: Daniel Blittschau (old account)- Seems that removing tlp resolved the issue. https://bodhi.fedoraproject.org/updates/FEDORA-2021-311cb47cbc contains a fix for power-profiles-daemon not being enabled by default on upgrades. The upstream bug fix https://gitlab.freedesktop.org/hadess/power-profiles-daemon/-/merge_requests/95 should avoid abrt unhelpfully reporting _every_ _single_ _traceback_ as a bug. FEDORA-2021-311cb47cbc has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-311cb47cbc FEDORA-2021-311cb47cbc has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-311cb47cbc` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-311cb47cbc See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-311cb47cbc has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. Similar problem has been detected: `Fedora 35 to fedora 36 update reporter: libreport-2.17.1 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-0e3ce7e0-ddb4-47b7-b841-2e9982457052.scope cmdline: /usr/bin/python3 /usr/bin/powerprofilesctl crash_function: __call__ exception_type: gi.repository.GLib.GError executable: /usr/bin/powerprofilesctl interpreter: python3-3.10.4-1.fc35.x86_64 kernel: 5.17.4-200.fc35.x86_64 package: power-profiles-daemon-0.10.1-2.fc35 reason: powerprofilesctl:138:_list:SystemError runlevel: N 5 type: Python3 uid: 1000 |
Version-Release number of selected component: power-profiles-daemon-0.10.1-1.fc35 Additional info: reporter: libreport-2.15.2 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-0024963f-2375-4e2d-8384-a8cfa2e1f45f.scope cmdline: /usr/bin/python3 /usr/bin/powerprofilesctl crash_function: __call__ exception_type: gi.repository.GLib.GError executable: /usr/bin/powerprofilesctl interpreter: python3-3.10.0-1.fc35.x86_64 kernel: 5.14.14-300.fc35.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: powerprofilesctl:138:_list:SystemError Traceback (most recent call last): File "/usr/bin/powerprofilesctl", line 124, in get_profiles_property profiles = proxy.Get('(ss)', 'net.hadess.PowerProfiles', prop) File "/usr/lib/python3.10/site-packages/gi/overrides/Gio.py", line 349, in __call__ result = self.dbus_proxy.call_sync(self.method_name, arg_variant, gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer. (3) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/powerprofilesctl", line 132, in _list profiles = get_profiles_property('Profiles') File "/usr/bin/powerprofilesctl", line 126, in get_profiles_property raise ReferenceError ReferenceError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/powerprofilesctl", line 262, in <module> main() File "/usr/bin/powerprofilesctl", line 218, in main _list() File "/usr/bin/powerprofilesctl", line 138, in _list raise SystemError SystemError Local variables in innermost frame: