My online whiteboard application has been working previously, but for whatever reason, it no longer works. Now it shows a 503 Varnish cache error as seen here: http://grab.by/eFHG
Do you happen to know where I should start to look to try to resolve this issue?
Thanks! Donny
The default length of cache tags in Varnish is 8192 bytes. Exceeding this can cause the HTTP 503 Backend Fetch Failed error. You can resolve this issue by increasing the value of the http_resp_hdr_len parameter in your Varnish configuration file.
Varnish Cache issues the Guru Meditation error when a connection has timed out or the Varnish Cache server has made too many requests to the back end server without getting a response.
Error 503 backend is unhealthyThis error appears when custom health checks report a backend as down. It typically occurs when a Fastly edge server receives a client request and must make a request to your origin, but because the backend is considered unhealthy, Fastly doesn't try to send the request at all.
As “Error 503 Backend Fetch Failed' is mainly caused when the cache server gets temporarily overloaded, you don't want to take any chances, right? When you encounter this error on a specific website, make sure that you close all other active tabs and services to lighten the load of cache server memory.
This error means that Varnish had no response (even not an HTTP error) from the backend within the timeout limit.
You can troubleshoot that in many ways :
On the backend : do you see requests from Varnish in your webserver log ?
On Varnish server : Run varnishlog and check the request process. You should have events in this order : RxRequest > TxRequest > RxResponse > TxResponse. Your problem is between TxRequest (request sent to backend) and RxResponse (response received from backend).
On your Varnish server try connecting on the backend using telnet (telnet ). Does it connect ? If it does, try sending a request (e.g. "GET / "). Do you receive a response ?
Probable causes could be : firewall/selinux blocking between varnish & backend, bad varnish or backend web server config (are backend address & port sync ?), webserver stopped, ...
You could always check your /etc/varnish/default.vcl
(CentOS).
backend default {
.host = "127.0.0.1";
.port = "80";
}
Make sure the .host
value is your server IP Address, and change the port to 8080
, and adjust your port setting in /etc/httpd/conf/httpd.conf
and make sure Apache listen to 8080
.
EDIT
It could also mean web server (Apache) have wrong/default settings.
80
, they should be
8080
. 8080
port. sudo systemctl enable varnish
.sudo reboot
(cache programs are bugging me in the development state).If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With