Cronjob of Surfer App stopped?
-
Hello,
one of my Apps (Surfer App) does have a cronjob configured to execute every minute a https "ping" to healthcheck.io
* * * * * curl https://hc-ping.com/XXXXXXXX-0ad4-XXXXXX-bb0a-3XXXXXXXXX30
That was running a few weeks without any problems, but since yesterday it seems the cronjob is not executed anymore.
Are any issues similar to this known? I didn't really change anything - you know
After rebooting the Cloudron Server the cronjob seems to work again.
Best,
Michael -
-
@girish is there a way to restart the Cronjob "Manager" without rebooting the server? It happend again this morning that the Cronjob stopped running. In the logs I see a last echo, but no "OK" response after curl command execution. Still not sure why that happening.
However I think it would be good to get a Notification if Cloudron Cronjob decides to stop Cronjobs for Containers?
-
Great, I have applied the debug message and restarted the box. I will let you know when the problem reoccurs.
-
@girish
15 minutes ago the last ping arrived at healthcheck, but the logs show the last check misses an OK and there is no debug message?2024-02-09T20:32:57.000Z Send Healthcheck 2024-02-09T20:33:57.000Z OK 2024-02-09T20:33:57.000Z Send Healthcheck 2024-02-09T20:34:57.000Z OK 2024-02-09T20:34:57.000Z Send Healthcheck 2024-02-09T20:35:57.000Z OK 2024-02-09T20:35:57.000Z Send Healthcheck 2024-02-09T20:36:57.000Z OK 2024-02-09T20:36:57.000Z Send Healthcheck 2024-02-09T20:37:57.000Z OK 2024-02-09T20:37:57.000Z Send Healthcheck 2024-02-09T20:38:57.000Z OK 2024-02-09T20:38:57.000Z Send Healthcheck
-
So, "Send Healthcheck" and "OK" are printed before and after your cron ? If that's the case, looks like it didn't complete. If you do
docker inspect
, you will find a container there like crontab.0 or something which is your container. You can exec into it and ps and check if that curl is stuck. -