I’m trying to install and configure varnish in mey srever, and I think I’ve done it, altought when I run the teste i get:
curl -I http://localhost
HTTP/1.1 503 Backend fetch failed
Date: Mon, 26 Aug 2019 17:16:50 GMT
Server: Varnish
Content-Type: text/html; charset=utf-8
Retry-After: 5
X-Varnish: 32770
Age: 0
Via: 1.1 varnish (Varnish/5.2)
Connection: keep-alive
Can any expert help me?
For what i see i get this problem “HTTP/1.1 503 Backend fetch failed”, I’ve already locate more memory but the problem persists…
Best regards,
Leonel Nunes
3
Answers
I will post a complete log:
varnishlog * << BeReq >> 84 - Begin bereq 83 fetch - Timestamp Start: 1566844978.393604 0.000000 0.000000 - BereqMethod GET - BereqURL /index.php/giantpointsadmin/adminhtml_earning_rate/index - BereqProtocol HTTP/1.1 - BereqHeader Host: www.test.pt - BereqHeader User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36 - BereqHeader X-Forwarded-For: 51.89.7.90 - BereqHeader grace: none - BereqHeader Accept-Encoding: gzip - BereqHeader X-Varnish: 84 - VCL_call BACKEND_FETCH - VCL_return fetch - FetchError no backend connection - Timestamp Beresp: 1566844978.393680 0.000077 0.000077 - Timestamp Error: 1566844978.393687 0.000083 0.000007 - BerespProtocol HTTP/1.1 - BerespStatus 503 - BerespReason Service Unavailable - BerespReason Backend fetch failed - BerespHeader Date: Mon, 26 Aug 2019 18:42:58 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: Mon, 26 Aug 2019 18:42:58 GMT - ObjHeader Server: Varnish - ObjHeader Content-Type: text/html; charset=utf-8 - ObjHeader Retry-After: 5 - Length 279 - BereqAcct 0 0 0 0 0 0 - End
End
<< Session >> 82
End
<< BeReq >> 32855
End
<< Request >> 32854
End
<< Session >> 32853
Best regards, Leonel Nunes
Not enough detail for a succinct answer.
To cut the problem in-half, try to browse http address of the backend server?
Another important consideration, Have you properly configured, /etc/varnish/user.vcl ?
Here is a Varnish tutorial… https://www.linode.com/docs/websites/varnish/getting-started-with-varnish-cache/
Finally, find the location of the Varnish log file to get more details.
End
<< Request >> 38
End
<< Session >> 37
End
<< BeReq >> 98340
End
<< Request >> 98339