Tuned-ppd.service start error

            filename, maxBytes = int(maxBytes), backupCount = int(backupCount))
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/logging/handlers.py", line 161, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding=encoding,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 delay=delay, errors=errors)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/logging/handlers.py", line 64, in __init__
    logging.FileHandler.__init__(self, filename, mode=mode,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 encoding=encoding, delay=delay,
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 errors=errors)
                                 ^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/logging/__init__.py", line 1219, in __init__
    StreamHandler.__init__(self, self._open())
                                 ~~~~~~~~~~^^
  File "/usr/lib64/python3.13/logging/__init__.py", line 1248, in _open
    return open_func(self.baseFilename, self.mode,
                     encoding=self.encoding, errors=self.errors)
PermissionError: [Errno 13] Permission denied: '/var/log/tuned/tuned-ppd.log'

@lostmason Likely SELinux related, follow the link in the Forum side panel to the SELinux Portal and run through the steps to check, also look at the troubleshooting link. I may just need an auto relabel.

type=AVC msg=audit(1789042906.187:97): avc:  denied  { write } for  pid=2760 comm="tuned-ppd" name="tuned" dev="dm-1" ino=1678042571 scontext=system_u:system_r:tuned_ppd_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=dir permissive=0
----
type=AVC msg=audit(1789042911.130:120): avc:  denied  { write } for  pid=3675 comm="tuned-ppd" name="tuned" dev="dm-1" ino=1678042571 scontext=system_u:system_r:tuned_ppd_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=dir permissive=0
----
type=AVC msg=audit(1789042911.480:122): avc:  denied  { write } for  pid=4032 comm="tuned-ppd" name="tuned" dev="dm-1" ino=1678042571 scontext=system_u:system_r:tuned_ppd_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=dir permissive=0

@lostmason did you try the auto relabel? If you use sentenforce and set to zero, does it activate? Look at the link and create a bug report.

setenforce 0 does indeed allow it to start.

So, I would suggest a bug report (they are responsive) if the autorelabel doesn’t work.

I did an autorelabel and that fixed it the next reboot as well.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.