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

יעקב ירמולובסקי yakov.yarmo at gmail.com
Mon Dec 28 10:57:58 CET 2015


How can I check how much time Does Apache take to answer?
And yes, I do have a custom vcl_error:
sub vcl_error {

  if (obj.status == 750) {
    set obj.http.Location = obj.response;
    set obj.status = 302;
    return(deliver);
  }

  set obj.http.x-status = obj.status;
  set obj.status = 302;
  set obj.http.Location = "/oops?path=" + req.url + "&obj_status=" +
obj.http.x-status + "&obj_response=" + obj.response + "&req_xid=" + req.xid;
  return (deliver);
}

On Mon, Dec 28, 2015 at 11:33 AM, Guillaume Quintard <
guillaume at varnish-software.com> wrote:

> Well, duh. Sorry, I didn't even notice you were on v3.
>
> How much time does Apache take to answer? It might be just a tiny bit more
> than what varnish would like.
>
> Do you have a custom vcl_error?
>
> --
> Guillaume Quintard
>
> On Mon, Dec 28, 2015 at 10:25 AM, יעקב ירמולובסקי <yakov.yarmo at gmail.com>
> wrote:
>
>> I'm using varnish 3 so I don't think that I have vcl_backend_error.
>> 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.
>> Maybe I need to enable something in the Apache config?
>>
>> On Mon, Dec 28, 2015 at 10:55 AM, Guillaume Quintard <
>> guillaume at varnish-software.com> wrote:
>>
>>> It looks like your backend failed to deliver ("http first read error",
>>> then "backend write error"), so you were taken to vcl_backend_error
>>> then to vcl_deliver. Could it be that your vcl has a vcl_backend_error that
>>> rewrites the error code?
>>>
>>> From the varnish side, your backend failed, it may be a timeout problem
>>> (backend replied too late).
>>>
>>> --
>>> Guillaume Quintard
>>>
>>> On Sun, Dec 27, 2015 at 12:32 PM, יעקב ירמולובסקי <yakov.yarmo at gmail.com
>>> > wrote:
>>>
>>>> I checked my apache log and it responded with 200.
>>>>
>>>> 14 BackendXID   b 2005611725
>>>>    14 TxRequest    b POST
>>>>    14 TxURL        b /node/16348/edit?destination=user/18407
>>>>    14 TxProtocol   b HTTP/1.1
>>>>    14 TxHeader     b Host: www.limudnaim.co.il
>>>>    14 TxHeader     b Content-Length: 7411
>>>>    14 TxHeader     b Cache-Control: max-age=0
>>>>    14 TxHeader     b Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
>>>>    14 TxHeader     b Origin: http://www.limudnaim.co.il
>>>>    14 TxHeader     b Upgrade-Insecure-Requests: 1
>>>>    14 TxHeader     b User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
>>>>    14 TxHeader     b Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryHUWnuy0mKyJkVjht
>>>>    14 TxHeader     b Referer: http://www.limudnaim.co.il/node/16348/edit?destination=user/18407
>>>>    14 TxHeader     b Accept-Language: he-IL,he;q=0.8,en-US;q=0.6,en;q=0.4
>>>>    14 TxHeader     b X-UA-Device: pc
>>>>    14 TxHeader     b X-Full-Uri: www.limudnaim.co.il%2Fnode%2F16348%2Fedit%3Fdestination%3Duser%2F18407
>>>>    14 TxHeader     b X-Forwarded-For: 46.121.61.13
>>>>    14 TxHeader     b Accept-Encoding: gzip
>>>>    14 TxHeader     b Cookie: SESSdac9e0acd970131ed940ca8f937850da=cc448a1c9de0973a7878d6e0941536c9; NO_CACHE=Y
>>>>    14 TxHeader     b X-Varnish: 2005611725
>>>>    14 BackendClose b default
>>>>    14 BackendOpen  b default 82.80.17.31 39482 82.80.17.31 1012
>>>>    14 BackendXID   b 2005611725
>>>>    14 TxRequest    b POST
>>>>    14 TxURL        b /node/16348/edit?destination=user/18407
>>>>    14 TxProtocol   b HTTP/1.1
>>>>    14 TxHeader     b Host: www.limudnaim.co.il
>>>>    14 TxHeader     b Content-Length: 7411
>>>>    14 TxHeader     b Cache-Control: max-age=0
>>>>    14 TxHeader     b Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
>>>>    14 TxHeader     b Origin: http://www.limudnaim.co.il
>>>>    14 TxHeader     b Upgrade-Insecure-Requests: 1
>>>>    14 TxHeader     b User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
>>>>    14 TxHeader     b Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryHUWnuy0mKyJkVjht
>>>>    14 TxHeader     b Referer: http://www.limudnaim.co.il/node/16348/edit?destination=user/18407
>>>>    14 TxHeader     b Accept-Language: he-IL,he;q=0.8,en-US;q=0.6,en;q=0.4
>>>>    14 TxHeader     b X-UA-Device: pc
>>>>    14 TxHeader     b X-Full-Uri: www.limudnaim.co.il%2Fnode%2F16348%2Fedit%3Fdestination%3Duser%2F18407
>>>>    14 TxHeader     b X-Forwarded-For: 46.121.61.13
>>>>    14 TxHeader     b Accept-Encoding: gzip
>>>>    14 TxHeader     b Cookie: SESSdac9e0acd970131ed940ca8f937850da=cc448a1c9de0973a7878d6e0941536c9; NO_CACHE=Y
>>>>    14 TxHeader     b X-Varnish: 2005611725
>>>>    14 BackendClose b default
>>>>    17 SessionOpen  c 46.121.61.13 4316 :80
>>>>    17 ReqStart     c 46.121.61.13 4316 2005611725
>>>>    17 RxRequest    c POST
>>>>    17 RxURL        c /node/16348/edit?destination=user/18407
>>>>    17 RxProtocol   c HTTP/1.1
>>>>    17 RxHeader     c Host: www.limudnaim.co.il
>>>>    17 RxHeader     c Connection: keep-alive
>>>>    17 RxHeader     c Content-Length: 7411
>>>>    17 RxHeader     c Cache-Control: max-age=0
>>>>    17 RxHeader     c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
>>>>    17 RxHeader     c Origin: http://www.limudnaim.co.il
>>>>    17 RxHeader     c Upgrade-Insecure-Requests: 1
>>>>    17 RxHeader     c User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
>>>>    17 RxHeader     c Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryHUWnuy0mKyJkVjht
>>>>    17 RxHeader     c Referer: http://www.limudnaim.co.il/node/16348/edit?destination=user/18407
>>>>    17 RxHeader     c Accept-Encoding: gzip, deflate
>>>>    17 RxHeader     c Accept-Language: he-IL,he;q=0.8,en-US;q=0.6,en;q=0.4
>>>>    17 RxHeader     c Cookie: SESSdac9e0acd970131ed940ca8f937850da=cc448a1c9de0973a7878d6e0941536c9; __utmt=1; NO_CACHE=Y; __utma=77876233.313860119.1451212742.1451212742.1451212742.1; __utmb=77876233.22.9.1451213179574; __utmc=77876233; __utmz=77876233.1451212742.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)
>>>>    17 VCL_call     c recv pass
>>>>    17 VCL_call     c hash
>>>>    17 Hash         c /node/16348/edit?destination=user/18407
>>>>    17 Hash         c www.limudnaim.co.il
>>>>    17 VCL_return   c hash
>>>>    17 VCL_call     c pass pass
>>>>    17 Backend      c 14 default default
>>>>    17 FetchError   c http first read error: -1 0 (Success)
>>>>    17 Backend      c 14 default default
>>>>    17 FetchError   c Resource temporarily unavailable
>>>>    17 FetchError   c backend write error: 11 (Resource temporarily unavailable)
>>>>    17 VCL_call     c error deliver
>>>>    17 VCL_call     c deliver deliver
>>>>    17 TxProtocol   c HTTP/1.1
>>>>    17 TxStatus     c 302
>>>>    17 TxResponse   c Service Unavailable
>>>>    17 TxHeader     c Server: Varnish
>>>>    17 TxHeader     c x-status: 503
>>>>    17 TxHeader     c Location: /oops?path=/node/16348/edit?destination=user/18407&obj_status=503&obj_response=Service Unavailable&req_xid=2005611725
>>>>    17 TxHeader     c Accept-Ranges: bytes
>>>>    17 TxHeader     c Date: Sun, 27 Dec 2015 10:47:37 GMT
>>>>    17 TxHeader     c X-Varnish: 2005611725
>>>>    17 TxHeader     c Age: 5
>>>>    17 TxHeader     c Via: 1.1 varnish
>>>>    17 TxHeader     c Connection: close
>>>>    17 TxHeader     c X-Varnish-Cache: MISS
>>>>    17 Length       c 0
>>>>    17 ReqEnd       c 2005611725 1451213252.184271336 1451213257.219164610 0.000056505 5.034824371 0.000068903
>>>>    15 BackendOpen  b default 82.80.17.31 39486 82.80.17.31 1012
>>>>    15 BackendXID   b 2005611727
>>>>    15 TxRequest    b GET
>>>>    15 TxURL        b /oops?path=/node/16348/edit?destination=user/18407&obj_status=503&obj_response=Service%20Unavailable&req_xid=2005611725
>>>>    15 TxProtocol   b HTTP/1.1
>>>>    15 TxHeader     b Host: www.limudnaim.co.il
>>>>    15 TxHeader     b Cache-Control: max-age=0
>>>>    15 TxHeader     b Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
>>>>    15 TxHeader     b Upgrade-Insecure-Requests: 1
>>>>    15 TxHeader     b User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
>>>>    15 TxHeader     b Referer: http://www.limudnaim.co.il/node/16348/edit?destination=user/18407
>>>>    15 TxHeader     b Accept-Language: he-IL,he;q=0.8,en-US;q=0.6,en;q=0.4
>>>>    15 TxHeader     b X-UA-Device: pc
>>>>    15 TxHeader     b X-Full-Uri: www.limudnaim.co.il%2Foops%3Fpath%3D%2Fnode%2F16348%2Fedit%3Fdestination%3Duser%2F18407%26obj_status%3D503%26obj_response%3DService%2520Unavailable%26req_xid%3D2005611725
>>>>    15 TxHeader     b X-Forwarded-For: 46.121.61.13
>>>>    15 TxHeader     b Accept-Encoding: gzip
>>>>    15 TxHeader     b Cookie: SESSdac9e0acd970131ed940ca8f937850da=cc448a1c9de0973a7878d6e0941536c9; NO_CACHE=Y
>>>>    15 TxHeader     b X-Varnish: 2005611727
>>>>
>>>>
>>>> _______________________________________________
>>>> varnish-misc mailing list
>>>> varnish-misc at varnish-cache.org
>>>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>>>
>>>
>>>
>>
>>
>> --
>>
>>
>>
>> *יעקב ירמולובסקי,מנהל אתר לימוד נעיםwww.limudnaim.co.il
>> <http://www.limudnaim.co.il/>אתר חינמי למורים פרטיים*
>>
>
>


-- 



*יעקב ירמולובסקי,מנהל אתר לימוד נעיםwww.limudnaim.co.il
<http://www.limudnaim.co.il/>אתר חינמי למורים פרטיים*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20151228/027d47ba/attachment.html>


More information about the varnish-misc mailing list