• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Scheduled Task stopped working. Does run manually.

boeieruurd

New Pleskian
Server operating system version
Ubuntu 22.04.3 LTS
Plesk version and microupdate number
Plesk Obsidian v18.0.55_build1800230907.05 os_Ubuntu 22.04
Hello Pleskians,

I've had a cron job running through the plesk task scheduler and it was working fine for about 8 days with no issues.
The cron job runs a php script that fills up a database, and i noticed it stopped filling at some point.

I can see the cron job run in the logs, at the specified time, the job get's executed, however the database was still not getting filled.
I thought about there was maybe something wrong with the script or the database, but the funny part is that it runs just fine when i click "run now" from within the task scheduler.

So the script or the database is not the issue, since i can run it just fine when clicking "run now".

Does anyone have a idea on what might be wrong?

Thanks in advance for helping me.
 
Have a look at the (php/apache/nginx) error logs to see if there are any errors in your script at the time of the cron job.
 
Have a look at the (php/apache/nginx) error logs to see if there are any errors in your script at the time of the cron job.
I've checked the logs at all the times, there is nothing there. I do see the cron job opening a session, executing and closing the session at the right intervals.

Last night, the script ran 13 times, and it only filled the database 3 times. I'm not sure what's wrong. Every time i run the script manually, it always succeeds. It has not ever failed me when running manually.
 
Did you manage to solve this? I'm having the same problem.

Cron job has been working fine for a long time, cron job fails or ends incomplete and manually execution works perfectly.
 
Back
Top