Page 1 of 1

crontab entry delete

PostPosted: Thu Jun 09, 2011 9:51 am
by viciflash
can someone post me the crontab entries of root, default?

i think my crontab for root got deleted. i am getting the error time sync. i noticed that crontab entries is no longer present.

PostPosted: Thu Jun 09, 2011 10:12 am
by williamconley

PostPosted: Thu Jun 09, 2011 10:58 am
by viciflash
thanks i've seen it as well. will there be any issues?

anyway i'll try to install a new one to copy the orig settings.

PostPosted: Thu Jun 09, 2011 5:55 pm
by viciflash
and what would be the reason why the cron got deleted?

PostPosted: Wed Jun 22, 2011 4:44 pm
by viciflash
i just experience this again last night. crontab entries got removed.

so i had to put it back again from the backup.

why is this happening?

PostPosted: Thu Jun 23, 2011 10:33 am
by viciflash
no one experience this yet?

PostPosted: Fri Jun 24, 2011 2:39 pm
by gardo
The crontab entries don't delete themselves. Who else has access to your server?

PostPosted: Sat Jun 25, 2011 3:26 am
by viciflash
only 3 of us knows the password. so im wondering why it got deleted. and then after i restored the original cron entry, auto dial no longer works. i tried using the one posted in the ubuntu scratch install and works fine.

i haven't compared the differences of the two but im sure the orig is no longer working. i might redo this server and keep it more secure :( hopefully.

PostPosted: Sat Jun 25, 2011 4:03 pm
by cristian
This happened to me once a _long_ time ago. The box didn't have access to a public IP route so it wasn't a security issue.

Never figured it out. I think I did a "chmod a=r" to the chrontab, didn't happen again.

PostPosted: Sun Jun 26, 2011 11:51 am
by williamconley
I've seen this on the forums a few times. I think it may have to do with a crontab -e bug / hiccup that may happen from time to time (or possibly inexperienced users with vi?). Each time it has happened it has been a very new user completely inexperienced with Linux.

typing "history" may give a hint of the last person who used crontab -e (and based on other command line choices to determine what else was going on, you may find that was the last time the system worked as well).

BUT: I'm just guessing, never had direct accss to a machine immediately after it happened.

PostPosted: Sun Jun 26, 2011 5:36 pm
by cristian
Are you calling me a noob Bill? :wink:

PostPosted: Sun Jun 26, 2011 11:39 pm
by williamconley
are you saying you've never been one? 8) (We all started somewhere, except Matt, he was born here)

cristian wrote:This happened to me once a _long_ time ago.

PostPosted: Mon Jun 27, 2011 1:48 am
by cristian
LOL

Re: crontab entry delete

PostPosted: Fri Apr 27, 2012 8:50 pm
by pagmasakpan
does anyone here can give me sample of code in your crontab in vicidial

coz i need to rebuild my crontab so that it will update it again my system.


thanks!

VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk Version: 1.4.38-vici
Single Server

Model: Intel Xeon CPU x3430
Installtion: .iso installation of goautodial
OS: Centos

Re: crontab entry delete

PostPosted: Sun Apr 25, 2021 2:59 pm
by zerocool
### keepalive script for astguiclient processes
* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl

### Compress log files and remove the really old ones
25 2 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +1 -print | grep -v \.gz | xargs gzip -9 >/dev/null 2>&1
30 2 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime 1 -print | grep -v \.gz | xargs gzip -9 >/dev/null 2>&1
28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +30 -print | xargs rm -f
30 0 * * * /usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +30 -print | xargs rm -f

### fix the vicidial_agent_log once every hour and the full day run at night
33 * * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl
50 0 * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl --last-24hours
## uncomment below if using QueueMetrics
#*/5 * * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl --only-qm-live-call-check

### 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 --list-settings

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

### inventory report optional
#1 7 * * * /usr/share/astguiclient/AST_dialer_inventory_snapshot.pl -q --override-24hours

### roll logs monthly on high-volume dialing systems
#30 1 1 * * /usr/share/astguiclient/ADMIN_archive_log_tables.pl

### roll call_log and vicidial_log_extended daily on very high-volume dialing systems
#20 1 * * * /usr/share/astguiclient/ADMIN_archive_log_tables.pl --daily

## uncomment below if using Vtiger
#1 1 * * * /usr/share/astguiclient/Vtiger_optimize_all_tables.pl --quiet

# cleanup of the scheduled callback records
25 0 * * * /usr/share/astguiclient/AST_DB_dead_cb_purge.pl --purge-non-cb --quiet
# removal of duplicate scheduled callback records
#35 0 * * * /usr/share/astguiclient/AST_DB_dead_cb_purge.pl --purge-non-cb --remove-dup-cb --quiet

### inbound email parser should only be active on a single server
* * * * * /usr/share/astguiclient/AST_inbound_email_parser.pl

### flush queue DB table every hour for entries older than 1 hour
11 * * * * /usr/share/astguiclient/AST_flush_DBqueue.pl -q
35 2 * * * /usr/bin/find /var/log/asterisk -maxdepth 1 -type f -mtime +1 -print | grep -v \.gz | xargs gzip -9 >/dev/null 2>&1
40 2 * * * /usr/bin/find /var/log/asterisk -maxdepth 1 -type f -mtime 1 -print | grep -v \.gz | xargs gzip -9 >/dev/null 2>&1
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +30 -print | xargs rm -f

### 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_mix.pl --MIX
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
#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 --MP3
#0 1 * * * /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl --ftp-server=server.ip --ftp-login=user --ftp-pass=pass --ftp-directory=/ --ftp-persistent --ftp-validate --transfer-limit=100000 --list-limit=100000

### remove old recordings more than 7 days old, and delete originals after 1 day
#24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +7 -print | xargs rm -f
24 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 2 -type f -mtime +1 -print | xargs rm -f

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

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

### Reboot nightly to manage asterisk issues and memory leaks - uncomment if issues arise
#30 6 * * * /sbin/reboot

### remove text to speech file more than 4 days old
#20 0 * * * /usr/bin/find /var/lib/asterisk/sounds/tts/ -maxdepth 2 -type f -mtime +4 -print | xargs rm -f

## uncomment below if you want to log agent phone_ip
#*/5 * * * * /usr/share/astguiclient/AST_phone_update.pl --agent-lookup

Re: crontab entry delete

PostPosted: Sun Apr 25, 2021 5:01 pm
by carpenox
this happens when u use the vicibox-certbot script on older vicibox9 iso's, but since this is in the goautodial forum im gonna guess that doesnt apply here