主题: 麻烦张老师帮我看下我这安装重启完访问/iredadmin 502
- iRedMail 版本号:0.9.8
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 7
- 与您的问题相关的日志信息:
[root@mx ~]# cat /var/log/uwsgi/uwsgi.log
Thu Sep 20 17:18:36 2018 - *** Starting uWSGI 2.0.17.1 (64bit) on [Thu Sep 20 17:18:36 2018] ***
Thu Sep 20 17:18:36 2018 - compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-28) on 09 July 2018 03:58:51
Thu Sep 20 17:18:36 2018 - os: Linux-3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018
Thu Sep 20 17:18:36 2018 - nodename: mx.dongao.com
Thu Sep 20 17:18:36 2018 - machine: x86_64
Thu Sep 20 17:18:36 2018 - clock source: unix
Thu Sep 20 17:18:36 2018 - pcre jit disabled
Thu Sep 20 17:18:36 2018 - detected number of CPU cores: 4
Thu Sep 20 17:18:36 2018 - current working directory: /
Thu Sep 20 17:18:36 2018 - writing pidfile to /run/uwsgi/uwsgi.pid
Thu Sep 20 17:18:36 2018 - detected binary path: /usr/sbin/uwsgi
Thu Sep 20 17:18:36 2018 - uWSGI running as root, you can use --uid/--gid/--chroot options
Thu Sep 20 17:18:36 2018 - *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Thu Sep 20 17:18:36 2018 - your processes number limit is 15075
Thu Sep 20 17:18:36 2018 - your memory page size is 4096 bytes
Thu Sep 20 17:18:36 2018 - detected max file descriptor number: 1024
Thu Sep 20 17:18:36 2018 - lock engine: pthread robust mutexes
Thu Sep 20 17:18:36 2018 - thunder lock: disabled (you can enable it with --thunder-lock)
Thu Sep 20 17:18:36 2018 - uwsgi socket 0 bound to UNIX address /var/run/uwsgi.socket fd 4
Thu Sep 20 17:18:36 2018 - uWSGI running as root, you can use --uid/--gid/--chroot options
Thu Sep 20 17:18:36 2018 - *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Thu Sep 20 17:18:36 2018 - uWSGI running as root, you can use --uid/--gid/--chroot options
Thu Sep 20 17:18:36 2018 - *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Thu Sep 20 17:18:36 2018 - your server socket listen backlog is limited to 100 connections
Thu Sep 20 17:18:36 2018 - your mercy for graceful operations on workers is 60 seconds
Thu Sep 20 17:18:36 2018 - mapped 218760 bytes (213 KB) for 2 cores
Thu Sep 20 17:18:36 2018 - *** Operational MODE: preforking ***
Thu Sep 20 17:18:36 2018 - *** no app loaded. going in full dynamic mode ***
Thu Sep 20 17:18:36 2018 - uWSGI running as root, you can use --uid/--gid/--chroot options
Thu Sep 20 17:18:36 2018 - *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Thu Sep 20 17:18:36 2018 - *** uWSGI is running in multiple interpreter mode ***
Thu Sep 20 17:18:36 2018 - spawned uWSGI master process (pid: 512)
Thu Sep 20 17:18:36 2018 - spawned uWSGI worker 1 (pid: 520, cores: 1)
Thu Sep 20 17:18:36 2018 - spawned uWSGI worker 2 (pid: 523, cores: 1)
Thu Sep 20 17:18:36 2018 - *** starting uWSGI Emperor ***
*** has_emperor mode detected (fd: 7) ***
[uWSGI] getting INI configuration from iredadmin.ini
*** Starting uWSGI 2.0.17.1 (64bit) on [Thu Sep 20 17:18:36 2018] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-28) on 09 July 2018 03:58:51
os: Linux-3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018
nodename: mx.dongao.com
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /etc/uwsgi.d
writing pidfile to /run/uwsgi/iredadmin.pid
detected binary path: /usr/sbin/uwsgi
your processes number limit is 15075
your memory page size is 4096 bytes
detected max file descriptor number: 1024
VirtualHosting mode enabled.
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /run/uwsgi/iredadmin.socket fd 3
setgid() to 2001
setuid() to 2001
Python version: 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
Python main interpreter initialized at 0x1234180
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 145840 bytes (142 KB) for 1 cores
*** Operational MODE: single process ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 524)
Thu Sep 20 17:18:36 2018 - [emperor] vassal iredadmin.ini has been spawned
spawned uWSGI worker 1 (pid: 547, cores: 1)
Thu Sep 20 17:18:36 2018 - SIGINT/SIGQUIT received...killing workers...
Thu Sep 20 17:18:36 2018 - waiting for Emperor death...
Thu Sep 20 17:18:36 2018 - [emperor] *** RAGNAROK EVOKED ***
Thu Sep 20 17:18:36 2018 - [emperor] stop the uwsgi instance iredadmin.ini
SIGINT/SIGQUIT received...killing workers...
Thu Sep 20 17:18:36 2018 - received message 0 from emperor
Thu Sep 20 17:18:37 2018 - waiting for Emperor death...
Thu Sep 20 17:18:38 2018 - waiting for Emperor death...
Thu Sep 20 17:18:39 2018 - waiting for Emperor death...
Thu Sep 20 17:18:40 2018 - waiting for Emperor death...
uwsgi_master_manage_emperor()/read(): Bad file descriptor [core/emperor.c line 2431]
lost connection with my emperor !!!
Thu Sep 20 17:18:41 2018 - The Emperor has been buried (pid: 516)
Thu Sep 20 17:18:41 2018 - worker 1 buried after 5 seconds
Thu Sep 20 17:18:41 2018 - worker 2 buried after 5 seconds
Thu Sep 20 17:18:41 2018 - goodbye to uWSGI.
Thu Sep 20 17:18:43 2018 - uWSGI worker 1 screams: UAAAAAAH my master disconnected: i will kill myself !!!
[root@mx ~]# cat /var/log/nginx/error.log
2018/09/20 16:55:01 [crit] 15603#0: *3 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 172.16.206.47, server: _, request: "GET /mail/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "172.16.0.19", referrer: "https://172.16.0.19/"
2018/09/20 16:55:03 [crit] 15603#0: *3 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 172.16.206.47, server: _, request: "GET /mail/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "172.16.0.19"
2018/09/20 16:55:55 [crit] 15603#0: *19 connect() to unix:/run/uwsgi/iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 172.16.206.47, server: _, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://unix:/run/uwsgi/iredadmin.socket:", host: "172.16.0.19"
2018/09/20 16:55:58 [crit] 15603#0: *19 connect() to unix:/run/uwsgi/iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 172.16.206.47, server: _, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://unix:/run/uwsgi/iredadmin.socket:", host: "172.16.0.19"
访问/mail都没问题,访问/iredadmin 502 ,我看uwsgi服务是启动的