Search squid archive

Re: ERROR 504: Gateway Time-out / Parent<->Child

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22/03/2012 1:14 a.m., Marcin Jarzab wrote:

In my testbed I have a configuration of 3 squids and 1 apache server acting as repo.

gc-repo.atis.com is organized with the apache and squid (Squid-1 - accel proxy).

2 remaing squids are running on Linux and Solaris and they are configured in parent (Squid-2 - Linux) - child (Squid-3 - Solaris) configuration.
Solaris contains 2.7 squid version.

How is this related to squid-1 and apache?
ie how do squid-2 and squid-3 identify requests which are destined to the squid-1/apache pair and which out of that pair do they contact?

what does gc-repo.atsi.com resolve to on each box? (IPv4 and IPv6 addresses)
  - does it use DNS or hosts file entries in your test setup?


I have strange problem. When there is a first hit (which is redirected to squid 2) coming to Squid3 (ver. 2.7) I got:

What do you mean by "redirected to" ?
a) request sent to squid-3 gets diverted and serviced by squid-2 without going through squid-3?
or
 b) request chained through squid-3 to squid-2 to somewhere?


wget http://gc-repo.atsi.com/repo/install_1.pkg
--2012-03-21 12:45:24--  http://gc-repo.atsi.com/repo/install_1.pkg
Connecting to 172.10.11.40:3128... connected.
Proxy request sent, awaiting response... 504 Gateway Time-out
2012-03-21 12:45:24 ERROR 504: Gateway Time-out

When I'm switching proxy to squid 2 (parent) everything is okay:

export http_proxy=http://172.10.11.30:3128

You are missing '/' at the end of that variable value. But it seems to work for wget anyway (other software wont, I know this from sad experience).

wget http://gc-repo.atsi.com/repo/install_1.pkg
--2012-03-21 12:44:47--  http://gc-repo.atsi.com/repo/install_1.pkg
Connecting to 172.10.11.30:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 2846259 (2.7M) [text/plain]
Saving to: `install_1.pkg.3'

Next I must restart Squid-3 (ver. 2.7) on Solaris and the content can be obtained. I suppose the problem lies with the 2.7 version.

Amos


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux