Adam,

Thanks for responding.  Yes that seems to be the problem exactly.  Squid,
says it cannot access the URL.  But clicking on the link in the Error page
generated by Squid works fine?

Checking the load of the other server, 199.9.2.16, shows that it never sees
the request.

To see this problem in action click on 

http://mako.nrlmry.navy.mil/tc-bin/tc_home a couple of times or so.

What's in the logs?

For a failed request access log shows

192.160.159.24 - - [06/Sep/2000:10:22:40 -0700] "GET
http://127.0.0.1:7777/tc-bin/tc_home HTTP/1.1" 503 1079 TCP_MISS:DIRECT
(Here I assume it is being redirected to 199.9.2.16)

The only difference is that when it works (connecting to 127.0.0.1) it says
TCP_IMS_HIT:NONE

store log:

968260960.303 RELEASE FFFFFFFF  503        -1        -1        -1 unknown
-1/1019 GET http://127.0.0.1:7777/tc-bin/tc_home

which doesn't seem too helpful

When it does work (again assume connecting to 127.0.0.1) store log looks
like:
968261980.789 RELEASE FFFFFFFF  200 968261980        -1 968261980 text/html
-1/1205 GET http://127.0.0.1:7777/tc-bin/tc_home
968261981.518 RELEASE FFFFFFFF  200 968261981        -1 968261981 text/html
-1/4265 GET http://127.0.0.1:7777/tc-bin/tc_list_storms?
968261981.565 RELEASE FFFFFFFF  304 968189274 968120284        -1 image/gif
-1/0 GET http://127.0.0.1:7777/my_icons/ball.red.gif
968261982.211 RELEASE FFFFFFFF  304 968188361 966296432        -1
application/x-javascript -1/0 GET http://127.0.0.1:7777/java_scripts/menu.js
968261983.587 RELEASE FFFFFFFF  200 968261981        -1 968262282 text/html
-1/31859 GET http://127.0.0.1:7777/tc-bin/tc_display?
968261983.587 RELEASE FFFFFFFF  304 968188798 968171103        -1 image/gif
-1/0 GET http://127.0.0.1:7777/tc_thumbs/smal922000.00090512.gif
968261983.661 RELEASE FFFFFFFF  200 968261983        -1 968262103 image/gif
-1/264 GET http://127.0.0.1:7777/cgi-bin/Count4.cgi?
968261983.684 RELEASE FFFFFFFF  304 968261747 968261695        -1 image/jpeg
-1/0 GET
http://127.0.0.1:7777/tc_thumbs/sm20000906.1715.goes-8.vis.x.INVEST.92L.jpg
968261983.704 RELEASE FFFFFFFF  200 968261983        -1 968262103 image/gif
-1/277 GET http://127.0.0.1:7777/cgi-bin/Count4.cgi?
968261983.851 RELEASE FFFFFFFF  304 968188809 933271467        -1 image/gif
-1/0 GET http://127.0.0.1:7777/images/hbar.gif



And nothing new in the cache log

When it fails the page generated by Squid says:


ERROR
The requested URL could not be retrieved

----------------------------------------------------------------------------
----

While trying to retrieve the URL: http://199.9.2.16:8888/tc-bin/tc_home 

The following error was encountered: 

Connection Failed 
The system returned: 

    (126) Cannot assign requested address
The remote host or network may be down. Please try the request again. 

Your cache administrator is [EMAIL PROTECTED] 



----------------------------------------------------------------------------
----
Generated Wed, 06 Sep 2000 17:25:53 GMT by mako.nrlmry.navy.mil
(Squid/2.3.STABLE4

Clicking on the URL that Squid says it couldn't connect to works!!!?

So I really don't know how to proceed at this point.  I wish there was
something
that would show me what exactly Squid tried to do which generated this
error.
The exact call it attempted to make. 



Thanks,
John

Here is my redirect.pl:
#!/users/webuser/perl/bin/perl
$| = 1;

# Testing switching between two servers
my(@HEAVY) = qw{199.9.2.16 127.0.0.1};

my($i,$j) = 0;

while(<>){
   
    if ($_ =~ /sat-bin|tc-bin/){

        my($value) = $HEAVY[rand(@HEAVY)];
        # Rotate servers
        s%127\.0\.0\.1(:\d+)?%$value%;

        # Specify heavy mod_perl server for cgi scripts
        s%(:\d+)?/sat-bin%:8888/sat-bin%i && next;
        s%(\:\d+)?/tc-bin%:8888/tc-bin%i && next;
    }

} continue {
    print LOG "$$ > $_\n";

    print;                                     # falls through to
apache_light
}

###############################################################
Here is a sample of the before and after effects of the redirector
for a failed request

URL Before redirector
25154 <
http://127.0.0.1:7777/tc-bin/tc_list_storms?DISPLAY=Active&PROD=track_vi
s&TYPE=ssmi&YEAR=2000&MO=Sep&ACTIVES=00-EPAC-14E.LANE,00-WPAC-22W.SAOMAI,00-
WPAC
-23W.WUKONG,00-WPAC-24W.BOPHA,00-EPAC-90E.INVEST,00-ATL-92L.INVEST,
192.160.159.
24/- - GET

value = 199.9.2.16

URL after redirector, its working as intended.
25154 >
http://199.9.2.16:8888/tc-bin/tc_list_storms?DISPLAY=Active&PROD=track_v
is&TYPE=ssmi&YEAR=2000&MO=Sep&ACTIVES=00-EPAC-14E.LANE,00-WPAC-22W.SAOMAI,00
-WPA
C-23W.WUKONG,00-WPAC-24W.BOPHA,00-EPAC-90E.INVEST,00-ATL-92L.INVEST,
192.160.159
.24/- - GET

####################################################################

Perhaps your desktop machine can access the URL, but the squid server
can't ? What do the squid logs report ?

 - Adam

Reply via email to