Could not get banned list

I just discovered the server is unable to show the banned list in the intrusion detection. It’s possible this error is caused by the recent issue I was trying to fix (Broken Sysadmin module).

When I go to Sysadmin–>intrusion detection, I got the following error:
Exception
Could not get banned list
COPY
Click Here Report this to the PBX bug tracker
Stack frames (4)
3
Exception
/var/www/html/admin/modules/sysadmin/Sysadmin.class.php1719
2
FreePBX\modules\Sysadmin getFail2BanList
/var/www/html/admin/modules/sysadmin/functions.inc/intrusion.php58
1
sysadmin_get_banned
/var/www/html/admin/modules/sysadmin/page.sysadmin.php377
0
include
/var/www/html/admin/config.php560

No idea how to fix this!!
Please help…

I checked yum info fail2ban. The serve came back and said fail2ban not installed.
Tried to run yum install fail2ban but failed…

[root@freepbx ~]# yum install fail2ban
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
Resolving Dependencies
–> Running transaction check
—> Package fail2ban.noarch 0:0.9.7-1.el7 will be installed
–> Processing Dependency: fail2ban-firewalld = 0.9.7-1.el7 for package: fail2ban-0.9.7-1.el7.noarch
–> Processing Dependency: fail2ban-sendmail = 0.9.7-1.el7 for package: fail2ban-0.9.7-1.el7.noarch
–> Processing Dependency: fail2ban-server = 0.9.7-1.el7 for package: fail2ban-0.9.7-1.el7.noarch
–> Running transaction check
—> Package fail2ban-firewalld.noarch 0:0.9.7-1.el7 will be installed
—> Package fail2ban-sendmail.noarch 0:0.9.7-1.el7 will be installed
—> Package fail2ban-server.noarch 0:0.9.7-1.el7 will be installed
–> Processing Dependency: systemd-python for package: fail2ban-server-0.9.7-1.el7.noarch
–> Running transaction check
—> Package systemd-python.x86_64 0:219-42.el7_4.7 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================
Package Arch Version Repository Size

Installing:
fail2ban noarch 0.9.7-1.el7 sng-epel 11 k
Installing for dependencies:
fail2ban-firewalld noarch 0.9.7-1.el7 sng-epel 11 k
fail2ban-sendmail noarch 0.9.7-1.el7 sng-epel 14 k
fail2ban-server noarch 0.9.7-1.el7 sng-epel 288 k
systemd-python x86_64 219-42.el7_4.7 sng-updates 117 k

Transaction Summary

Install 1 Package (+4 Dependent packages)

Total size: 442 k
Installed size: 1.1 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test

Transaction check error:
file /etc/logrotate.d/fail2ban from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/badips.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/blocklist_de.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/firewallcmd-ipset.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/firewallcmd-new.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/iptables-allports.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/iptables-ipset-proto4.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/iptables-ipset-proto6-allports.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/iptables-ipset-proto6.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/iptables-multiport-log.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/iptables-multiport.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/iptables-new.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/iptables-xt_recent-echo.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/iptables.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/mynetwatchman.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/route.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/sendmail.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/fail2ban.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/apache-auth.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/apache-badbots.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/apache-common.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/apache-modsecurity.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/apache-noscript.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/assp.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/asterisk.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/common.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/cyrus-imap.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/dovecot.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/ejabberd-auth.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/exim-common.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/exim-spam.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/exim.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/freeswitch.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/groupoffice.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/mysqld-auth.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/named-refused.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/nginx-http-auth.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/nsd.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/pam-generic.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/postfix-sasl.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/postfix.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/proftpd.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/pure-ftpd.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/recidive.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/roundcube-auth.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/sendmail-auth.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/sendmail-reject.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/solid-pop3d.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/squid.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/sshd-ddos.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/sshd.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/suhosin.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/vsftpd.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/filter.d/wuftpd.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/jail.conf from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /usr/bin/fail2ban-client from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /usr/bin/fail2ban-regex from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /usr/bin/fail2ban-server from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /usr/lib/systemd/system/fail2ban.service from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /usr/share/man/man1/fail2ban-client.1.gz from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /usr/share/man/man1/fail2ban-regex.1.gz from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /usr/share/man/man1/fail2ban-server.1.gz from install of fail2ban-server-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/sendmail-common.conf from install of fail2ban-sendmail-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/sendmail-whois-lines.conf from install of fail2ban-sendmail-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch
file /etc/fail2ban/action.d/sendmail-whois.conf from install of fail2ban-sendmail-0.9.7-1.el7.noarch conflicts with file from package fail2ban-fpbx-0.8.14-75.sng7.noarch

Error Summary

That’s saying it’s already installed - it’s called ‘fail2ban-fpbx’ so it doesn’t conflict with the epel version.

Saying that, it sounds like you just need to restart freepbx, so doing a ‘fwconsole chown’ and then a ‘fwconsole restart’ should fix it. Just make sure it’s running.

you’re the best. It’s working!!

Why doesn’t freepbx restart on server reboot?
Why does it need fwconsole restart to restart the freepbx?
How did the files ownership got changed?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.