OS/Linux

๐Ÿ› [TroubleShooting] Failed to start firewalld : dynamic firewall daemon

S.A.H 2024. 2. 5. 23:32
๋ฐ˜์‘ํ˜•

๐Ÿ“ŒTroubleshooting - ๋ฐฉํ™”๋ฒฝ ๋ฐ๋ชฌ์ด ์‹คํ–‰๋˜์ง€ ์•Š์€ ํ˜„์ƒ

 

๐Ÿ” ๋ฌธ์ œ ๋Œ€์ƒ: RHEL 8 ์„œ๋ฒ„

๐Ÿ” ํ˜„์ƒ:

  1) /etc/firewalld/direct.xml ๅ…ง ํ—ˆ์šฉ IP์ •์ฑ…์„ viํŽธ์ง‘๊ธฐ๋กœ ์ˆ˜์ •

  2) systemctl restart firewalld  → firewall daemon์ด ์žฌ์‹œ์ž‘ ๋ชปํ•จ

  3) systemctl stop firewalld ๋กœ firewall daemon ์ค‘์ง€ ํ›„ start ํ•˜์˜€์œผ๋‚˜ ๊ธฐ๋™ ๋ถˆ๊ฐ€ ERROR ๋ฐœ์ƒ

#systemctl start firewalld

Job for firewalld.service failed because the control process exited with error code. 
See "systemctl status firewalld.service" and "journalctl -xe" for details.

 

#systemctl status firewalld
Feb 01 10:08:09 TEST-SERVER python3[1974]: detected unhandled Python exception in '/usr/sbin/firewalld'
Feb 01 10:08:09 TEST-SERVER systemd[1]: firewalld.service: main process exited, code=exited, status=1/FAILURE
Feb 01 10:08:09 TEST-SERVER systemd[1]: Failed to start firewalld - dynamic firewall daemon.
Unit firewalld.service has failed

 

 

* /var/log/firewalld , /var/log/messages, /var/log/syslog ๋“ฑ ์ •๋ณด ํ™•์ธ

* journalctl -xe ๋ช…๋ น์–ด๋กœ ์ถ”๊ฐ€์ •๋ณด ํ™•์ธ

 

๐Ÿ” ํ•ด๊ฒฐ: ์ƒํƒœ๋กœ ๋ณด์•˜์„ ๋•Œ, python์„ ํ•ธ๋“ค๋ง ํ•˜์ง€ ๋ชปํ•ด daemon ์‹คํ–‰์— ์˜ํ–ฅ์„ ์ค€ ๊ฒƒ์œผ๋กœ ๋ณด์ž„.

 1) yum reinstall firewalld → firewalld ํŒจํ‚ค์ง€ ์žฌ์„ค์น˜ ์ง„ํ–‰

 2) systemctl start firewalld

 3) ์ •์ƒ ์ž‘๋™

๋ฐ˜์‘ํ˜•