Not transferring recordings

All installation and configuration problems and questions

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

Not transferring recordings

Postby Milhouse28 » Mon Apr 20, 2009 12:26 pm

Our vicidial recordings are not transferring to the other server since the past 3 days. it was set to crontab to process it, not sure where's the problem. Here is the current crontab.

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXSIB5nt installed on Wed Feb 18 03:41:06 2009)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
### recording mixing/compressing/ftping scripts
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
0 10 * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

### keepalive script for astguiclient processes
* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl

### kill Hangup script for Asterisk updaters
* * * * * /usr/share/astguiclient/AST_manager_kill_hung_congested.pl

### updater for voicemail
* * * * * /usr/share/astguiclient/AST_vm_update.pl

### updater for conference validator
* * * * * /usr/share/astguiclient/AST_conf_update.pl

### flush queue DB table every hour for entries older than 1 hour
11 * * * * /usr/share/astguiclient/AST_flush_DBqueue.pl -q

### fix the vicidial_agent_log once every hour
33 * * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl

### updater for VICIDIAL hopper
* * * * * /usr/share/astguiclient/AST_VDhopper.pl -q

### adjust the GMT offset for the leads in the vicidial_list table
1 1,7 * * * /usr/share/astguiclient/ADMIN_adjust_GMTnow_on_leads.pl --debug --postal-code-gmt

### reset several temporary-info tables in the database
2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl

### optimize the database tables within the asterisk database
3 1 * * * /usr/share/astguiclient/AST_DB_optimize.pl

### VICIDIAL agent time log weekly and daily summary report generation
2 0 * * 0 /usr/share/astguiclient/AST_agent_week.pl
22 0 * * * /usr/share/astguiclient/AST_agent_day.pl

### VICIDIAL campaign export scripts (OPTIONAL)
#32 0 * * * /usr/share/astguiclient/AST_VDsales_export.pl
#42 0 * * * /usr/share/astguiclient/AST_sourceID_summary_export.pl

### remove old recordings more than 7 days old
24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +7 -print | xargs rm -f

### remove old vicidial logs and asterisk logs more than 2 days old
28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
Milhouse28
 
Posts: 44
Joined: Wed Aug 20, 2008 5:42 pm

Postby mflorell » Mon Apr 20, 2009 2:10 pm

have you tried running the command manually?

/usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby Milhouse28 » Tue Apr 21, 2009 7:23 am

i tried executing the commands manually it is working. But i want to have the crontab work for it. What could be the problem?
Milhouse28
 
Posts: 44
Joined: Wed Aug 20, 2008 5:42 pm

Postby mflorell » Tue Apr 21, 2009 7:51 am

Have you checked the root mail on the server to see if it is sending any errors?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby Milhouse28 » Tue Apr 21, 2009 8:00 am

hmmm. i see no errors.
Milhouse28
 
Posts: 44
Joined: Wed Aug 20, 2008 5:42 pm

Postby mflorell » Tue Apr 21, 2009 8:02 am

What linux distro are you using?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby Milhouse28 » Tue Apr 21, 2009 8:03 am

OpenSuse for both of the server.
Milhouse28
 
Posts: 44
Joined: Wed Aug 20, 2008 5:42 pm

Postby mflorell » Tue Apr 21, 2009 8:37 am

And all of the other crontab entries are running just fine?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby Milhouse28 » Tue Apr 21, 2009 9:56 am

Yes, other crontab task is running fine, but the transferring of recording is not working as scheduled. but works when manually do the command. the server's storage is still have a lot of free space.
Milhouse28
 
Posts: 44
Joined: Wed Aug 20, 2008 5:42 pm

Postby mflorell » Tue Apr 21, 2009 11:12 am

Have you tried changing the time that it runs?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby Milhouse28 » Tue Apr 21, 2009 1:08 pm

i checked the AST_CRON_audio_3_ftp.pl file and it have

# ### recording mixing/compressing/ftping scripts
##0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
# 0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
# 1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --GSM
# 2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM

but un the crontab script shows:

### recording mixing/compressing/ftping scripts
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
0 10 * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

notice the /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM, it different. could this be causing the problem?
Milhouse28
 
Posts: 44
Joined: Wed Aug 20, 2008 5:42 pm

Postby mflorell » Tue Apr 21, 2009 1:13 pm

Are you uploading GSM files or MP3s?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby Milhouse28 » Tue Apr 21, 2009 1:28 pm

we're uploading mp3s.
Milhouse28
 
Posts: 44
Joined: Wed Aug 20, 2008 5:42 pm

Postby mflorell » Tue Apr 21, 2009 9:02 pm

Then --MP3 should be correct.

If a command runs from command-line then it should run fine from the crontab. Is there anything in /var/log/messages?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 243 guests