Understanding 503s

Maninder Singh mandys at gmail.com
Thu Apr 15 06:07:01 UTC 2021


Hi,

I need some help understanding why the below 503 is happening.

I am logging 503s to a separate file and then querying as below.

varnishlog -q "BerespStatus eq 503" -w /whatever/file
varnishlog -r /whatever/file

What's going wrong here ?
What should I be looking at ?

Please let me know.

*   << BeReq    >> 45926757
-   Begin          bereq 45926756 pass
-   Timestamp      Start: 1618461576.793111 0.000000 0.000000
-   BereqMethod    POST
-   BereqURL       /index.php?&u=85&tr=aa
-   BereqProtocol  HTTP/1.1
-   BereqHeader    X-Forwarded-Proto: https
-   BereqHeader    X-Forwarded-Port: 443
-   BereqHeader    Host: graph.com
-   BereqHeader    X-Amzn-Trace-Id: Root=1-xxx
-   BereqHeader    Content-Length: 793
-   BereqHeader    sec-ch-ua: "Google Chrome";v="89", "Chromium";v="89",
";Not A Brand";v="99"
-   BereqHeader    accept: application/json, text/javascript, */*; q=0.01
-   BereqHeader    sec-ch-ua-mobile: ?0
-   BereqHeader    user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36
-   BereqHeader    content-type: application/x-www-form-urlencoded;
charset=UTF-8
-   BereqHeader    origin: https://mandy..com
-   BereqHeader    sec-fetch-site: same-site
-   BereqHeader    sec-fetch-mode: cors
-   BereqHeader    sec-fetch-dest: empty
-   BereqHeader    referer: https://mandy.com/
-   BereqHeader    accept-encoding: gzip, deflate, br
-   BereqHeader    accept-language: en-US,en;q=0.9
-   BereqHeader    X-Forwarded-For: 103.67.157.20, 10.0.0.170
-   BereqHeader    browser: other
-   BereqHeader    serverIp: 10.0.3.237
-   BereqHeader    serverId: abc01
-   BereqHeader    X-Varnish: 45926757
-   VCL_call       BACKEND_FETCH
-   VCL_return     fetch
-   BackendOpen    32 reload_2021-04-13T130756.default 127.0.0.1 8080
127.0.0.1 56176
-   BackendStart   127.0.0.1 8080
-   Timestamp      Bereq: 1618461577.074387 0.281276 0.281276
-   FetchError     http first read error: EOF
-   BackendClose   32 reload_2021-04-13T130756.default
-   Timestamp      Beresp: 1618461577.074430 0.281319 0.000043
-   Timestamp      Error: 1618461577.074434 0.281323 0.000004
-   BerespProtocol HTTP/1.1
-   BerespStatus   503
-   BerespReason   Service Unavailable
-   BerespReason   Backend fetch failed
-   BerespHeader   Date: Thu, 15 Apr 2021 04:39:37 GMT
-   BerespHeader   Server: Varnish
-   VCL_call       BACKEND_ERROR
-   BerespHeader   Content-Type: text/html; charset=utf-8
-   BerespHeader   Retry-After: 5
-   VCL_return     deliver
-   Storage        malloc Transient
-   ObjProtocol    HTTP/1.1
-   ObjStatus      503
-   ObjReason      Backend fetch failed
-   ObjHeader      Date: Thu, 15 Apr 2021 04:39:37 GMT
-   ObjHeader      Server: Varnish
-   ObjHeader      Content-Type: text/html; charset=utf-8
-   ObjHeader      Retry-After: 5
-   Length         1288
-   BereqAcct      948 793 1741 0 0 0
-   End
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20210415/9149ce9e/attachment-0001.html>


More information about the varnish-misc mailing list