Welcome! Log In Create A New Profile

Advanced

Re: upstream prematurely closed connection (но как-то странно)

Maxim Dounin
December 12, 2018 09:24AM
Hello!

On Tue, Dec 11, 2018 at 02:54:29PM -0500, suffix wrote:

> Смотрю error.log nginx:
>
> 2018/12/11 16:38:51 [error] 2893#2893: *45224 upstream prematurely closed
> connection while reading response header from upstream, client:
> 66.249.76.90, server: www.babai.ru, request: "GET
> /articles/prezhde-chem-prinesti-svinyu-domoj.html?amp=yes HTTP/1.1",
> upstream:
> "http://127.0.0.1:8080/articles/prezhde-chem-prinesti-svinyu-domoj.html?amp=yes",
> host: "www.babai.ru"
>
> Однако в это же время в access.log apache:
>
> 66.249.76.90 - - [11/Dec/2018:16:38:51 +0300] 0 "GET
> /articles/prezhde-chem-prinesti-svinyu-domoj.html?amp=yes HTTP/1.1" 200
> 45443 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile
> Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
>
> Код 200
>
> И в это же время в access.log nginx:
>
> 66.249.76.90 - - [11/Dec/2018:16:38:51 +0300] "GET
> /articles/prezhde-chem-prinesti-svinyu-domoj.html?amp=yes HTTP/1.1" 200
> 12664 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile
> Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
>
> Тоже код 200
>
> Откуда тогда ошибка то ?

Скорее всего, ошибка - от первой попытки отправить запрос на
бэкенд. Вторая, видимо, была успешной. Залоггируйте переменные
$upstream_addr и $upstream_status, там будут подробности.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

upstream prematurely closed connection (но как-то странно)

suffix December 11, 2018 02:54PM

Re: upstream prematurely closed connection (но как-то странно)

Evgeniy Berdnikov December 11, 2018 03:26PM

Re: upstream prematurely closed connection (но как-то странно)

suffix December 11, 2018 04:10PM

Re: upstream prematurely closed connection (но как-то странно)

Maxim Dounin December 12, 2018 09:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 248
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