R
R
romsla2021-10-03 17:12:27
Task Schedulers
romsla, 2021-10-03 17:12:27

Cron is broken - jobs are not running, what could be?

Good afternoon.

Please provide assistance in solving the problem.

There is a web server (debian), it has several sites, each of them works under a separate account. A few days ago, the tasks stopped running, although no work was carried out.

What I checked:
1. Records of completed tasks in the logs - tasks are executed at the appointed time
2. File permissions - everything is fine
3. Account password expiration time - unlimited
4. The user's crontab file was created by the crontab -u username -e command
5. If you run the task from another machine, using a direct link ( https://example.com/cron.php ) - the task is executed
6. Created a test task in the user's file (create a file) - the file is created, that is, the cron works, but the tasks for the sites are not executed, and on all sites, in different accounts.
7. Jobs in the root file run fine

Thanks for the help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2021-10-03
@romsla

If your tasks do not write their logs, then by default cron errors are sent to the mail. The address is given by the MAILTO variable in the crontab. If not set, it will most likely send to [email protected]
Check /var/spool/mail/username

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question