You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing this error on (only) one of my nodes where the same configuration is working on other similar nodes.
Usage is simply:
class { 'fail2ban':
config_file_template => "fail2ban/${codename}/etc/fail2ban/jail.conf.erb",
package_ensure => 'latest',
}
Error: Systemd start for fail2ban failed!
journalctl log for fail2ban:
-- Logs begin at Fri 2017-06-23 21:32:14 UTC, end at Tue 2017-06-27 19:57:29 UTC. --
Jun 27 19:57:29 myServer systemd[1]: Starting Fail2Ban Service...
Jun 27 19:57:29 myServer fail2ban-client[26333]: ERROR There is no directory /var/run/fail2ban to contain the socket file /var/run/fail2ban/fail2ban.sock.
Jun 27 19:57:29 myServer systemd[1]: fail2ban.service: control process exited, code=exited status=255
Jun 27 19:57:29 myServer systemd[1]: Failed to start Fail2Ban Service.
Jun 27 19:57:29 myServer systemd[1]: Unit fail2ban.service entered failed state.
Jun 27 19:57:29 myServer systemd[1]: fail2ban.service failed.
...
Notice: /Stage[main]/Fail2ban/Anchor[fail2ban::end]: Dependency Service[fail2ban] has failures: true
Warning: /Stage[main]/Fail2ban/Anchor[fail2ban::end]: Skipping because of failed dependencies
attempted workaround
I tried mkdir /var/run/fail2ban && chmod 777 /var/run/fail2ban before puppet agent --test and now I get /var/run/fail2ban exists but not accessible for writing
Jun 27 20:17:35 myServer fail2ban-client[25399]: ERROR Directory /var/run/fail2ban exists but not accessible for writing
Jun 27 20:17:35 myServer systemd[1]: fail2ban.service: control process exited, code=exited status=255
Jun 27 20:17:35 myServer systemd[1]: Failed to start Fail2Ban Service.
Jun 27 20:17:35 myServer systemd[1]: Unit fail2ban.service entered failed state.
Jun 27 20:17:35 myServer systemd[1]: fail2ban.service failed.
I'm seeing this error on (only) one of my nodes where the same configuration is working on other similar nodes.
Usage is simply:
attempted workaround
I tried
mkdir /var/run/fail2ban && chmod 777 /var/run/fail2banbeforepuppet agent --testand now I get/var/run/fail2ban exists but not accessible for writingWhich is weird because
Node info:
CentOS Linux release 7.2.1511 (Core).The text was updated successfully, but these errors were encountered: