Score:0

Debugging "upstream prematurely closed FastCGI request while reading upstream"

us flag

I am running an nginx + php-fpm setup. I recently ran into problem returning binary data to the Nginx server. Nginx show this in the error log:

2021/08/04 19:22:27 [error] 996463#996463: *1 upstream prematurely closed FastCGI request while reading upstream, client: 192.168.1.10, server: foobar.com, request: "GET /somemedia.mp4 HTTP/2.0", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "foobar.com", referrer: "https://foobar.com/somemedia.mp4"

But I got no error in php-fpm or in my php script. Any suggestion how I should start tackling this issue? Please help.

Michael Hampton avatar
cz flag
Don't send requests for static content to PHP.
us flag
There's a reason I proxy the static content request with PHP. And I don't see why there should be any issue here.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.