主题: iredadmin 502

iredmail version:iRedMail-0.9.9

mail 正常访问

iredadmin 报502错误


2019/05/27 12:26:00 [error] 3693#0: *311 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 12:26:00 [error] 3693#0: *311 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 12:26:01 [error] 3693#0: *311 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 12:26:01 [error] 3693#0: *311 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 12:26:01 [error] 3693#0: *311 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 12:26:01 [error] 3693#0: *311 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 14:09:30 [error] 3693#0: *2532 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 14:09:31 [error] 3693#0: *2532 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 14:29:19 [error] 3693#0: *2975 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 14:29:20 [error] 3693#0: *2975 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 14:29:20 [error] 3693#0: *2975 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"
2019/05/27 14:29:20 [error] 3693#0: *2975 upstream prematurely closed connection while reading response header from upstream, client: 183.12.223.249, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.esportseyes.com"

[root@mail nginx]# systemctl status uwsgi.service
● uwsgi.service - uWSGI Emperor Service
   Loaded: loaded (/usr/lib/systemd/system/uwsgi.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-05-27 12:25:45 CST; 2h 4min ago
  Process: 5087 ExecStartPre=/bin/chown uwsgi:uwsgi /run/uwsgi (code=exited, status=0/SUCCESS)
  Process: 5085 ExecStartPre=/bin/mkdir -p /run/uwsgi (code=exited, status=0/SUCCESS)
Main PID: 5089 (uwsgi)
   Status: "The Emperor is governing 0 vassals"
   CGroup: /system.slice/uwsgi.service
           ├─5089 /usr/sbin/uwsgi --ini /etc/uwsgi.ini
           └─5091 /usr/sbin/uwsgi --ini /etc/uwsgi.ini

May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: lock engine: pthread robust mutexes
May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: thunder lock: disabled (you can enable it with --thunder-lock)
May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: dropping root privileges after socket binding
May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: dropping root privileges after plugin initialization
May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: your mercy for graceful operations on workers is 60 seconds
May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: *** starting uWSGI Emperor ***
May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: *** Operational MODE: no-workers ***
May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: dropping root privileges after application loading
May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: spawned uWSGI master process (pid: 5089)
May 27 12:25:45 mail.esportseyes.com uwsgi[5089]: *** Stats server enabled on /run/uwsgi/stats.sock fd: 7 ***

回复: iredadmin 502

/var/log/messages

回复: iredadmin 502

May 27 14:40:04 mail uwsgi: -- unavailable modifier requested: 0 --

回复: iredadmin 502

找到解决方法:

回复: iredadmin 502

1、yum install uwsgi-plugin-python
2、在uwsgi配置文件(/etc/uwsgi.ini)中加入 plugins = python
3、重启uwsgi服务(systemctl restart uwsgi)