Found Nginx 1.19.0 stopped but no idea what happened

evald ibrahimi evald80 at gmail.com
Wed Jul 1 06:55:13 UTC 2020


hello everybody,

I'm using nginx 1.19.0 with ModSec on Centos 7. The other day it
happened twice that nginx was stopped. No idea what could cause the
issue but i found on the error.log the following:

So it seems the server was running out of memory and it stopped nginx?
Thank you

2020/06/29 17:23:39 [alert] 1890#1890: sendmsg() failed (9: Bad file descriptor)
2020/06/29 17:23:39 [alert] 1890#1890: sendmsg() failed (9: Bad file descriptor)
2020/06/29 17:23:39 [alert] 1890#1890: sendmsg() failed (9: Bad file descriptor)
2020/06/29 17:24:28 [alert] 1890#1890: fork() failed while spawning
"worker process" (12: Cannot allocate memory)
2020/06/29 17:24:28 [alert] 1890#1890: sendmsg() failed (9: Bad file descriptor)
2020/06/29 17:24:28 [alert] 1890#1890: sendmsg() failed (9: Bad file descriptor)
2020/06/29 17:24:28 [alert] 1890#1890: fork() failed while spawning
"cache manager process" (12: Cannot allocate memory)
2020/06/29 17:24:28 [alert] 1890#1890: sendmsg() failed (9: Bad file descriptor)
2020/06/29 17:24:28 [alert] 1890#1890: sendmsg() failed (9: Bad file descriptor)
2020/06/29 18:10:35 [notice] 2461#2461: ModSecurity-nginx v1.0.1
(rules loaded inline/local/remote: 0/19826/0)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:443 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:80 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:443 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:80 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:443 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:80 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:443 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:80 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:443 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: bind() to 0.0.0.0:80 failed
(98: Address already in use)
2020/06/29 18:10:35 [emerg] 2461#2461: still could not bind()
2020/06/29 18:11:16 [alert] 1890#1890: unlink() "/run/nginx.pid"
failed (2: No such file or directory)
2020/06/29 18:11:48 [notice] 927#927: ModSecurity-nginx v1.0.1 (rules
loaded inline/local/remote: 0/19826/0)


More information about the nginx mailing list