Welcome! Log In Create A New Profile

Advanced

Connection timeout for upstream server !!

December 26, 2013 06:48AM
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@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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Connection timeout for upstream server !!

shahzaib1232 December 26, 2013 06:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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