Bad minute in crontab?
ERROR 详细
修改crontab出现如下错误:
crontab: installing new crontab
“/tmp/crontab.MswKCq”:0: bad minute
errors in crontab file, can’t install.
Do you want to retry the same edit? n
crontab: edits left in /tmp/crontab.MswKCq
根因定位
通过多种方法尝试发现是如下原因导致的;
Googled all round and found that this was the error due to the no space in log folder for cron i.e in /var. Make sure to run df -h /var/ and see if there is enough space there.
通过执行命令df -h /var
总空间为40G,可用空间为0
crontab的log日志高达近39G
删除crontab的log日志后,修改crontab就正常了。
结论
报错太误导人了