why i get response if it is a post request with pass?

Geoff Simmons geoff at uplex.de
Mon Dec 28 11:17:20 CET 2015


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

On 12/28/15 10:25 AM, יעקב ירמולובסקי wrote:
> I'm using varnish 3 so I don't think that I have
> vcl_backend_error.

Right, but your VCL is evidently doing something in the form of error
handling, since it reacted to the fetch error (which is seen in VCL as
response code 503) by redirecting, with response code 302 and a
Location header. The redirect goes to "/oops" with obj_status=503,
obj_response=Service Unavailable and the request XID in the query
string, which sounds like custom error handling.

> As for the backend, I'm using Apache 2.2.31 and I have checked the
> logs but it seems that everything goes well there and I get status
> 200.

Sure, your Apache might be getting 200, but it took over 5 seconds to
do so, and Varnish didn't wait that long. Look here:

ReqEnd       c 2005611725 1451213252.184271336 1451213257.219164610
0.000056505 5.034824371 0.000068903

The second-to-last number tells you that Varnish waited just over 5
seconds for the response and gave up, causing:

FetchError   c http first read error: -1 0 (Success)

That's a first byte timeout, which is very likely set to 5 seconds.

Always look for FetchError records in cases like this. "http first
read error" is very common, it means your backend was too slow.

> Maybe I need to enable something in the Apache config?

Impossible to say from a distance. It might help to tune your Apache,
but it might be something else entirely, such as database fetches in
your application that are taking too long.


HTH,
Geoff
- -- 
UPLEX Systemoptimierung
Scheffelstraße 32
22301 Hamburg
http://uplex.de/
Mob: +49-176-63690917
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)

iQIcBAEBCAAGBQJWgQwvAAoJEOUwvh9pJNURRIYP/2gYEcYC0RksxFGL7iPQtel/
5b1zJrhpdIzA8qbJZoU+kq/hk9YcMosmZfP7EV2ZvwMSy7K3/gnzVrMW581u1+iZ
FlHWCNAA4kr4RtW7PIuB3obTtKYnQhL122TdgRIvtz4CPijW35E5pVA4JeVPbkJO
UEf0CitjXkCW5w5utcnxudAOLFJHVdXxrC7/HltRdb6BQYoO97UVlN+vhW46s/jl
GDFYoDUhAb5CsJGzaVCIJN4woFg/1v7QviHSw2ruStbnbP4xbwO8jTCAQ5DwDH8p
por5dcOuv+CQCoVtNtvxAGhqdUeWm1EG7Vf3cYVh/+bj2fmL1zKd+Dvzp1PUK3RO
E3pOsI5nPVHhCz5na/YdRStZ9oZiTlhZCb9sP0Jkwc6S6PReq2v0M6LWX1Ol1JJb
049K+sZo3RJjZqLX0Bu3hEm+nhJ8r157DebuoMPZc/BekB8OLPHfJ5AV91Yite4B
Nsl2RX/Antke+Jd02GwMLii2ctkwwV1Q5wbJRLMcbOOUEqBighFut3v8G4s5SKgX
CC51gOPzzLipp334kaaFk8U/s6Uuv04A6iGe5uUVAvO/FARVYerK3cY3bYQlh5Tm
gC9iouAImUpxmwZlAy6vHhhH3gqF/avmexHt3Q5kfxk/G19cZL4nYaY+XQPVoc4E
dx5K2/lwtB67Y/yc7rEQ
=7HHm
-----END PGP SIGNATURE-----



More information about the varnish-misc mailing list