Bug 1227218 - security/fail2ban: Bug "Failed to restart firewalld.service: Transaction contains conflicting jobs 'restart' and 'stop' for fail2ban.service. Probably contradicting requirement dependencies configured."
Summary: security/fail2ban: Bug "Failed to restart firewalld.service: Transaction cont...
Status: NEW
Alias: None
Product: openSUSE.org
Classification: openSUSE
Component: 3rd party software (show other bugs)
Version: unspecified
Hardware: Other openSUSE Leap 15.5
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Johannes Weberhofer
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-01 08:06 UTC by Ákos Szőts
Modified: 2024-07-01 08:10 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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