#1 2018-06-20 09:42:05

admin
Administrator
Registered: 2017-04-21
Posts: 1,390

Duplicate jobs in /var/spool/cron/crontabs/root

If you run the command --update-cron multiple times, this may lead to duplicate backup jobs in the crontab at /var/spool/cron/crontabs/root, resulting in something like this.

#min hour day mon dow command
1    1    *   *   *   /sbin/tmpwatch.py
1    *    *   *   *   /sbin/auto-backup.sh
0    *    *   *   *   /usr/lib/vmware/vmksummary/log-heartbeat.py
*/5  *    *   *   *   /sbin/hostd-probe ++group=host/vim/vmvisor/hostd-probe
0 2 * * * "/vmfs/volumes/datastore1/xsi-dir/jobs/001"
0 2 * * * "/vmfs/volumes/datastore1/xsi-dir/jobs/001"
0 2 * * * "/vmfs/volumes/datastore1/xsi-dir/jobs/001"

This would produce multiple backups simultaneously causing errors.
The quick fix is to remove redundant information by editing the file.
You first need to change permissions on the crontab file.
Then edit it and save it using vi editor.

# chmod 0700 /var/spool/cron/crontabs/root
# vi /var/spool/cron/crontabs/root

Use double "d" over the line/s to delete and then ":wq" to write and quit.

This will be fixed in version 11.0.1

Offline

Board footer