Crons not working

dorucrisan

Verified User
Joined
Oct 23, 2021
Messages
208
Location
Bucharest / Romania
I just discovered that crons are not running on one of my DA servers since September. There are 3 dates when each of the sites (around 40) stopped executing the crons, not all stopped the same date. All are daily crons. There is no sintax error or something of this kind to suspect, as all crons used to work as they are now, for the past 2 years or so. Exactly same crons works jus fine on other DA servers I have. I suspect something happened during some update or something of this kind. Problem is that crons are not starting, are not initiated by DA, not that starts and, for some reason do not finish. Is there anything I need to test/check or do to make crons work again. Thanks in advance. I have several accounts on that server (4) but all crons are on admin account if that matters. It used to work like that for a lomng time before.
 
In DirectAdmin (At least my copies) /var/log/cron doesn't exist, and the cron entries appear in /var/log/syslog

[Using Ubuntu 24.04 ESM]
 
Check if the cron service is running and if other crons (monthly etc) are running or not.
Restart the crond service, check for typo's in the cron files.

grep -i cron /var/log/* or journalctl -u crond to check if anything is happening.

Did you turn it off and on again? :)
 
1762084088942.png


How can I start/restart/ install cron service?
There is something wrong here.
 
It's not cron service it's crond service.

Check if it's running like this:
systemctl status crond
Thanks Richard,
Here is the result:

login as: root
[email protected]'s password:
Last login: Sun Nov 2 17:21:14 2025 from 82.76.52.14
[root@host ~]# systemctl status crond
● crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; preset: en>
Active: active (running) since Sun 2025-11-02 17:23:47 EET; 2h 7min ago
Main PID: 1291 (crond)
Tasks: 1 (limit: 820250)
Memory: 2.1M
CPU: 378ms
CGroup: /system.slice/crond.service
└─1291 /usr/sbin/crond -n

Nov 02 17:23:47 host crond[1291]: (CRON) INFO (running with inotify support)
Nov 02 17:57:01 host crond[1291]: (admin) RELOAD (/var/spool/cron/admin)
Nov 02 18:01:01 host CROND[13094]: (root) CMD (run-parts /etc/cron.hourly)
Nov 02 18:01:01 host run-parts[13098]: (/etc/cron.hourly) starting 0anacron
Nov 02 18:01:01 host run-parts[13104]: (/etc/cron.hourly) finished 0anacron
Nov 02 18:01:01 host CROND[13092]: (root) CMDEND (run-parts /etc/cron.hourly)
Nov 02 19:01:01 host CROND[21769]: (root) CMD (run-parts /etc/cron.hourly)
Nov 02 19:01:01 host run-parts[21772]: (/etc/cron.hourly) starting 0anacron
Nov 02 19:01:01 host run-parts[21778]: (/etc/cron.hourly) finished 0anacron
Nov 02 19:01:01 host CROND[21768]: (root) CMDEND (run-parts /etc/cron.hourly)
lines 1-20/20 (END)...skipping...
● crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; preset: en>
Active: active (running) since Sun 2025-11-02 17:23:47 EET; 2h 7min ago
Main PID: 1291 (crond)
Tasks: 1 (limit: 820250)
Memory: 2.1M
CPU: 378ms
CGroup: /system.slice/crond.service
└─1291 /usr/sbin/crond -n

Nov 02 17:23:47 host crond[1291]: (CRON) INFO (running with inotify support)
Nov 02 17:57:01 host crond[1291]: (admin) RELOAD (/var/spool/cron/admin)
Nov 02 18:01:01 host CROND[13094]: (root) CMD (run-parts /etc/cron.hourly)
Nov 02 18:01:01 host run-parts[13098]: (/etc/cron.hourly) starting 0anacron
Nov 02 18:01:01 host run-parts[13104]: (/etc/cron.hourly) finished 0anacron
Nov 02 18:01:01 host CROND[13092]: (root) CMDEND (run-parts /etc/cron.hourly)
Nov 02 19:01:01 host CROND[21769]: (root) CMD (run-parts /etc/cron.hourly)
Nov 02 19:01:01 host run-parts[21772]: (/etc/cron.hourly) starting 0anacron
Nov 02 19:01:01 host run-parts[21778]: (/etc/cron.hourly) finished 0anacron
Nov 02 19:01:01 host CROND[21768]: (root) CMDEND (run-parts /etc/cron.hourly)
~
~
~
~
~
~
~
~
~
lines 1-20/20 (END)
● crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; preset: enabled)
Active: active (running) since Sun 2025-11-02 17:23:47 EET; 2h 7min ago
Main PID: 1291 (crond)
Tasks: 1 (limit: 820250)
Memory: 2.1M
CPU: 378ms
CGroup: /system.slice/crond.service
└─1291 /usr/sbin/crond -n

Nov 02 17:23:47 host crond[1291]: (CRON) INFO (running with inotify support)
Nov 02 17:57:01 host crond[1291]: (admin) RELOAD (/var/spool/cron/admin)
Nov 02 18:01:01 host CROND[13094]: (root) CMD (run-parts /etc/cron.hourly)
Nov 02 18:01:01 host run-parts[13098]: (/etc/cron.hourly) starting 0anacron
Nov 02 18:01:01 host run-parts[13104]: (/etc/cron.hourly) finished 0anacron
Nov 02 18:01:01 host CROND[13092]: (root) CMDEND (run-parts /etc/cron.hourly)
Nov 02 19:01:01 host CROND[21769]: (root) CMD (run-parts /etc/cron.hourly)
Nov 02 19:01:01 host run-parts[21772]: (/etc/cron.hourly) starting 0anacron
Nov 02 19:01:01 host run-parts[21778]: (/etc/cron.hourly) finished 0anacron
Nov 02 19:01:01 host CROND[21768]: (root) CMDEND (run-parts /etc/cron.hourly)
~
~
~
~
~
~
~
~
~
lines 1-20/20 (END)
 
So that means the crond service is running and enabled on startup (so after start or reboot) and cron tasks should be executed.

Is it a backup cron or something which is running daily or which kind of cron? Can you post one of the crons which should be running and which is not running now?
 
Back
Top