Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to start firewalld on centos 7

I installed firewalld on my centos server but as I tried to start it I got this:

$ sudo systemctl start firewalld
Job for firewalld.service failed. See 'systemctl status firewalld.service' and 'journalctl -xn' for details.

here is the systemctl status:

sudo systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
   Active: failed (Result: exit-code) since پنجشنبه 2016-04-07 05:36:17 UTC; 9s ago
  Process: 929 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=1/FAILURE)
 Main PID: 929 (code=exited, status=1/FAILURE)

آوریل 07 05:36:17 server1.hamed1soleimani.ir systemd[1]: firewalld.service: main process exited, code=exited, status=1/FAILURE
آوریل 07 05:36:17 server1.hamed1soleimani.ir systemd[1]: Failed to start firewalld - dynamic firewall daemon.
آوریل 07 05:36:17 server1.hamed1soleimani.ir systemd[1]: Unit firewalld.service entered failed state.

and firewall-cmd status:

sudo firewall-cmd --stat
Traceback (most recent call last):
  File "/bin/firewall-cmd", line 24, in <module>
    from gi.repository import GObject
  File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 37, in <module>
    from . import _gi
ImportError: /usr/lib64/python2.7/site-packages/gi/_gi.so: undefined symbol: g_type_check_instance_is_fundamentally_a

I cant realize relation between firewalld and some gtk python extensions!

like image 651
hamed1soleimani Avatar asked Apr 07 '16 05:04

hamed1soleimani


People also ask

How do I restart firewalld service?

To reload firewalld you can either use the command line tool firewall-cmd --reload or you can send the SIGHUP signal to firewalld for example with killall -HUP firewalld . The killall -HUP firewalld step is executed when running systemctl reload firewalld .


1 Answers

This worked for me:

systemctl stop firewalld
pkill -f firewalld
systemctl start firewalld
like image 116
Dan Bray Avatar answered Nov 08 '22 01:11

Dan Bray