Web Hosting Talk







View Full Version : cron.daily error FTP.pm line 551


yazzer
05-29-2001, 11:06 AM
About a week ago both of my Raq3s (one at 4webspace and one at CommuniTech.net) started emailing me this error message:

Timeout at /usr/lib/perl5/site_perl/5.005/i386-linux/Net/FTP.pm line 551

Here is the code from my FTP.pm
==============
$sock = $ftp->_data_cmd($cmd, $remote) or
return undef;

while(1)
{
last unless $len = sysread($loc,$buf="",1024);

my $wlen;
unless(defined($wlen = $sock->write($buf,$len)) && $wlen == $len)
{
$sock->abort;
close($loc)
unless defined $localfd;
return undef;
}
}
===============

The bold line starting with "unless" is line 551.
Does anyone have any idea what the error is about? I hadn't installed any patches or touched my machine in a month, it just started giving me the errors on both Raq3s. Weird!

I'm still getting my nightly backups FTPed to my home computer. Webalizer is still reporting.

atrocity
12-11-2001, 05:28 PM
Hi

I have the same problem to ...
Since a week, i have noticed that i receive the Webalizer + ftp backup some hours later then normaly. The ftp backup finish time is at 05:45 am and i receive the mail at 01:01 pm ?!
6 hours without webalizer and backup notification, this make strange ...
The webalizer and the backup are both ok.

Today, i receive the mail at about 01 pm, and i look at the end of it. Same message then you :
...
...
05:57:11 > raqbackup.sh 2.2 finished!
Timeout at /usr/lib/perl5/site_perl/5.005/i386-linux/Net/FTP.pm line 551

I have compared to the 2° backup server, also a Raq 4r with exactly the same config. The line 551 is EXACTLY the same.
I can't understand where the problem is, and why it loop for timeout after 6 hours ...
I hope then someone can help us, or i have to leave this like that ;(

Thanks for any help
Best regards
John