1

Topic: iredadmin.service fails to start

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.1
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian 11
- 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.
====

I'm trying to migrate to a new Debian 11 installation.  When I complete the installation via the downloadable installer and reboot the server the iredadmin.service will not start.  I have started completely from scratch twice and I keep getting a permission denied error, but I don't know where/what is causing the failure.  This is before restoring any backups of mailboxes or databases.

iredadmin.service - iRedAdmin daemon service
     Loaded: loaded (/lib/systemd/system/iredadmin.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2022-09-11 21:34:31 MDT; 8s ago
    Process: 1762 ExecStartPre=/bin/mkdir -p /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 1763 ExecStartPre=/bin/chown iredadmin:iredadmin /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 1764 ExecStartPre=/bin/chmod 0755 /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 1765 ExecStart=/usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/iredadmin.pid (code=exited, status=1/FAILURE)
    Process: 1767 ExecStopPost=/bin/rm -rf /var/run/iredadmin (code=exited, status=0/SUCCESS)
   Main PID: 1765 (code=exited, status=1/FAILURE)
        CPU: 27ms

Sep 11 21:34:31 mail iredadmin[1765]: pcre jit disabled
Sep 11 21:34:31 mail iredadmin[1765]: detected number of CPU cores: 2
Sep 11 21:34:31 mail iredadmin[1765]: current working directory: /
Sep 11 21:34:31 mail iredadmin[1765]: writing pidfile to /var/run/iredadmin/iredadmin.pid
Sep 11 21:34:31 mail iredadmin[1765]: detected binary path: /usr/bin/uwsgi-core
Sep 11 21:34:31 mail iredadmin[1765]: setgid() to 2001
Sep 11 21:34:31 mail iredadmin[1765]: setuid() to 2001
Sep 11 21:34:31 mail iredadmin[1765]: chdir() to /opt/www/iredadmin
Sep 11 21:34:31 mail iredadmin[1765]: chdir(): Permission denied [core/uwsgi.c line 2625]
Sep 11 21:34:31 mail systemd[1]: iredadmin.service: Failed with result 'exit-code'.


I'm also seeing this every few seconds while following the journalctl (not sure if they're related):

Sep 11 21:56:19 mail postfix/pickup[1591]: 4MQt7R6g2Yz9w17: uid=0 from=<root>
Sep 11 21:56:19 mail postfix/proxymap[1599]: warning: mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf is unavailable. open /etc/postfix/mysql/sender_bcc_maps_user.cf: Permission denied
Sep 11 21:56:19 mail postfix/cleanup[1595]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@mail.servername.com"
Sep 11 21:56:19 mail postfix/cleanup[1595]: warning: 4MQt7R6g2Yz9w17: sender_bcc_maps map lookup problem -- message not accepted, try again later
Sep 11 21:56:19 mail postfix/pickup[1591]: warning: maildrop/4MQsxt4hMHzCt8d: error writing 4MQt7R6g2Yz9w17: queue file write error

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

2

Re: iredadmin.service fails to start

file permission problems

3

Re: iredadmin.service fails to start

Drusher wrote:

Sep 11 21:56:19 mail postfix/proxymap[1599]: warning: mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf is unavailable. open /etc/postfix/mysql/sender_bcc_maps_user.cf: Permission denied

What's the owner/group/permission of file /etc/postfix/mysql/sender_bcc_maps_user.cf?
It should be owned by "root:postfix" with permission 0640.