crontab entries error

All installation and configuration problems and questions

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

crontab entries error

Postby sberg » Tue May 22, 2007 3:00 am

Hi,

in my crontab..i have added the
### recording mixing for Asterisk run every 5 minutes
1,6,11,16,21,26,31,36,41,46,51,56 * * * 1,2,3,4,5,6 /usr/share/astguiclient/AST_CRON_mix_recordings_BASIC.pl

### 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 * * * /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

## adjust time on the server with ntp
30 * * * * /usr/local/bin/ntpdate -u 18.145.0.30 2>/dev/null 1>&2

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

givig error :

Message 1:
From root@localhost.localdomain Tue May 22 10:51:02 2007
Date: Tue, 22 May 2007 10:51:02 +0530
From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <root@localhost> /usr/share/astguiclient/AST_conf_update.plX-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

problem connecting to "localhost", port 5038: Connection refused at /usr/share/astguiclient/AST_conf_update.pl line 188

any solutions ...

Regards,
Sberg
sberg
 
Posts: 18
Joined: Thu May 10, 2007 5:43 am

Postby ramindia » Tue May 22, 2007 3:17 am

Hi

just check the below url some time back they were discussing the same

http://www.eflo.net/VICIDIALforum/viewt ... hlight=188

ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby sberg » Tue May 22, 2007 4:49 am

Hi,
aftere the checking the manager.conf previously was getting error at line 188,
now getting at 191...

error:
From root@localhost.localdomain Tue May 22 15:12:02 2007
Date: Tue, 22 May 2007 15:12:02 +0530
From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <root@localhost> /usr/share/astguiclient/AST_vm_update.pl
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
pattern match read eof at /usr/share/astguiclient/AST_vm_update.pl line 191

asterisk -r
May 22 15:13:02 NOTICE[26905]: manager.c:575 authenticate: 127.0.0.1 tried to authenticate with nonexistent user 'sendcron'
== Connect attempt from '127.0.0.1' unable to authenticate
== Connect attempt from '127.0.0.1' unable to authenticate
== Parsing '/etc/asterisk/manager.conf': Found
May 22 15:13:03 NOTICE[26936]: manager.c:575 authenticate: 127.0.0.1 tried to authenticate with nonexistent user 'updatecron'
== Parsing '/etc/asterisk/manager.conf': Found
May 22 15:13:04 NOTICE[26942]: manager.c:575 authenticate: 127.0.0.1 tried to authenticate with nonexistent user 'listencron'
== Connect attempt from '127.0.0.1' unable to authenticate
== Connect attempt from '127.0.0.1' unable to authenticate

this is error comming again......

Regards,
Sberg
sberg
 
Posts: 18
Joined: Thu May 10, 2007 5:43 am

Postby sberg » Tue May 22, 2007 6:10 am

hi all

problem has been solved as there were no entries in the manager.conf file

entries are:
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[cron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
[updatecron]
secret = 1234
read = command
write = command
[listencron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = command
[sendcron]
secret = 1234
read = command
write = system,call,log,verbose,command,agent,user

restart the asterisk once and check

Regards,
Sberg
sberg
 
Posts: 18
Joined: Thu May 10, 2007 5:43 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 105 guests