Connection timeout for upstream server !!

shahzaib shahzaib shahzaib.cb at gmail.com
Thu Dec 26 11:46:42 UTC 2013


We're having following issue with nginx and php-fpm, please have a look on
logs :

2013/12/26 16:43:24 [error] 9906#0: *37001 upstream timed out (110:
Connection timed out) while reading response header from upstream, client:
192.252.214.240, server: search.com, request: "GET
/search/es/index_video.php?videoid=1593251&is_updated=yes HTTP/1.1",
upstream: "fastcgi://127.0.0.1:9000", host: "search.com"

Also tried increasing proxy timeout to 300 from nginx. When we telnet the
port 9000, connection automatically closed after 4~5 seconds :



Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.

we've also found slow logs in php-fpm :

[root at search ~]# tail -30 /var/log/php-fpm/search-slow.log
[26-Dec-2013 16:44:48]  [pool search] pid 10303
script_filename = /home/search/public_html/search/es/index_video.php
[0x00000000015e0960] curl_exec()
/home/search/public_html/search/es/index_video.php:90

[26-Dec-2013 16:45:11]  [pool search] pid 10302
script_filename = /home/search/public_html/search/es/index_video.php
[0x00000000015e0960] curl_exec()
/home/search/public_html/search/es/index_video.php:90

[26-Dec-2013 16:45:18]  [pool search] pid 10320
script_filename = /home/search/public_html/search/es/index_video.php
[0x00000000015d8950] curl_exec()
/home/search/public_html/search/es/index_video.php:90

[26-Dec-2013 16:45:28]  [pool search] pid 10311
script_filename = /home/search/public_html/search/es/index_video.php
[0x00000000015e0960] curl_exec()
/home/search/public_html/search/es/index_video.php:73

[26-Dec-2013 16:45:34]  [pool search] pid 10307
script_filename = /home/search/public_html/search/es/index_video.php
[0x00000000015e2cd0] curl_exec()
/home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Transport/Http.php:117
[0x00000000015e2a20] exec()
/home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Request.php:165
[0x00000000015e2568] send()
/home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Client.php:526
[0x00000000015e2278] request()
/home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Bulk.php:269
[0x00000000015e1fa0] send()
/home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Client.php:249
[0x00000000015e1d20] addDocuments()
/home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Index.php:123
[0x00000000015e1aa0] addDocuments()
/home/search/public_html/search/vendor/ruflin/Elastica/lib/Elastica/Type.php:161
[0x00000000015e0960] addDocuments()
/home/search/public_html/search/es/index_video.php:34

[26-Dec-2013 16:45:53]  [pool search] pid 10322
script_filename = /home/search/public_html/search/es/index_video.php
[0x00000000015e0960] curl_exec()
/home/search/public_html/search/es/index_video.php:90


Please help me.

Regards.
Shahzaib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20131226/87674d2b/attachment.html>


More information about the nginx mailing list