firewalld.service and tuned.service fail to start

Latest response

Red Hat Enterprise Server 8.2

Two services are failing at startup and would not start even when started manually:

  • firewalld.service

Oct 05 15:22:34 server001 systemd[1]: Starting firewalld - dynamic firewall daemon...
-- Subject: Unit firewalld.service has begun start-up
-- Defined-By: systemd

-- Support: https://access.redhat.com/support

-- Unit firewalld.service has begun starting up.
Oct 05 15:22:34 server001 platform-python[14478]: detected unhandled Python exception in '/usr/sbin/firewalld'
Oct 05 15:22:34 server001 systemd[1]: firewalld.service: Main process exited, code=exited, status=1/FAILURE
Oct 05 15:22:34 server001 systemd[1]: firewalld.service: Failed with result 'exit-code'.
Oct 05 15:22:34 server001 systemd[1]: Failed to start firewalld - dynamic firewall daemon.
-- Subject: Unit firewalld.service has failed
-- Defined-By: systemd

-- Support: https://access.redhat.com/support

-- Unit firewalld.service has failed.

-- The result is failed.

  • tuned.service

systemctl status tuned.service

● tuned.service - Dynamic System Tuning Daemon
Loaded: loaded (/usr/lib/systemd/system/tuned.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-10-05 14:41:49 CDT; 46min ago
Docs: man:tuned(8)
man:tuned.conf(5)
man:tuned-adm(8)
Process: 3496 ExecStart=/usr/sbin/tuned -l -P (code=exited, status=1/FAILURE)
Main PID: 3496 (code=exited, status=1/FAILURE)

Oct 05 14:41:49 server001 tuned[3496]: File "/usr/lib/python3.6/site-packages/tuned/profiles/init.py", line 1, in
Oct 05 14:41:49 server001 tuned[3496]: from tuned.profiles.locator import *
Oct 05 14:41:49 server001 tuned[3496]: File "/usr/lib/python3.6/site-packages/tuned/profiles/locator.py", line 3, in
Oct 05 14:41:49 server001 tuned[3496]: from configobj import ConfigObj, ConfigObjError
Oct 05 14:41:49 server001 tuned[3496]: File "/usr/lib/python3.6/site-packages/configobj.py", line 22, in
Oct 05 14:41:49 server001 tuned[3496]: import six
Oct 05 14:41:49 server001 tuned[3496]: ModuleNotFoundError: No module named 'six'
Oct 05 14:41:49 server001 systemd[1]: tuned.service: Main process exited, code=exited, status=1/FAILURE
Oct 05 14:41:49 server001 systemd[1]: tuned.service: Failed with result 'exit-code'.
Oct 05 14:41:49 server001 systemd[1]: Failed to start Dynamic System Tuning Daemon.
[root@rad-dwlab01 ~]#

Any ideas on how to fix this ?

:(

Responses

tuned tries to import six which fails. Try yum install python3-six. Maybe the tuned package is missing a dependency.

Package python3-six-1.11.0-8.el8.noarch is already installed.

:(

There is also an error running yum:

/usr/local/lib/python3.6/site-packages/dateutil/parser/_parser.py:70: UnicodeWarning: decode() called on unicode string, see https://bugzilla.redhat.com/show_bug.cgi?id=1693751 instream = instream.decode()

Going over Bug 1693751 doesn't seem to shed light on this either.

:( :( :(

Maybe something is corrupt within Python?

If you verify all RPMs like rpm -Va do you get a large list of problems? Perhaps problems in Python? It's normal for logs and config files/directories to be different in this output.

I had this issue and I got fed up with chasing all the potential reasons for the errors with python and I ended up running yum reinstall python*' probably overkill and not recommended but that fixed it.