Recordings not transferring to second FTP server

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Recordings not transferring to second FTP server

Postby Trying » Thu Oct 18, 2012 4:22 am

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.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Re: Recordings not transferring to second FTP server

Postby DomeDan » Thu Oct 18, 2012 7:25 am

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?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: Recordings not transferring to second FTP server

Postby williamconley » Sun Nov 18, 2012 8:34 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 94 guests