Po upgradu mého CentOS 7 na CentOS 8 při pokusu o spuštění služby firewalld došlo k chybě:Exception DBusException: org.freedesktop.DBus.Error.AccessDenied
, nicméně funguje naprosto normálně s novou instalací CentOS 8!. Níže je úplná chyba:
[root@upgrade-centos ~]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled) Active: inactive (dead) since Wed 2022-02-16 15:14:18 IST; 2s ago Docs: man:firewalld(1) Process: 27773 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS) Main PID: 27773 (code=exited, status=0/SUCCESS) Feb 16 15:14:18 upgrade-centos systemd[1]: Starting firewalld - dynamic firewall daemon... Feb 16 15:14:18 upgrade-centos firewalld[27773]: ERROR: Exception DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.129" is not allowed to own the service "org.fedoraproject.FirewallD1" due to security policies in t> Feb 16 15:14:18 upgrade-centos systemd[1]: firewalld.service: Succeeded. Feb 16 15:14:18 upgrade-centos systemd[1]: Started firewalld - dynamic firewall daemon.
Jak opravit Firewalld se nespustí
S pomocí hlášení o chybě schopni najít řešení. Restartujte službu dbus a poté spusťte službu firewalld.
# systemctl restart dbus
# systemctl restart firewalld
Došlo však k další chybě:firewalld.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
[root@upgrade-centos ~]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2022-02-16 15:16:42 IST; 3s ago Docs: man:firewalld(1) Process: 27835 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=3) Main PID: 27835 (code=exited, status=3) Feb 16 15:16:42 upgrade-centos systemd[1]: Starting firewalld - dynamic firewall daemon... Feb 16 15:16:42 upgrade-centos systemd[1]: Started firewalld - dynamic firewall daemon. Feb 16 15:16:42 upgrade-centos systemd[1]: firewalld.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED Feb 16 15:16:42 upgrade-centos systemd[1]: firewalld.service: Failed with result 'exit-code'.
Vzhledem k tomu, že systém nebyl po upgradu restartován, došlo k výše uvedené chybě. Po restartu systému se mi podařilo úspěšně spustit službu firewallu na CentOS 8.