1

Topic: internal server error in fail2ban iredadmin

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.3.2 MariaDB
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version:  Ubuntu 20.04.2 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySql
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? yes

====

Hello, everytime I access the /activities/fail2ban/banned I see the followinf warn inside /var/log/mysql/error.log

root@mail001:/scripts# tail -F /var/log/mysql/error.log

2021-04-02 13:13:11 75 [Warning] Aborted connection 75 to db: 'fail2ban' user: 'fail2ban' host: 'localhost' (Got an error reading communication packets)
2021-04-02 13:13:11 74 [Warning] Aborted connection 74 to db: 'iredadmin' user: 'iredadmin' host: 'localhost' (Got an error reading communication packets)
2021-04-02 13:13:26 56 [Warning] Aborted connection 56 to db: 'vmail' user: 'vmailadmin' host: 'localhost' (Got an error reading communication packets)


I tried to manually ban an IP as explained in this page: https://docs.iredmail.org/fail2ban.sql.html#tests

fail2ban-client set dovecot banip 1.1.1.2
and fail2ban-client set dovecot unbanip 1.1.1.2

and everything work as expected, I see corresponding database entry.

The question is:

Should I worry about these warning?

I already raised max_allowed_packets in my.cnf so I don't know what else to try.


Warning appears everytime I load a page of iredadmin e.g. /dashboard


2021-04-02 13:17:18 108 [Warning] Aborted connection 108 to db: 'iredadmin' user: 'iredadmin' host: 'localhost' (Got an error reading communication packets)
2021-04-02 13:17:18 112 [Warning] Aborted connection 112 to db: 'fail2ban' user: 'fail2ban' host: 'localhost' (Got an error reading communication packets)
2021-04-02 13:17:18 111 [Warning] Aborted connection 111 to db: 'iredapd' user: 'iredapd' host: 'localhost' (Got an error reading communication packets)
2021-04-02 13:17:18 110 [Warning] Aborted connection 110 to db: 'amavisd' user: 'amavisd' host: 'localhost' (Got an error reading communication packets)


Thanks

2

Re: internal server error in fail2ban iredadmin

performize wrote:

2021-04-02 13:17:18 108 [Warning] Aborted connection 108 to db: 'xxx' user: 'xxx' host: 'localhost' (Got an error reading communication packets)

This is a mysterious issue that i didn't find the cause yet. sad

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee