Topic: Error after cron delete_mailboxes.py every hour
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Ubuntu 18.04.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):NGINX
- Manage mail accounts with iRedAdmin-Pro?NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
When crontab or I run manually "python /opt/www/iredadmin/tools/delete_mailboxes.py" I get the following error:
<<< ERROR >>> Cannot connect to SQL database, aborted. Error: AttributeError("'module' object has no attribute 'app'",).
It also sends the message to my postmaster/root mailbox every hour from Cron Daemon.
I doesnt know how to fix this attribute error and cannot find this topic in support forum.
Please help!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.