upstream prematurely closed connection

Valery Kholodkov valery+nginxru at grid.net.ru
Tue Jul 29 11:57:09 MSD 2008


> Лично у меня:
>
> 1. Файрвол есть на фронтэнде, но там о
> таймаутах ни слова.
> 2. А как DHCP может влиять на это?

Кончился лиз, а восстановить не смогли,
потому что либо dhcpd тормозит, либо с ним
нет связи.

> 3. Этого уж точно нет.
> 4. Хм... Интересная мысль. У меня фронтэнд
> имеет 2 интерфейса: во внутренней
> сети и во внешней, бэкенды только во
> внутренней, но они все в одном влане (то
> есть и внутренний интерфейс фронтэнда и
> внешний в одном влане), из-за чего лог
> засыпан ошибками типа
>
> kernel: arp: 192.168.0.3 is on nfe1 but got reply from 00:12:34:56:78:90
> on nfe0
>
> Может быть из-за этого?
>
> но такие ошибки идут уж очень часто и со
> всплесками prematurely closed вроде как
> не особо совпадают...
>
> p.s. и снова подчеркну: обрываются
> одновременно со всеми бэкендами
>
> Valery Kholodkov пишет:
>> С моей теоретической колокольни этому
>> могут быть следующие причины:
>>
>> 1) Файерволы или наты между фронтэндом и
>> бакэндом с таймаймаутами или
>> ещё какой-нибудь фигней;
>> 2) DHCP;
>> 3) Конфликты по IP-адресам в сети;
>> 4) Проблемы с обновлением arp-кэшей.
>>
>> Alexander Goncharov wrote:
>>> Друзья, помогите разобраться, ошибки
>>>
>>> kevent() reported that connect() failed (54: Connection reset by peer)
>>> while connecting to upstream
>>> kevent() reported about an closed connection (54: Connection reset by
>>> peer) while reading response header from upstream
>>>
>>> меня не покидают, переодически
>>> появляются в логах до 100 штук в одно и
>>> то же время. Апач или nginx ни наодной
>>> машиние в это время не
>>> перегружается.
>>>
>>>
>>>
>>> 2008/7/25 Alexander Goncharov <alexander.gsander at gmail.com>:
>>>> Нет, не помогло, да и ошибка
>>>>
>>>> while reading response header from upstream
>>>>
>>>>
>>>> 2008/7/24 Kostya Alexandrov <koticka at mail.ru>:
>>>>> беклг в апаче увеличить не помогает?
>>>>> |ListenBacklog value
>>>>>
>>>>>
>>>>> |Alexander Goncharov wrote:
>>>>>> абсолютно точно нет
>>>>>>
>>>>>> 2008/7/24 Alex Vorona <voron at amhost.net>:
>>>>>>
>>>>>>> 23.07.2008 19:10, Alexander Goncharov wrote:
>>>>>>>
>>>>>>>> Наблюдаю такую же проблему, до 100
>>>>>>>> ошибок (54: Connection reset by
>>>>>>>> peer) в одно и то же время, в одну
>>>>>>>> секунду, происходит периодически:
>>>>>>>>
>>>>>>>> OS: Freebsd 7.0-RELEASE, nginx-0.6.32+apache 1.3.41. Могу
>>>>>>>> сказать
>>>>>>>> точно, maxclients в апаче в это время не
>>>>>>>> достигается.
>>>>>>>>
>>>>>>>>   upstream  warbackend  {
>>>>>>>>       server   192.168.1.3:8080        weight=10;
>>>>>>>>       server   192.168.1.2:8080        weight=3;
>>>>>>>>   }
>>>>>>>>
>>>>>>>>       location ~ /tank.php$ {
>>>>>>>>           proxy_pass http://warbackend;
>>>>>>>>
>>>>>>>>           proxy_next_upstream error timeout http_500 http_503;
>>>>>>>>           proxy_connect_timeout 1;
>>>>>>>>           proxy_redirect     off;
>>>>>>>>           access_log   off;
>>>>>>>>       }
>>>>>>>>
>>>>>>>>
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348757 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 92.124.208.131, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>>
>>>>>>>>
>>>>>>>> /tank.php?id=21897768&move=1&pl_id=210922&attack=1&my_monster=11&x=4&y=5&ax=5&ay=4&lastturn=5&lastmess=3&magicp=0&rand=0.409504341892898
>>>>>>>>
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21897768&move=1&pl_id=210922&attack=1&my_monster=11&x=4&y=5&ax=5&ay=4&lastturn=5&lastmess=3&magicp=0&rand=0.409504341892898",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348762 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 77.94.34.166, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>> /tank.php?id=21897556&lastturn=23&lastmess=1&rand=0.514963776804507
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21897556&lastturn=23&lastmess=1&rand=0.514963776804507",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348763 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 79.173.80.253, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>> /tank.php?id=21898043&lastturn=-2&lastmess=0&rand=0.626321988645941
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21898043&lastturn=-2&lastmess=0&rand=0.626321988645941",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348768 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 81.13.114.14, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>> /tank.php?id=21895083&lastturn=72&lastmess=69&rand=0.65912398416549
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21895083&lastturn=72&lastmess=69&rand=0.65912398416549",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348770 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 195.72.250.118, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>> /tank.php?id=10968458&lastturn=292&lastmess=402&rand=0.929750513285398
>>>>>>>>
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=10968458&lastturn=292&lastmess=402&rand=0.929750513285398",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348772 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 81.195.40.2, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>> /tank.php?id=21896633&lastturn=47&lastmess=33&rand=0.788190171588212
>>>>>>>> HTTP/1.0", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21896633&lastturn=47&lastmess=33&rand=0.788190171588212",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348774 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 88.205.157.171, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>> /tank.php?id=21897704&lastturn=20&lastmess=1&rand=0.377463918179274
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21897704&lastturn=20&lastmess=1&rand=0.377463918179274",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348779 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 213.227.227.101, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>>
>>>>>>>>
>>>>>>>> /tank.php?id=21896107&move=1&pl_id=259362&magical=magicarrow&my_monster=3&x=0&y=8&ax=1&ay=1&lastturn=75&lastmess=57&magicp=undefined&rand=0.128536344971508
>>>>>>>>
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21896107&move=1&pl_id=259362&magical=magicarrow&my_monster=3&x=0&y=8&ax=1&ay=1&lastturn=75&lastmess=57&magicp=undefined&rand=0.128536344971508",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348783 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 195.24.138.253, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>> /tank.php?id=21897559&lastturn=19&lastmess=3&rand=0.409460594411939
>>>>>>>> HTTP/1.0", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21897559&lastturn=19&lastmess=3&rand=0.409460594411939",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348784 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 213.171.60.64, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>> /tank2.php?id=2365363&lchatid=0&pl_id=125186&rand=0.614568601828068
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank2.php?id=2365363&lchatid=0&pl_id=125186&rand=0.614568601828068",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do2.php?ver=24"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348785 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 80.240.215.124, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>>
>>>>>>>>
>>>>>>>> http://www.xxxx.ru/tank.php?id=21897154&move=1&pl_id=42873&attack=1&my_monster=1&x=9&y=6&ax=8&ay=5&lastturn=22&lastmess=0&magicp=0&rand=0.186876151710749
>>>>>>>>
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21897154&move=1&pl_id=42873&attack=1&my_monster=1&x=9&y=6&ax=8&ay=5&lastturn=22&lastmess=0&magicp=0&rand=0.186876151710749",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348787 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 89.223.127.254, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>> /tank.php?id=21898101&lastturn=1&lastmess=0&rand=0.270849634893239
>>>>>>>> HTTP/1.0", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21898101&lastturn=1&lastmess=0&rand=0.270849634893239",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>> 2008/07/23 18:51:36 [error] 43641#0: *18348788 kevent() reported
>>>>>>>> about
>>>>>>>> an closed connection (54: Connection reset by peer) while reading
>>>>>>>> response header from upstream, client: 79.176.126.171, server:
>>>>>>>> www.xxxx.ru,, request: "GET
>>>>>>>>
>>>>>>>>
>>>>>>>> http://www.xxxx.ru/tank.php?id=21897652&lastturn=4&lastmess=13&rand=0.382012006826699
>>>>>>>>
>>>>>>>> HTTP/1.1", upstream:
>>>>>>>>
>>>>>>>>
>>>>>>>> "http://192.168.1.3:8080/tank.php?id=21897652&lastturn=4&lastmess=13&rand=0.382012006826699",
>>>>>>>>
>>>>>>>> host: "www.xxxx.ru", referrer:
>>>>>>>> "http://www.xxxx.ru/php/do.php?ver=328"
>>>>>>>>
>>>>>>>> В том же стиле (много и одновременно,
>>>>>>>> а до и после все без ошибок)
>>>>>>>> сообщения вида (60: Operation timed out).
>>>>>>>>
>>>>>>>> Очень бы хотелось разобраться.
>>>>>>>>
>>>>>>> апач в это время не
>>>>>>> рестартится/релоадится чем-нибудь
>>>>>>> вроде
>>>>>>> логротейта?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>
>>
>
>
>


-- 
Best regards,
Valery Kholodkov






More information about the nginx-ru mailing list