Author Topic: 502 Bad Gateway error after updating nginx  (Read 180 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
502 Bad Gateway error after updating nginx
« on: November 21, 2024, 06:35:35 AM »
I deleted Nginxi and installed 1.26.2.

Nginx is active in the CWP panel. Started.

I get an error when I try to access the site

502 Bad Gateway nginx/1.26.2

nginx error log
Code: [Select]
2024/11/21 09:27:18 [notice] 3986#3986: signal 15 (SIGTERM) received from 1, exiting
2024/11/21 09:27:18 [notice] 3988#3988: exit
2024/11/21 09:27:18 [notice] 3986#3986: signal 17 (SIGCHLD) received from 3990
2024/11/21 09:27:18 [notice] 3986#3986: worker process 3987 exited with code 0
2024/11/21 09:27:18 [notice] 3986#3986: worker process 3990 exited with code 0
2024/11/21 09:27:18 [notice] 3986#3986: signal 29 (SIGIO) received
2024/11/21 09:27:18 [notice] 3986#3986: signal 17 (SIGCHLD) received from 3989
2024/11/21 09:27:18 [notice] 3986#3986: worker process 3989 exited with code 0
2024/11/21 09:27:18 [notice] 3986#3986: signal 29 (SIGIO) received
2024/11/21 09:27:18 [notice] 3986#3986: signal 17 (SIGCHLD) received from 3988
2024/11/21 09:27:18 [notice] 3986#3986: worker process 3988 exited with code 0
2024/11/21 09:27:18 [notice] 3986#3986: exit
2024/11/21 09:27:24 [notice] 4054#4054: using the "epoll" event method
2024/11/21 09:27:24 [notice] 4054#4054: nginx/1.26.2
2024/11/21 09:27:24 [notice] 4054#4054: built by gcc 11.4.1 20231218 (Red Hat 11.4.1-3) (GCC)
2024/11/21 09:27:24 [notice] 4054#4054: OS: Linux 5.14.0-503.14.1.el9_5.x86_64
2024/11/21 09:27:24 [notice] 4054#4054: getrlimit(RLIMIT_NOFILE): 1024:524288
2024/11/21 09:27:24 [notice] 4055#4055: start worker processes
2024/11/21 09:27:24 [notice] 4055#4055: start worker process 4056
2024/11/21 09:27:24 [notice] 4055#4055: start worker process 4057
2024/11/21 09:27:24 [notice] 4055#4055: start worker process 4058
2024/11/21 09:27:24 [notice] 4055#4055: start worker process 4059


php-fpm.log
Code: [Select]
[21-Nov-2024 09:36:49] WARNING: [pool cwpsrv] child 4427 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:36:54] WARNING: [pool cwpsrv] child 4427 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:36:59] WARNING: [pool cwpsrv] child 4445 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:37:04] WARNING: [pool cwpsrv] child 4613 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:37:09] WARNING: [pool cwpsrv] child 4427 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:37:14] WARNING: [pool cwpsrv] child 4445 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:37:27] WARNING: [pool cwpsrv] child 4613 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:37:46] WARNING: [pool cwpsrv] child 4613 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:37:49] WARNING: [pool cwpsrv] child 4940 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:37:54] WARNING: [pool cwpsrv] child 4613 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[21-Nov-2024 09:37:59] WARNING: [pool cwpsrv] child 4940 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"

« Last Edit: November 21, 2024, 06:39:05 AM by imlemeciz »

Offline
***
Re: 502 Bad Gateway error after updating nginx
« Reply #1 on: November 22, 2024, 08:43:30 AM »
Hi,

How did you upgrade Nginx ? Can you provide more details ? Did you remove nginx and then install it ? What is your webconfig (nginx+php-fpm, nginx+apache+php-fpm, etc) ? Did you try to rebuild virtual host configs ?