Topic: 502 Bad Gateway
==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
running iRedAdmin-Pro-SQL 2.8.0
Keep getting :
/run/uwsgi/iredadmin.socket failed (2: No such file or directory)
ls /run/uwsgi/
gives only:
stats.sock uwsgi.pid
[root@mx ~]# uwsgi --ini /etc/uwsgi.ini
[uWSGI] getting INI configuration from /etc/uwsgi.ini
setting capability setgid [6]
setting capability setuid [7]
*** Starting uWSGI 2.0.16 (64bit) on [Mon May 28 19:50:38 2018] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-16) on 13 February 2018 02:48:03
os: Linux-3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016
nodename: mx.mydomain.com
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /root
writing pidfile to /run/uwsgi/uwsgi.pid
detected binary path: /usr/sbin/uwsgi
dropping root privileges as early as possible
setgid() to 993
setuid() to 995
your processes number limit is 31063
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
*** starting uWSGI Emperor ***
dropping root privileges after socket binding
dropping root privileges after plugin initialization
your mercy for graceful operations on workers is 60 seconds
*** Operational MODE: no-workers ***
dropping root privileges after application loading
spawned uWSGI master process (pid: 1886)
*** Stats server enabled on /run/uwsgi/stats.sock fd: 6 ***
[emperor-tyrant] invalid permissions for vassal iredadmin.ini
[emperor-tyrant] invalid permissions for vassal iredadmin.ini
[emperor-tyrant] invalid permissions for vassal iredadmin.ini
[emperor-tyrant] invalid permissions for vassal iredadmin.ini
/etc/uwsgi.ini
[uwsgi]
# uid = uwsgi
# gid = uwsgi
pidfile = /run/uwsgi/uwsgi.pid
emperor = /etc/uwsgi.d
stats = /run/uwsgi/stats.sock
chmod-socket = 660
emperor-tyrant = true
cap = setgid,setuid
/etc/uwsgi.d/iredadmin.ini
[uwsgi]
plugins = python
vhost = true
socket = /run/uwsgi/iredadmin.socket
pidfile = /run/uwsgi/iredadmin.pid
chown-socket = nginx:nginx
chmod-socket = 660
uid = iredadmin
gid = iredadmin
enable-threads = true
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.