Varnish Closing Backend Connection

Guillaume Quintard guillaume at varnish-software.com
Thu Nov 29 22:33:52 UTC 2018


Hi,

Weird, are you able to show the two full backend request logs? (the one
getting you the 500, then the 503)?

Kind regards,

-- 
Guillaume Quintard


On Wed, Nov 28, 2018 at 8:14 AM Junaid Mukhtar <junaid.mukhtar at gmail.com>
wrote:

> hi Guys
>
> I am facing a rather tricky issue, where it appears that the varnish is
> closing the backend connection without waiting for a respones from the
> backend.
>
> We are using Nginx to serve static content Below is teh sequence of
> messages
>
> Varnish sends POST request to App
> App sends back 500 Internal Server Error
> Varnish interprets the 500 internal Server Error
> Varnish sends GET request to Nginx server on the same box to serve static
> content
> Varnish shows error message (even though Nginx sends the response
> successfully within milliseconds)
> -   VCL_call       BACKEND_FETCH
> -   VCL_return     fetch
> -   BackendOpen    38 boot.staticpages 127.0.0.1 82 127.0.0.1 35064
> -   BackendStart   127.0.0.1 82
> -   FetchError     backend write error: 0 (Success)
> -   Timestamp      Bereq: 1543420795.016075 5.106813 0.000099
> -   BackendClose   38 boot.staticpages
> -   Timestamp      Beresp: 1543420795.016497 5.107235 0.000422
> -   Timestamp      Error: 1543420795.016503 5.107241 0.000005
> -   BerespProtocol HTTP/1.1
> -   BerespStatus   503
> -   BerespReason   Service Unavailable
> -   BerespReason   Backend fetch failed
> -   BerespHeader   Date: Wed, 28 Nov 2018 15:59:55 GMT
> -   BerespHeader   Server: Varnish
> -   VCL_call       BACKEND_ERROR
>
> Varnish then again goes the same Nginx server to display default content.
> Nginx sends response and varnish accepts it and sends it back to the
> customer
>
> I am a bit stumped, any help with this is highly appreciated
>
> --------
> Regards,
> Junaid
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20181129/4aee2a88/attachment-0001.html>


More information about the varnish-misc mailing list