Page 1 of 1

Recordings not transferring to second FTP server

PostPosted: Thu Oct 18, 2012 4:22 am
by Trying
Hi All

Our recordings are not transferring to the second FTP server. When I run /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl --ftp-server=192.16 8.0.238 --ftp-login=cron --ftp-pass=test --ftp-dir=/home/archive/RECORDINGS manually I get the following error:

Can't call method "login" on an undefined value at /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl line 376.

Line 376 is the following:

$ftp->login("$VARFTP_user","$VARFTP_pass");

As far as I know the user is cron and password is test.

Kindly please give me advice.

Re: Recordings not transferring to second FTP server

PostPosted: Thu Oct 18, 2012 7:25 am
by DomeDan
That was a confusing error, but I found out with some googling that you get that error when you get a timeout on the previous line:
$ftp = Net::FTP->new("$VARFTP_host", Port => $VARFTP_port, Debug => $FTPdb);

the reason for a timeout is probably that there is no ftp service running on the server 192.168.0.238, or maybe not running on the standard port?

Re: Recordings not transferring to second FTP server

PostPosted: Sun Nov 18, 2012 8:34 pm
by williamconley
of course you could also get a timeout if you have not properly configured the credentials (blank values). We've had that happen. We also had that error once a while ago when there was a flaw in the code that caused it to fail. We modified the code to hard-code the user/pass ... and the next upgrade overwrote our changes but fixed the flaw so we never had to look into it again.