cancel
Showing results for 
Search instead for 
Did you mean: 

Varnish Error 503 Backend fetch failed

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Varnish Error 503 Backend fetch failed

Hi,

 

I install magento 2.1.0 with varnish and nginx.

 

All works fine until I active full page cache.

 

When i enable it, all work fine except some category

 

Top category did'nt work and return :

Error 503 Backend fetch failed

 

All other pages work fine. So I suppose this is my issue :

 

http://devdocs.magento.com/guides/v2.0/config-guide/varnish/tshoot-varnish-503.html

 

I put a huge value on http_resp_hdr_len and restart my varnish but nothing change i always got this issue.

 

I varnish log i can read :

 

-   FetchError     http read error: overflow

Did someone got a solution ?

 

I'm on varnish 4.0.2

 

 

Voici le varnishlog :

 

 

*   << BeReq    >> 9         
-   Begin          bereq 8 fetch
-   Timestamp      Start: 1476370852.736703 0.000000 0.000000
-   BereqMethod    GET
-   BereqURL       /pageXXX.html
-   BereqProtocol  HTTP/1.1
-   BereqHeader    Host: www.websiteXXXX.com
-   BereqHeader    User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
-   BereqHeader    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
-   BereqHeader    Accept-Language: fr-FR
-   BereqHeader    Cookie: mage-translation-storage=%7B%7D; mage-translation-file-version=%7B%7D; mage-cache-storage=%7B%7D; mage-cache-storage-section-invalidation=%7B%7D; mage-cache-sessid=true; X-Magento-Vary=f970ba1c8edf4251be121a7535f2ce003b791953; form_key=lV5GbPY6uP
-   BereqHeader    X-Forwarded-For: 80.74.72.196
-   BereqHeader    Accept-Encoding: gzip
-   BereqHeader    X-Varnish: 9
-   VCL_call       BACKEND_FETCH
-   VCL_return     fetch
-   BackendOpen    53 default(127.0.0.1,,81) 127.0.0.1 59720
-   Backend        53 default default(127.0.0.1,,81)
-   Timestamp      Bereq: 1476370852.736959 0.000256 0.000256
-   FetchError     http read error: overflow
-   BackendClose   53 default(127.0.0.1,,81)
-   Timestamp      Beresp: 1476370865.707061 12.970358 12.970102
-   Timestamp      Error: 1476370865.707072 12.970368 0.000011
-   BerespProtocol HTTP/1.1
-   BerespStatus   503
-   BerespReason   Service Unavailable
-   BerespReason   Backend fetch failed
-   BerespHeader   Date: Thu, 13 Oct 2016 15:01:05 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, 13 Oct 2016 15:01:05 GMT
-   ObjHeader      Server: Varnish
-   ObjHeader      Content-Type: text/html; charset=utf-8
-   ObjHeader      Retry-After: 5
-   Length         278
-   BereqAcct      611 0 611 7767 0 7767
-   End 

1 REPLY 1

Re: Varnish Error 503 Backend fetch failed

In fact X-Magento-Tags was > 500000 char cause i got many configurable  with like 500-600 childs each product.

 

And header was too big. I remove child Tag in header in file :

 

Magento\ConfigurableProduct\Plugin\Model\Product