Query regarding "http first read error: EOF" error in varnish

Geoff Simmons geoff at uplex.de
Wed Jan 13 12:00:37 CET 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 01/13/2016 10:49 AM, Jayanth Kalyanasundaram wrote:
> Hello,
> 
> We are currently using varnish 4.1.0 as a caching layer on top of a
> few of our production servers, and from time to time we see a few
> 503 errors in the varnish log with the error "-   FetchError
> http first read error: EOF". The complete log for this is shared
> here: http://pastebin.com/JSqywXDa

"http first read error: EOF" means that there was a socket read error
while attempting to fetch the first chunk of the response header from
the connection to your backend, usually a first byte timeout or a
closed connection.

- -   Timestamp      Bereq: 1452675822.047840 0.015508 0.015508
- -   FetchError     http first read error: EOF
- -   BackendClose   232 reload_2016-01-12T07:28:50.cp_12
- -   Timestamp      Beresp: 1452675876.038544 54.006212 53.990704

This says that about 54 seconds elapsed after Varnish sent the backend
request until it gave up waiting for the response. That could very
well be a first byte timeout, especially since the waiting time is so
close to the round number 54 (although 54 seconds is an unusual value
for first_byte_timeout).

> The issue doesn't seem to be a connection problem with the backend 
> because a simple curl call of the same URL from the varnish box
> seems to work fine. So we'd like to know what could be the reason
> behind the error mentioned above and how we can fix it.

Does Varnish get the FetchError every time, or only sometimes? It
could have been that your curl tests were "just lucky".


HTH,
Geoff
- -- 
** * * UPLEX - Nils Goroll Systemoptimierung

Scheffelstraße 32
22301 Hamburg

Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753

http://uplex.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWli5KAAoJEOUwvh9pJNUR9MkQAInpekQYVjtixJuTkXBxVM6m
J397M1D3b89BiXe8bNPiaTMG/+VpsCK8maXoDAgiZ1NYfRaEYqH9gRGkTQu6x9pT
A3tyP4yu/gClfDGQp4UikGlYLvUnXtJL8KQTjRNcb/WHlWnGRCHfrHfh6xRJfkJm
4cSVJRfiq+hJvEF+4TVZdA5IbTK73Q8r9Xvk4d2pAyG3smeCqJQMo2Zq5b1a2yGu
H1kvQPMDxh3pgkw7trWtpi0b7XznG0hTZ5kT1GdTJ0xZYWXLTcZ5TJ0UX1ZqAz/a
ywmzq3KQpBr3MvSNN17m1HKsw7vbTtAeNMm8bXMf7DfWSxCmbcMAWZKlzlwsSW0B
n+7h3SrL5s0JqQeDM8VP9RkALv/HOrDfg60wvY0HCjc/X7EPvqs0T2K8Eq+WZlqx
ChgMpfgYaOtfD0cUXg1t383LJOoUCy2JuG9ceoqsOuep7B08QfsQdQEh9S+6zkaJ
HIStUOVb7SDAfo0zvq43aICFRgz6wTCuEirdfmFM5Ru5rba/9Oog1NiumGlg7HCU
6d+G0hRYW3wBpgXxgLVdn6gHXnsfj1mkZCEwBUC1L8/5nMB12hfzyWo75a8JqhOT
RZKAXm9sSpOulHclneLlzXqM88BnRqKl/UTIbW7rHQPmvq5fbxW36GgUYM42xm9E
pr8SR/RSaQMyAtJLYpVI
=cnn7
-----END PGP SIGNATURE-----



More information about the varnish-misc mailing list