Welcome! Log In Create A New Profile

Advanced

I got 502 and error_log print upstream sent invalid status "0"

March 29, 2012 11:14PM
Hi everyone,

I have a php-fpm backend. And sometimes I got nginx return 502. After I check the error_log I found each 502s are caused by upstream sent invalid status "0" while reading response header from upstream

The error_log are in the form "upstream sent invalid status "0" while reading response header from upstream client: 127.0.0.1, server: xxxx, request: "xxxxx HTTP/1.0", upstream: "fastcgi://unix:/dev/shm/api-php.socket:", host: "xxxx", referrer: "xxxx""

Does anyone have same experience? I have no idea after search Google 'upstream sent invalid status "0"'

I think it is caused by PHP. But why does it sent status '0'?

Yours Sincerely.
Subject Author Posted

I got 502 and error_log print upstream sent invalid status "0"

neoesque March 29, 2012 11:14PM

Re: I got 502 and error_log print upstream sent invalid status "0"

Maxim Dounin March 29, 2012 11:30PM

Re: I got 502 and error_log print upstream sent invalid status "0"

neoesque March 29, 2012 11:44PM

Re: I got 502 and error_log print upstream sent invalid status "0"

neoesque March 29, 2012 11:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 284
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready