503 error from varnish
Geoff Simmons
geoff at uplex.de
Sun Jul 5 11:35:45 CEST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 7/5/15 2:54 AM, Tim Dunphy wrote:
>
> But my current problem is that I've been able to get the main page
> to the site cached, and a few others. But when I click to like the
> 4th or 5th page on the wiki that I want to cache through varnish,
> everything comes to a halt. I get a 503 - service unavailable
> error, instead of varnish going to the web server to retrieve the
> page I had clicked on.
503 errors are in most cases an indication that there's a problem with
your backends, and Varnish cannot retrieve responses. When that
happens, you'll often get some info from the log in the FetchError
line, as you did here:
> 10 FetchError c no backend connection
No backend connection usually means that health checks are failing --
in your case, they're failing for both backends that are assigned to
your director. When health checks fail, Varnish doesn't attempt a
fetch at all and sends a 503 response immediately.
When you see that, check the Backend_health entries in the log. They
describe the current health state (you'll probably see "Still sick"),
and at the end of the log entry they either show the response status
that the checks are getting; or if they show no response status, then
the checks aren't getting any response. That should help you diagnose
the problem.
HTH,
Geoff
- --
UPLEX Systemoptimierung
Scheffelstraße 32
22301 Hamburg
http://uplex.de/
Mob: +49-176-63690917
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
iQIcBAEBCAAGBQJVmPpwAAoJEOUwvh9pJNUREXUP/1EMnxHq8BmANhCL+8qwDpO4
sTOdspRdHcpidtyR2MzRpjsZSBmvwjCze4ShMT0sop7Jp9qytlB6jh+DEOMNa/wd
PF+1LGkWNZiNya7BBB/RSGmpXL/t9wQQWxtu4UpyV2Nqra2ktzEburxCPytV2Rwx
ph4AAMiSMzI0mIimRbihmdNDL+/LTTXFIFPLJ8LLjMy7/ynB7wLlaRb6999d7PVq
0RIglbDCjvIKz87vtcjG6gAuSHIs7BpODNjZ04UWTMfFqAtYk+UwLj1ALS32/1mO
K5AeDYU6x8UqR9ja4j/41rYeCpE7SwPeuZoVB7GmuJTSVZ8O56dZwne/veVEzrup
uyl3oXuzYFqPu9Aw1aBZc7oVJJiw+97Xf7q6tPW83a1iWbJlg3pMy1+vtNOIrbKu
Z9Anm1Jr8nB1Esb7X1xS3+YPjK4klqnnwR0Mod1MMwhcWkg/iqF3X91hPXzU8YId
KoET7lSpGlHBnr1Czx4IuV/yjfn/iJJta67vljqeFMY6zZId+KYYhQUQgl9J+mDq
q8xxAeybYHwA3t9L9OZ78eJBhMTi31V7OI+A7aTvx2L198bGTZIIQP4V/bGctSm2
CQ/g8FHVqovgtFfULVj0gkfr6+T0a5XWrpRYd1HcdtaaU2lptTcOIY33GBun3nHU
MOnwzewxqXJueu1H1MWZ
=4iaZ
-----END PGP SIGNATURE-----
More information about the varnish-misc
mailing list