Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

Varnish return 503 (no backend connection) and never can back

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


supergrilo at gmail

Jul 11, 2013, 1:11 PM

Post #1 of 5 (131 views)
Permalink
Varnish return 503 (no backend connection) and never can back

i have a problem using varnish 3.0 and debian wheezy. When i use backend on
command line, everything works. If i use init script, after some
connections varnish return 503 and never can back. Backend is not a sick
mode, health check still return 200, varnishlog only retorns '4 FetchError
c no backend connection'.


Full varnishlog request:

0 Backend_health - foo Still healthy 4--X-RH 5 3 5 0.735348 0.733736
HTTP/1.1 200 OK

0 Backend_health - bar Still healthy 4--X-RH 5 3 5 0.735955 0.730752
HTTP/1.1 200 OK

0 CLI - Rd ping

0 CLI - Wr 200 19 PONG 1373573348 1.0

0 CLI - Rd ping

0 CLI - Wr 200 19 PONG 1373573351 1.0

0 Backend_health - foo Still healthy 4--X-RH 5 3 5 0.749470 0.737669
HTTP/1.1 200 OK

0 Backend_health - bar Still healthy 4--X-RH 5 3 5 0.714554 0.726702
HTTP/1.1 200 OK

0 CLI - Rd ping

0 CLI - Wr 200 19 PONG 1373573354 1.0

0 CLI - Rd ping

0 CLI - Wr 200 19 PONG 1373573357 1.0

0 Backend_health - foo Still healthy 4--X-RH 5 3 5 0.748910 0.740479
HTTP/1.1 200 OK

0 Backend_health - bar Still healthy 4--X-RH 5 3 5 0.763746 0.735963
HTTP/1.1 200 OK

0 CLI - Rd ping

0 CLI - Wr 200 19 PONG 1373573360 1.0

0 CLI - Rd ping

0 CLI - Wr 200 19 PONG 1373573363 1.0

0 Backend_health - foo Still healthy 4--X-RH 5 3 5 0.733996 0.738859
HTTP/1.1 200 OK

0 Backend_health - bar Still healthy 4--X-RH 5 3 5 0.708820 0.729177
HTTP/1.1 200 OK

12 SessionOpen c 177.126.186.3 38253 :80

12 ReqStart c 177.126.186.3 38253 834855100

12 RxRequest c HEAD

12 RxURL c
/local/sp/bariri/bancos/C4037652224C3E4C3E/banco_santander_banespa_sa.html

12 RxProtocol c HTTP/1.1

12 RxHeader c User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu)
libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6

12 RxHeader c Host: ec2-54-224-160-79.compute-1.amazonaws.com

12 RxHeader c Accept: */*

12 VCL_call c recv lookup

12 VCL_call c hash

12 Hash c
/local/sp/bariri/bancos/C4037652224C3E4C3E/banco_santander_banespa_sa.html

12 Hash c ec2-54-224-160-79.compute-1.amazonaws.com

12 VCL_return c hash

12 VCL_call c miss fetch

12 FetchError c no backend connection

12 VCL_call c error deliver

12 VCL_call c deliver deliver

12 TxProtocol c HTTP/1.1

12 TxStatus c 503

12 TxResponse c Service Unavailable

12 TxHeader c Server: Varnish

12 TxHeader c Content-Type: text/html; charset=utf-8

12 TxHeader c Retry-After: 5

12 TxHeader c Content-Length: 418

12 TxHeader c Accept-Ranges: bytes

12 TxHeader c Date: Thu, 11 Jul 2013 20:09:24 GMT

12 TxHeader c Age: 0

12 TxHeader c Connection: close

12 Length c 418

12 ReqEnd c 834855100 1373573364.686753750 1373573364.686913252
0.000081301 0.000107527 0.000051975

12 SessionClose c error

12 StatSess c 177.126.186.3 38253 0 1 1 0 0 0 216 418

0 CLI - Rd ping

0 CLI - Wr 200 19 PONG 1373573366 1.0



--
Fábio Santos
supergrilo [at] gmail
<http://br.linkedin.com/pub/f%C3%A1bio-santos/1b/20/422>


mattias at nucleus

Jul 12, 2013, 12:05 AM

Post #2 of 5 (115 views)
Permalink
Re: Varnish return 503 (no backend connection) and never can back [In reply to]

> If i use init script, after some connections varnish return 503 and
>never can back.
> Backend is not a sick mode, health check still return
> 200, varnishlog only retorns '4 FetchError c no backend connection'.

What does your backend definition look like?

M.


_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


perbu at varnish-software

Jul 12, 2013, 1:06 AM

Post #3 of 5 (116 views)
Permalink
Re: Varnish return 503 (no backend connection) and never can back [In reply to]

On Thu, Jul 11, 2013 at 10:11 PM, Fabio Gomes dos Santos <
supergrilo [at] gmail> wrote:

> i have a problem using varnish 3.0 and debian wheezy. When i use backend
> on command line, everything works. If i use init script, after some
> connections varnish return 503 and never can back. Backend is not a sick
> mode, health check still return 200, varnishlog only retorns '4 FetchError
> c no backend connection'.
>
Are you using saintmode? If so, you might want to try to set
saintmode_threshold to 0. Saintmode will kick in and make a backend sort of
sick. And if I recall correctly it does this without logging it.

--
<http://www.varnish-software.com/> *Per Buer*
Phone: +47 958 39 117 | Skype: per.buer
We Make Websites Fly!

Winner of the Red Herring Top 100 Europe Award 2013


supergrilo at gmail

Jul 12, 2013, 5:30 AM

Post #4 of 5 (114 views)
Permalink
Re: Varnish return 503 (no backend connection) and never can back [In reply to]

Yes! I used saint mode.
This solve my problem. Thank you!


2013/7/12 Per Buer <perbu [at] varnish-software>

> On Thu, Jul 11, 2013 at 10:11 PM, Fabio Gomes dos Santos <
> supergrilo [at] gmail> wrote:
>
>> i have a problem using varnish 3.0 and debian wheezy. When i use backend
>> on command line, everything works. If i use init script, after some
>> connections varnish return 503 and never can back. Backend is not a sick
>> mode, health check still return 200, varnishlog only retorns '4 FetchError
>> c no backend connection'.
>>
> Are you using saintmode? If so, you might want to try to set
> saintmode_threshold to 0. Saintmode will kick in and make a backend sort of
> sick. And if I recall correctly it does this without logging it.
>
> --
> <http://www.varnish-software.com/> *Per Buer*
> Phone: +47 958 39 117 | Skype: per.buer
> We Make Websites Fly!
>
> Winner of the Red Herring Top 100 Europe Award 2013
>
>
>


--
Fábio Santos
supergrilo [at] gmail
<http://br.linkedin.com/pub/f%C3%A1bio-santos/1b/20/422>


perbu at varnish-software

Jul 12, 2013, 5:41 AM

Post #5 of 5 (112 views)
Permalink
Re: Varnish return 503 (no backend connection) and never can back [In reply to]

I thought so. I have a patch somewhere that enables logging whenever
saintmode denies a backend connection.


On Fri, Jul 12, 2013 at 2:30 PM, Fabio Gomes dos Santos <
supergrilo [at] gmail> wrote:

> Yes! I used saint mode.
> This solve my problem. Thank you!
>
>
> 2013/7/12 Per Buer <perbu [at] varnish-software>
>
>> On Thu, Jul 11, 2013 at 10:11 PM, Fabio Gomes dos Santos <
>> supergrilo [at] gmail> wrote:
>>
>>> i have a problem using varnish 3.0 and debian wheezy. When i use backend
>>> on command line, everything works. If i use init script, after some
>>> connections varnish return 503 and never can back. Backend is not a sick
>>> mode, health check still return 200, varnishlog only retorns '4 FetchError
>>> c no backend connection'.
>>>
>> Are you using saintmode? If so, you might want to try to set
>> saintmode_threshold to 0. Saintmode will kick in and make a backend sort of
>> sick. And if I recall correctly it does this without logging it.
>>
>> --
>> <http://www.varnish-software.com/> *Per Buer*
>> Phone: +47 958 39 117 | Skype: per.buer
>> We Make Websites Fly!
>>
>> Winner of the Red Herring Top 100 Europe Award 2013
>>
>>
>>
>
>
> --
> Fábio Santos
> supergrilo [at] gmail
> <http://br.linkedin.com/pub/f%C3%A1bio-santos/1b/20/422>
>



--
<http://www.varnish-software.com/> *Per Buer*
CEO | Varnish Software AS
Phone: +47 958 39 117 | Skype: per.buer
We Make Websites Fly!

Winner of the Red Herring Top 100 Europe Award 2013

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.