You are not logged in.

#1 2021-01-12 18:02:53

Cave_painter0
Member
Registered: 2021-01-12
Posts: 2

[SOLVED]firewalld wont load after SElinux rebuild.

I recently rebuilt my system with selinux and reinstalled python as well. At first glance, Firewalld is apparently missing python module 'gi.'

output of firewall-config

Traceback (most recent call last):
  File "/usr/bin/firewall-config", line 25, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'

attempting to start the firewalld service results in this error.

 firewalld.service - firewalld - dynamic firewall daemon
     Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Wed 2021-01-13 10:21:01 EST; 30s ago
       Docs: man:firewalld(1)
    Process: 26214 ExecStart=/usr/bin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=1/FAILURE)
   Main PID: 26214 (code=exited, status=1/FAILURE)

Jan 13 10:21:01 variation.nine systemd[1]: Starting firewalld - dynamic firewall daemon...
Jan 13 10:21:01 variation.nine systemd[1]: firewalld.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 10:21:01 variation.nine systemd[1]: firewalld.service: Failed with result 'exit-code'.
Jan 13 10:21:01 variation.nine systemd[1]: Failed to start firewalld - dynamic firewall daemon.

journalctl -xe says this

dbus-daemon[516]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service' requested by ':1.2325' (uid=0 pid=26440 comm="resolvconf -a enp5s0.ra " label="system_u:system_r:kernel_t")
service name='org.freedesktop.resolve1' unit=dbus-org.freedesktop.resolve1.service not found.

systemctl status

firewalld.service - firewalld - dynamic firewall daemon
     Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2021-01-14 17:27:45 EST; 3min 30s ago
       Docs: man:firewalld(1)
   Main PID: 97084 (code=exited, status=203/EXEC)

Jan 14 17:27:45 variation.nine systemd[1]: Starting firewalld - dynamic firewall daemon...
Jan 14 17:27:45 variation.nine systemd[97084]: firewalld.service: Failed to execute /usr/bin/firewalld: No such file or directory
Jan 14 17:27:45 variation.nine systemd[97084]: firewalld.service: Failed at step EXEC spawning /usr/bin/firewalld: No such file >
Jan 14 17:27:45 variation.nine systemd[1]: firewalld.service: Main process exited, code=exited, status=203/EXEC
Jan 14 17:27:45 variation.nine systemd[1]: firewalld.service: Failed with result 'exit-code'.
Jan 14 17:27:45 variation.nine systemd[1]: Failed to start firewalld - dynamic firewall daemon.
...skipping...
● firewalld.service - firewalld - dynamic firewall daemon
     Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2021-01-14 17:27:45 EST; 3min 30s ago
       Docs: man:firewalld(1)
   Main PID: 97084 (code=exited, status=203/EXEC)

The file is there and it has execute permissions for root. What the heck is going on?
EDIT:
I got dbus and resolved working fine, but firewalld not starting persists and i dont have anymore an idea what i have to do than before.

Last edited by Cave_painter0 (Yesterday 14:19:34)

Offline

#2 2021-01-13 00:15:56

edacval
Member
From: .LT
Registered: 2008-10-23
Posts: 71

Re: [SOLVED]firewalld wont load after SElinux rebuild.

Just query pacman database:

sudo pacman -Fy usr/lib/python3.9/site-packages/gi/__init__.py

Offline

#3 2021-01-13 15:30:55

Cave_painter0
Member
Registered: 2021-01-12
Posts: 2

Re: [SOLVED]firewalld wont load after SElinux rebuild.

[mod pls delete]

Last edited by Cave_painter0 (2021-01-14 22:07:00)

Offline

Board footer

Powered by FluxBB