Welcome! Log In Create A New Profile

Advanced

Re: failed (54: Connection reset by peer)

Maxim Dounin
February 23, 2010 05:40PM
Hello!

On Wed, Feb 24, 2010 at 01:13:25AM +0300, Дугин Сергей wrote:

> Здравствуйте, .
>
> nginx version: nginx/0.5.14
>
> Server version: Apache/1.3.41 (Unix)
> Server built: Nov 3 2009 11:52:57
> FreeBSD asrv142.qwarta.ru 7.3-PRERELEASE
>
> Пару минут все работает нормально, потом пару секунд валятся такие
> ошибки, в логи пишется 502 ошибка, затем опять минута-две нормально и
> так по кругу.
>
> 2010/02/24 01:00:28 [error] 55541#0: *398426 writev() failed (54: Connection reset by peer) while sending request to upstream, client: 80.239.242.100, server: aa.bb.ru, URL: "/profile.php?id=873213", upstream: "http://10.0.0.4:80/profile.php?id=873213", host: "aa.bb.ru", referrer: "http://aa.bb.ru/search.php?p=1&sex=2&from_age=20&to_age=25&online=0&photo=1&cid=10193"
> 2010/02/24 01:00:28 [error] 55535#0: *379465 kevent() reported about an closed connection (54: Connection reset by peer) while reading response header from upstream, client: 94.246.126.216, server: aa.bb.ru, URL: "/duels.php?p=2&s=finished", upstream: "http://10.0.0.4:80/duels.php?p=2&s=finished", host: "aa.bb.ru", referrer: "http://aa.bb.ru/duels.php?p=1&s=finished"
> 2010/02/24 01:00:28 [error] 55534#0: *403040 writev() failed (54: Connection reset by peer) while sending request to upstream, client: 94.246.126.159, server: aa.bb.ru, URL: "/profile.php?id=1277904", upstream: "http://10.0.0.4:80/profile.php?id=1277904", host: "aa.bb.ru"
> 2010/02/24 01:00:28 [error] 55539#0: *403043 writev() failed (54: Connection reset by peer) while sending request to upstream, client: 94.246.126.172, server: aa.bb.ru, URL: "/search.php?p=126&sex=2&from_age=0&to_age=0&online=1&photo=0&cid=0", upstream: "http://10.0.0.4:80/search.php?p=126&sex=2&from_age=0&to_age=0&online=1&photo=0&cid=0", host: "aa.bb.ru", referrer: "http://aa.bb.ru/search.php?p=127&sex=2&from_age=0&to_age=0&online=1&photo=0&cid=0"
> 2010/02/24 01:00:28 [error] 55546#0: *396630 writev() failed (54: Connection reset by peer) while sending request to upstream, client: 80.239.242.189, server: aa.bb.ru, URL: "/profile.php?id=1270630", upstream: "http://10.0.0.4:80/profile.php?id=1270630", host: "aa.bb.ru", referrer: "http://aa.bb.ru/voted.php?pid=1473885"
>
> Кол-во апачей увеличивал уменьшал не помогает, кол-во детей тоже туда
> сюда крутил, пхп скрипты нормально работают в ошибку не вываливаются,
> апач тоже не отваливается.
>
> В общем все было нормально, а тут стали 502 ошибки валится на ровном
> месте, где капать, что смотреть?

Смотреть бекенд и сеть до него. От бекенда приходит RST, что
говорит либо о проблемах на бекенде (e.g. апачи падают по SIGSEGV,
не заметить сложно, но некоторые умудряются), либо о stateful
firewall'е с заканчивающимися state'ами на пути к нему.

Maxim Dounin

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

failed (54: Connection reset by peer)

Дугин Сергей February 23, 2010 05:14PM

Re: failed (54: Connection reset by peer)

Maxim Dounin February 23, 2010 05:40PM

Re: failed (54: Connection reset by peer)

Дугин Сергей February 23, 2010 05:44PM

Re: failed (54: Connection reset by peer) - теперь php-fpm

Дугин Сергей February 24, 2010 03:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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