Mailing List Archive

Varnishd 1.1.2 returns 5xx
Dear All,

I am trying to replace squid with varnishd for reverse proxy. But I
found varnishd 1.1.2 sometimes responses 5xx, while varnishd 1.2 works
correctly.

I tested with the command below:
cat a_long_url_list | wget -i - -B http://rproxy{1,2}/ -O
/dev/null -o /dev/stdout | egrep -i '(response|fail)' | grep -v 200

where rproxy1 running varnishd-1.2, and rproxy2 running varnishd-1.1.2
The output of wget which connected rproxy2 is:
HTTP request sent, awaiting response... 503 Service Unavailable
HTTP request sent, awaiting response... 503 Service Unavailable
HTTP request sent, awaiting response... 503 Service Unavailable
HTTP request sent, awaiting response... 503 Service Unavailable
HTTP request sent, awaiting response... 503 Service Unavailable

All OS is FreeBSD 7.0. Thank you for any suggestions!
Varnishd 1.1.2 returns 5xx [ In reply to ]
In message <47713ee10712210259h3be8efe4t50daab5e8a347412 at mail.gmail.com>, "Lin
Jui-Nan Eric" writes:

>I am trying to replace squid with varnishd for reverse proxy. But I
>found varnishd 1.1.2 sometimes responses 5xx, while varnishd 1.2 works
>correctly.

Examine your varnishlog output to see why varnish gives 503.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.