• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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