Bug 2019536 - [abrt] power-profiles-daemon: __call__(): powerprofilesctl:138:_list:SystemError
Summary: [abrt] power-profiles-daemon: __call__(): powerprofilesctl:138:_list:SystemError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: power-profiles-daemon
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Bastien Nocera
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:2b01d2133bf5e6d230679a2a6d9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-02 18:53 UTC by jakob
Modified: 2022-05-02 09:13 UTC (History)
4 users (show)

Fixed In Version: power-profiles-daemon-0.10.1-2.fc35
Clone Of:
Environment:
Last Closed: 2021-11-14 04:07:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.17 KB, text/plain)
2021-11-02 18:53 UTC, jakob
no flags Details
File: cpuinfo (2.72 KB, text/plain)
2021-11-02 18:53 UTC, jakob
no flags Details
File: environ (3.93 KB, text/plain)
2021-11-02 18:53 UTC, jakob
no flags Details
File: mountinfo (5.33 KB, text/plain)
2021-11-02 18:53 UTC, jakob
no flags Details
File: namespaces (172 bytes, text/plain)
2021-11-02 18:53 UTC, jakob
no flags Details
File: open_fds (737 bytes, text/plain)
2021-11-02 18:53 UTC, jakob
no flags Details

Description jakob 2021-11-02 18:53:48 UTC
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:

Comment 1 jakob 2021-11-02 18:53:51 UTC
Created attachment 1839299 [details]
File: backtrace

Comment 2 jakob 2021-11-02 18:53:52 UTC
Created attachment 1839300 [details]
File: cpuinfo

Comment 3 jakob 2021-11-02 18:53:53 UTC
Created attachment 1839301 [details]
File: environ

Comment 4 jakob 2021-11-02 18:53:55 UTC
Created attachment 1839302 [details]
File: mountinfo

Comment 5 jakob 2021-11-02 18:53:56 UTC
Created attachment 1839303 [details]
File: namespaces

Comment 6 jakob 2021-11-02 18:53:57 UTC
Created attachment 1839304 [details]
File: open_fds

Comment 7 jakob 2021-11-02 18:59:49 UTC
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.

Comment 8 jakob 2021-11-02 19:03:35 UTC
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)

Comment 9 tanguy-3 2021-11-03 11:21:42 UTC
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

Comment 10 jakob 2021-11-03 14:19:10 UTC
(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.

Comment 11 Daniel Blittschau 2021-11-06 01:22:39 UTC
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

Comment 12 Daniel Blittschau 2021-11-06 01:29:26 UTC
re: Daniel Blittschau (old account)-

Seems that removing tlp resolved the issue.

Comment 13 Bastien Nocera 2021-11-08 15:03:46 UTC
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.

Comment 14 Fedora Update System 2021-11-08 15:06:40 UTC
FEDORA-2021-311cb47cbc has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-311cb47cbc

Comment 15 Fedora Update System 2021-11-09 02:22:22 UTC
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.

Comment 16 Fedora Update System 2021-11-14 04:07:11 UTC
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.

Comment 17 mcgeenbm@btinternet.com 2022-05-02 09:13:21 UTC
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


Note You need to log in before you can comment on or make changes to this bug.