Forum: NGINX FastCGI errors in nginx 0.6.x

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
15fc40290c76b33850cc13438566b072?d=identicon&s=25 Robert Gabriel (jinx)
on 2009-03-25 08:39
Hi guys, Im running nginx 0.6.35 with PHP 5.2.6 with php-fpm patch.
Everything just runs super nice, but I found in almost all vhost
error_log files this errors:

2009/03/25 07:22:40 [info] 4552#0: *64462 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 07:25:48 [info] 4552#0: *64486 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: "GET /
HTTP/1.1", upstream: "fastcgi://127.0.0.1:50000", host:
"www.example.org"
2009/03/25 07:30:22 [info] 4552#0: *64510 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 07:32:51 [info] 4552#0: *64524 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 07:35:58 [info] 4552#0: *64559 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: "GET /
HTTP/1.1", upstream: "fastcgi://127.0.0.1:50000", host:
"www.example.org"
2009/03/25 07:40:30 [info] 4552#0: *64688 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 07:43:01 [info] 4552#0: *64720 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 07:46:09 [info] 4552#0: *64760 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: "GET /
HTTP/1.1", upstream: "fastcgi://127.0.0.1:50000", host:
"www.example.org"
2009/03/25 07:50:39 [info] 4552#0: *64860 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 07:53:11 [info] 4552#0: *64900 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 07:56:20 [info] 4552#0: *65053 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: "GET /
HTTP/1.1", upstream: "fastcgi://127.0.0.1:50000", host:
"www.example.org"
2009/03/25 08:00:47 [info] 4554#0: *65503 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 08:03:21 [info] 4554#0: *65567 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 08:06:31 [info] 4554#0: *65588 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: "GET /
HTTP/1.1", upstream: "fastcgi://127.0.0.1:50000", host:
"www.example.org"
2009/03/25 08:10:55 [info] 4554#0: *65622 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 08:13:34 [info] 4554#0: *65638 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 08:16:42 [info] 4554#0: *65660 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: "GET /
HTTP/1.1", upstream: "fastcgi://127.0.0.1:50000", host:
"www.example.org"
2009/03/25 08:21:04 [info] 4554#0: *65682 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 08:23:44 [info] 4554#0: *65738 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 08:26:53 [info] 4554#0: *65760 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: "GET /
HTTP/1.1", upstream: "fastcgi://127.0.0.1:50000", host:
"www.example.org"
2009/03/25 08:31:12 [info] 4554#0: *65796 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"
2009/03/25 08:33:55 [info] 4554#0: *65833 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: "GET / HTTP/1.1", upstream:
"fastcgi://127.0.0.1:50000", host: "www.example.org"

I know its something related to php-fpm with nginx, but Im not sure what
or how to fix it.
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-03-25 16:46
(Received via mailing list)
On Wed, Mar 25, 2009 at 08:39:25AM +0100, Robert Gabriel wrote:

> client: 84.242.66.126, server: www.example.org, request: "GET /
> HTTP/1.1", upstream: "fastcgi://127.0.0.1:50000", host:
> "www.example.org"

> 2009/03/25 08:33:55 [info] 4554#0: *65833 client closed prematurely
> connection while sending to client, client: 67.223.232.34, server:
> www.example.org, request: "GET / HTTP/1.1", upstream:
> "fastcgi://127.0.0.1:50000", host: "www.example.org"
>
> I know its something related to php-fpm with nginx, but Im not sure what
> or how to fix it.

No, these messages are not related to php-fpm. In these cases client
have closed connection, but not fastcgi server.
15fc40290c76b33850cc13438566b072?d=identicon&s=25 Robert Gabriel (jinx)
on 2009-03-25 19:26
So this means that from my server side is everything fine, nginx and
php-fpm are fine.
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-03-26 08:01
(Received via mailing list)
On Wed, Mar 25, 2009 at 07:26:23PM +0100, Robert Gabriel wrote:

> So this means that from my server side is everything fine, nginx and
> php-fpm are fine.

In general - yes. However, clients may close connections if responses
take too long.
D26fff640aa38460689b0452cb79d445?d=identicon&s=25 Yu.Cheung (Guest)
on 2009-04-21 05:04
(Received via mailing list)
when send a big file to the dav server directly,  the connection will
not close
but why proxy_pass once, it will close very soon.

client-->ngx http dav  ,ok
client-->ngx--->proxy_pass, close

both the request are send a big file to the server.

thanks


2009/3/26 Igor Sysoev <is@rambler-co.ru>:
This topic is locked and can not be replied to.