Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have the following backend setup:

backend seanesopenko {
    .host = "seanesopenko.ca";
    .port = "8080";
    .connect_timeout = 60s;
    .first_byte_timeout = 300s;
    .between_bytes_timeout = 60s;

}

I still keep getting Guru Mediation 503 errors despite setting the timeouts in the backends. I think it could be apache2/php errors that are being displayed as Guru Mediation 503 errors by Varnish. How do I configure varnish/apache to display apache2 errors?

share|improve this question

1 Answer 1

A 503 error from Varnish usually means either:

  • You have configured backend health checks and the health check has failed, or
  • Varnish is simply unable to contact your backend server (e.g., the connection has taken more than connect_timeout seconds, or was refused, etc).

Since (a) doesn't apply to your configuration, I'm guessing (b). What does the output of varnishlog look like? Have you verified that you can correctly connect to http://seanesopenko.ca:8080/ from your Varnish server? For example:

curl http://seanesopenko.ca:8080/

In any case, varnishlog should shed some light on the situation.

share|improve this answer
    
Varnishlog is your best friend, if you can watch when the error is happening though varnishlog you'll have a much better idea of what's going wrong. –  Tom Feb 6 '11 at 19:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.