1

Topic: Can't startiredadmin service on Ubuntu 24 under Proxmox LC container

I am having similar issue as in https://forum.iredmail.org/topic20529-c … rvice.html - iredmail is not starting, but as my install is exposed to internet i need to be sure things will be secure and working. Any advise appreciated.


==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version : 1.7.1 MariaDB
- Deployed with iRedMail Easy or the downloadable installer? - PRO downlaodable installer
- Linux/BSD distribution name and version: UBUNTU 24
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? YES

root@mail:/etc/uwsgi/apps-enabled# systemctl status iredadmin
x iredadmin.service - iRedAdmin daemon service
     Loaded: loaded (/usr/lib/systemd/system/iredadmin.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sun 2024-12-08 12:13:11 UTC; 3s ago
   Duration: 12ms
    Process: 6217 ExecStartPre=/bin/mkdir -p /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 6219 ExecStartPre=/bin/chown iredadmin:iredadmin /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 6221 ExecStartPre=/bin/chmod 0755 /var/run/iredadmin (code=exited, status=0/SUCCESS)
    Process: 6223 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: 6225 ExecStopPost=/bin/rm -rf /var/run/iredadmin (code=exited, status=0/SUCCESS)
   Main PID: 6223 (code=exited, status=1/FAILURE)
        CPU: 37ms

Dec 08 12:13:11 mail iredadmin[6223]: setgid() to 2001
Dec 08 12:13:11 mail iredadmin[6223]: setuid() to 2001
Dec 08 12:13:11 mail iredadmin[6223]: chdir() to /opt/www/iredadmin
Dec 08 12:13:11 mail iredadmin[6223]: your processes number limit is 256633
Dec 08 12:13:11 mail iredadmin[6223]: your memory page size is 4096 bytes
Dec 08 12:13:11 mail iredadmin[6223]: detected max file descriptor number: 1024
Dec 08 12:13:11 mail iredadmin[6223]: VirtualHosting mode enabled.
Dec 08 12:13:11 mail iredadmin[6223]: lock engine: pthread robust mutexes
Dec 08 12:13:11 mail iredadmin[6223]: thunder lock: disabled (you can enable it with --thunder-lock)
Dec 08 12:13:11 mail iredadmin[6223]: socket(): Permission denied [core/socket.c line 82]

====

----

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

2

Re: Can't startiredadmin service on Ubuntu 24 under Proxmox LC container

PS aa-complain /etc/apparmor.d/uwsgi-core seems to fix the problem, but i need to know how to keep system secure now ?

3

Re: Can't startiredadmin service on Ubuntu 24 under Proxmox LC container

What do you mean by "keep system secure"?

4

Re: Can't startiredadmin service on Ubuntu 24 under Proxmox LC container

ZhangHuangbin wrote:

What do you mean by "keep system secure"?

Well, it says in other forum that disabling aparmour can lead to security issues , so just to be sure this would not lead to hacks or smth ...

5

Re: Can't startiredadmin service on Ubuntu 24 under Proxmox LC container

Hi,

your log states permission denied. So something kept iredmail from starting. Your startup looks different from the normal one, probably because you use Proxmox LC container.
Are you sure this setup is supported by iredmail???

6

Re: Can't startiredadmin service on Ubuntu 24 under Proxmox LC container

iRedMail disables apparmor by default.