Topic: Errors on fresh install
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): latest
- Deployed with the downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): nginx
====
I got another issue on fresh Ubuntu 20.04 system
Every Saturday at 06:02 i receive these 2 emails:
From:
Cron <root@mail> /bin/bash /usr/local/bin/fail2ban_banned_db unban_db
Message:
ERROR 2002 (HY000): Can't connect to MySQL server on '127.0.0.1' (115)
and
From:
Cron <root@mail> python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null
Message:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 581, in connect
sock = socket.create_connection(
File "/usr/lib/python3.8/socket.py", line 808, in create_connection
raise err
File "/usr/lib/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refusedDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 91, in <module>
qr = conn.select('greylisting_whitelist_domains', what='domain')
File "/usr/local/lib/python3.8/dist-packages/web/db.py", line 890, in select
return self.query(qout, processed=True)
File "/usr/local/lib/python3.8/dist-packages/web/db.py", line 836, in query
db_cursor = self._db_cursor()
File "/usr/local/lib/python3.8/dist-packages/web/db.py", line 743, in _db_cursor
return self.ctx.db.cursor()
File "/usr/local/lib/python3.8/dist-packages/web/db.py", line 683, in _getctx
self._load_context(self._ctx)
File "/usr/local/lib/python3.8/dist-packages/web/db.py", line 695, in _load_context
ctx.db = self._connect(self.keywords)
File "/usr/local/lib/python3.8/dist-packages/web/db.py", line 723, in _connect
return self.db_module.connect(**keywords)
File "/usr/lib/python3/dist-packages/pymysql/__init__.py", line 94, in Connect
return Connection(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 325, in __init__
self.connect()
File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 630, in connect
raise exc
pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)")
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.