# Nextcloudcron.service stops working in ~12 hours

**URL:** <https://help.nextcloud.com/t/nextcloudcron-service-stops-working-in-12-hours/185386>\
**Category:** ℹ️ Support\
**Tags:** ubuntu, cron\
**Created:** [March 15, 2024, 1:36am UTC](https://help.nextcloud.com/t/nextcloudcron-service-stops-working-in-12-hours/185386 "2024-03-15T01:36:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bb77](https://help.nextcloud.com/letter_avatar/bb77/32/6_22734026db12803ebb3e059622ac3534.png) [@bb77](https://help.nextcloud.com/u/bb77)\
**Post date:** [March 15, 2024, 7:35am UTC](https://help.nextcloud.com/t/nextcloudcron-service-stops-working-in-12-hours/185386/2 "2024-03-15T07:35:26Z")

</div>

I’m not sure what exactly is causing this, but here are a few ideas of what you could try/check…

> [@knedlyk](#):
>
> with some little tuning

Have you ever tried without your tuning? Maybe it has something to do with the scheduling/priority settings you added or with the `ExecStartPre` option that checks whether apache is running.

Or maybe some app you have installed causes the job to fail, like in the following thread… [Background cron jobs failing at regular intervals after v. 25.0.1 - #2 by n0plan](https://help.nextcloud.com/t/background-cron-jobs-failing-at-regular-intervals-after-v-25-0-1/151202/2)

Also, if you’re using APCu as a memory cache, make sure that APCu is enabled for the CLI, otherwise some scripts like the ones in the cron.php tend to fail. See [here](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html#id1) and [here](https://help.nextcloud.com/t/newly-upgraded-nc-21-0-1-runs-oom-during-cron-and-process-gets-killed/114687/5).

---

_[View the full topic](https://help.nextcloud.com/t/nextcloudcron-service-stops-working-in-12-hours/185386)._
