# \[SOLVED\] Occ command; PHP Fatal error, Allowed memory size of XXX bytes exhausted

**URL:** <https://help.nextcloud.com/t/solved-occ-command-php-fatal-error-allowed-memory-size-of-xxx-bytes-exhausted/108521>\
**Category:** ℹ️ Support\
**Tags:** update\_problems, nc21\
**Created:** [February 20, 2021, 10:02pm UTC](https://help.nextcloud.com/t/solved-occ-command-php-fatal-error-allowed-memory-size-of-xxx-bytes-exhausted/108521 "2021-02-20T22:02:38Z")\
**Posts on this page:** 1\
**Showing post:** 57

<div class="post-metadata">

**Author:** ![crobarcro](https://help.nextcloud.com/user_avatar/help.nextcloud.com/crobarcro/32/7523_2.png) [@crobarcro](https://help.nextcloud.com/u/crobarcro)\
**Post date:** [July 1, 2021, 12:09pm UTC](https://help.nextcloud.com/t/solved-occ-command-php-fatal-error-allowed-memory-size-of-xxx-bytes-exhausted/108521/57 "2021-07-01T12:09:14Z")

</div>

I have just encountered the same problem after upgrading to 21. I’m not stuck in maitenance mode, but cron always runs out of memory. For me also commenting out `memcache.local' => '\\OC\\Memcache\\APCu',` from ` /var/www/nextcloud/config/config.php`, letting the cron job run, and then uncommenting it again seems to have resolved the problem.

EDIT: actually uncommenting again brings the problem back

---

_[View the full topic](https://help.nextcloud.com/t/solved-occ-command-php-fatal-error-allowed-memory-size-of-xxx-bytes-exhausted/108521)._
