Setelah memutakhirkan CentOS 7 ke CentOS 8, ketika mencoba memulai layanan firewalld, menemukan kesalahan:Exception DBusException: org.freedesktop.DBus.Error.AccessDenied
, namun bekerja sangat normal dengan instalasi baru CentOS 8!. Di bawah ini adalah kesalahan lengkapnya:
[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.
Cara memperbaiki Firewalld gagal memulai
Dengan bantuan laporan bug, dapat menemukan solusi. Mulai ulang layanan dbus dan kemudian mulai layanan firewalld.
# systemctl restart dbus
# systemctl restart firewalld
Namun, menemukan kesalahan lain: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'.
Karena sistem tidak di-boot ulang setelah pemutakhiran, kesalahan di atas. Setelah mem-boot ulang sistem, saya berhasil memulai layanan firewalld di CentOS 8.