1 (edited by richardw 2021-10-15 04:09:48)

Topic: cannot start iredapd

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): as root - 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- 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.
====


postmaster can get mail, but not regular users since upgrading iredadmin on sept 27, 2021

root@mail:/opt/iredapd/libs# systemctl status iredapd.service
● iredapd.service - iRedAPD (A simple posfix policy server)
   Loaded: loaded (/lib/systemd/system/iredapd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2021-10-14 18:55:46 UTC; 9min ago
  Process: 5623 ExecStart=/usr/bin/python /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)

Oct 14 18:55:46 mail.domain.com python[5623]:     from libs import __version__, daemon, utils
Oct 14 19:11:40 mail.domain.com python[6463]:   File "/opt/iRedAPD-2.4/libs/utils.py", line 16, in <module>
Oct 14 19:11:40 mail.domain.com python[6463]:     from libs.logger import logger
Oct 14 19:11:40 mail.domain.com python[6463]:   File "/opt/iRedAPD-2.4/libs/logger.py", line 119, in <module>
Oct 14 19:11:40 mail.domain.com python[6463]:     log_level = getattr(logging, str(settings.log_level).upper())
Oct 14 18:55:46 mail.domain.com python[5623]: AttributeError: 'module' object has no attribute 'log_file'
Oct 14 18:55:46 mail.domain.com systemd[1]: iredapd.service: Control process exited, code=exited status=1
Oct 14 18:55:46 mail.domain.com systemd[1]: Failed to start iRedAPD (A simple posfix policy server).
Oct 14 18:55:46 mail.domain.com systemd[1]: iredapd.service: Unit entered failed state.
Oct 14 18:55:46 mail.domain.com systemd[1]: iredapd.service: Failed with result 'exit-code'.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: cannot start iredapd

20.04 LTS (Recommend), 18.04 LTS

Ubuntu 16.04 is not supported anymore, aswell 0.9.9 and iRedAPD-2.4 are way outdated aswell

3

Re: cannot start iredapd

richardw wrote:

Oct 14 18:55:46 mail.domain.com python[5623]: AttributeError: 'module' object has no attribute 'log_file'

Does your /opt/iredapd/settings.py have parameter "log_file ="?
Do you have any other "settings.py" under /opt/iredapd/? Please show us command output:

find /opt/iredapd/ -name 'settings.py'