Bug 1227218

Summary: security/fail2ban: Bug "Failed to restart firewalld.service: Transaction contains conflicting jobs 'restart' and 'stop' for fail2ban.service. Probably contradicting requirement dependencies configured."
Product: [openSUSE] openSUSE.org Reporter: Ákos Szőts <szotsaki>
Component: 3rd party softwareAssignee: Johannes Weberhofer <jweberhofer>
Status: NEW --- QA Contact: E-mail List <screening-team-bugs>
Severity: Normal    
Priority: P5 - None CC: meissner
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE Leap 15.5   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ákos Szőts 2024-07-01 08:06:48 UTC
When I try to restart firewalld.service it fails because of the following error message:

Failed to restart firewalld.service: Transaction contains conflicting jobs 'restart' and 'stop' for fail2ban.service. Probably contradicting requirement dependencies configured.
See system logs and 'systemctl status firewalld.service' for details.

firewalld.service is depending on fail2ban.service but not the other way around (however you see it mentioned only in the fail2ban.service file):

$> systemctl list-dependencies firewalld.service | grep fail2ban
● ├─fail2ban.service
$> systemctl list-dependencies fail2ban.service | grep firewalld

OS: openSUSE Leap 15.6
Comment 1 Ákos Szőts 2024-07-01 08:10:32 UTC
Also, you need both to be enabled:


systemctl enable --now fail2ban.service
systemctl enable --now firewalld.service
systemctl restart firewalld.service