ftpget failing (squid 1.1.10)

From: John Warbutton <JWAR@dont-contact.us>
Date: Wed, 30 Apr 97 14:31:00 EDT

Hello squidders,

I have a problem with ftpget from 1.1.10, and was wondering if anyone else
has seen or dealt with it.

Our environment is squid 1.1.10, running on Solaris 2.5.1. We use "socks 5
beta 0.17.2 exportable" to talk through our firewall bastion host. squid is
started using stock standard RunCache with the only modification being a
call to socks to run squid:
      /usr/local/bin/runsocks squid -sY $conf >> $logdir/squid.out 2>&1

This setup worked with squid 1.1.1 previously, but we had to upgrade as it
was getting confused with socks (as well as being well overdue).

The problem is that I start an ftp session through Netscape 3.0, and get
this error back from squid:
******error******
The following error was encountered:
     Connection Failed
The system returned:
    (125) Address already in use
This means that:
    The remote site or server may be down. Please try again soon.
******error******

After a bit of digging around, and running with some debugging, I find that
the address already in use is not at the remote site, but the TCP port that
ftpget is using!

From cache.log, with "debug_options ALL,1 38,9 50,9 9,9 4,9 26,9"
97/04/30 14:15:58| FtpStart: FD 35 'ftp://squid.nlanr.net/pub/'
97/04/30 14:15:58| FtpStart: FD 35, host=squid.nlanr.net, path=/pub/,
user=anonymous, passwd=squid@
97/04/30 14:15:58| connect: 127.0.0.1:60561: (125) Address already in use.
97/04/30 14:15:58| ERR_CONNECT_FAIL: ftp://squid.nlanr.net/pub/

# ps -ef | grep ftpget
    root 24392 24255 1 14:26:40 pts/0 0:00 grep ftpget
www-prox 21547 14469 0 10:45:14 ? 0:00 /usr/local/squid/bin/ftpget
 -S 60561

# ./lsof -iTCP:60561
COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME
ftpget 21547 www-prox 3u inet 0xff563ce0 0t0 TCP
*:60561

The frustrating thing is that maybe one in 10 or 20 attempts will actually
work, and then it will all fail again.

I realise we have a non-standard setup, but maybe someone might have seen
this before?

Thanks

John
Received on Tue Apr 29 1997 - 21:49:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:03 MST