Date: Tue, 12 Feb 2002 17:01:07 -0500 From: "James A. Arnold" <JArnold@knightridder.com> To: freebsd-questions@freebsd.org Subject: *bizarre* ftp problem Message-ID: <a05100303b88f3c8d258b@[206.128.102.10]>
next in thread | raw e-mail | index | archive | help
Every night a script on my FreeBSD 4.4 stable box grabs a .tar.gz file off of another server on our network. The file each night is usually more that 20 MB in size. However, my FBSD box will only download a little more than 8 megs before if stops downloading. I am using an expect script to handle the download with ftp. I also wrote another expect script to use ncftp3 and the same thing happens. I recently wrote the scripts. I don't think they are the problem since it does everything it's suppose to do. When I manually use ncftp or plain ftp from the shell it works perfectly and downloads the entire file without a hitch. I did notice an "ETA0" at the end of the failed ftp session when I ran my script manually from the command line. I'm running the script each night out cron. Here is what it looked like: manually running photos_in.exp: 150 Opening BINARY mode data connection for 0212.tar.gz (28171960 bytes). 32% |**************** | 8836 KB 00:21 ETA0 Here are the two sessions I ran manually with ncftp3 and ftp from the shell. Both worked just fine: Manually running ftp: -rw-r--r-- 1 photos photos 28171960 Feb 12 01:15 0212.tar.gz 226 Transfer complete. ftp> get 0212.tar.gz local: 0212.tar.gz remote: 0212.tar.gz 227 Entering Passive Mode (206,128,102,77,36,145) 150 Opening BINARY mode data connection for 0212.tar.gz (28171960 bytes). 100% |********************************************************************| 27511 KB 00:00 ETA 226 Transfer complete. 28171960 bytes received in 30.01 seconds (916.70 KB/s) manually running ncftp3 User photos logged in. Logged in to 206.128.102.77. ncftp /home/photos > get 0212.tar.gz 0212.tar.gz: 26.87 MB 897.49 kB/s My guess at this point is that it's some kind of network problem. The box to which I'm downloading is set up with two ethernet cards so I can access our internal network and a dsl line at the same time. Below is the output of ifconfig for my box: spike# ifconfig ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 206.128.102.241 netmask 0xffffff00 broadcast 206.128.102.255 atalk 65280.116 range 0-65534 phase 2 broadcast 0.255 ether 00:e0:7d:80:00:76 dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.0.118 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:04:5a:46:1a:37 media: Ethernet autoselect (10baseT/UTP) status: active lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 faith0: flags=8000<MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 atalk 0.0 range 0-0 phase 2 ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 I'm totally stumped at this point. Any ideas out there? Thanks, Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a05100303b88f3c8d258b>