This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1464530 - thermald-monitor will not launch, error message
thermald-monitor will not launch, error message
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: thermald (Show other bugs)
26
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Björn "besser82" Esser
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-23 12:48 EDT by Chris Murphy
Modified: 2017-06-23 14:12 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-06-23 14:12:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Chris Murphy 2017-06-23 12:48:35 EDT
Description of problem:

Launching thermald-monitor from GNOME, I get this message

Make sure that thermal daemon started with --dbus-enable option and that you're in the 'power' group.


Version-Release number of selected component (if applicable):
thermald-1.6-3.fc26.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install thermald and thermald-monitor
2. sudo systemctl start thermald
3. Launch thermald-monitor from gnome-shell

Actual results:

Error message

Expected results:

Should launch

Additional info:

$ groups
chris wheel

$ cat /etc/group | grep chris
wheel:x:10:chris
chris:x:1000:
power:x:980:chris


[chris@f26h ~]$ ps aux | grep thermald
root      4088  0.0  0.1 255880  9008 ?        Ssl  10:36   0:00 /usr/sbin/thermald --no-daemon --dbus-enable


I wonder if the --no-daemon option is causing this problem?

[chris@f26h ~]$ sudo systemctl stop thermald
[chris@f26h ~]$ sudo /usr/sbin/thermald --dbus-enable
Ready to serve requests: Daemonizing.. 1

Nope, it still fails the same message.

If I use journalctl -f to follow messages while launching thermald-monitor.

Jun 23 10:46:53 f26h.localdomain gnome-shell[1823]: gsignal.c:2641: instance '0x5588b8799770' has no handler with id '143670'
Jun 23 10:46:53 f26h.localdomain gnome-shell[1823]: gsignal.c:2641: instance '0x5588b8799770' has no handler with id '143671'
Jun 23 10:46:53 f26h.localdomain dbus-daemon[932]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.150" (uid=1000 pid=4455 comm="/usr/bin/ThermalMonitor " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination="org.freedesktop.thermald" (uid=0 pid=4427 comm="/usr/sbin/thermald --dbus-enable " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Jun 23 10:46:53 f26h.localdomain dbus-daemon[932]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.150" (uid=1000 pid=4455 comm="/usr/bin/ThermalMonitor " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023") interface="org.freedesktop.thermald" member="GetSensorCount" error name="(unset)" requested_reply="0" destination="org.freedesktop.thermald" (uid=0 pid=4427 comm="/usr/sbin/thermald --dbus-enable " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Jun 23 10:46:53 f26h.localdomain thermald-monitor.desktop[4455]: error from "org.freedesktop.thermald" = QDBusError("org.freedesktop.DBus.Error.AccessDenied", "Rejected send message, 2 matched rules; type=\"method_call\", sender=\":1.150\" (uid=1000 pid=4455 comm=\"/usr/bin/ThermalMonitor \" label=\"unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\") interface=\"org.freedesktop.thermald\" member=\"GetSensorCount\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.thermald\" (uid=0 pid=4427 comm=\"/usr/sbin/thermald --dbus-enable \" label=\"unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\")")
Jun 23 10:46:53 f26h.localdomain org.gnome.Shell.desktop[1823]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x2c00007 specified for 0x2c00005 (Can't esta).
Jun 23 10:46:53 f26h.localdomain gnome-shell[1823]: _onFocus [object instance proxy GType:MetaWindowX11 jsobj@0x7f33bddee280 native@0x5588b9500780]
Jun 23 10:46:56 f26h.localdomain gnome-shell[1823]: _onFocus [object instance proxy GType:MetaWindowWayland jsobj@0x7f33bcebcb20 native@0x5588b98020f0]



Hmm it's not an AVC denial but does seem maybe selinux related.
Comment 1 Björn "besser82" Esser 2017-06-23 13:52:13 EDT
Did you try logging out of your session and start ThermalMonitor after logging in again?

It usually takes a logout / login for the new group-permissions to take effect.
Comment 2 Björn "besser82" Esser 2017-06-23 13:55:30 EDT
(In reply to Chris Murphy from comment #0)

> $ groups
> chris wheel

`groups` shows the new group is not active in the current user session.


> $ cat /etc/group | grep chris
> wheel:x:10:chris
> chris:x:1000:
> power:x:980:chris


As I just said…  Logging out of user session and logging in again should most likely fix your problem.
Comment 3 Chris Murphy 2017-06-23 14:12:12 EDT
Yep. Now I run into bug 1464548 so I'll close this one.

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