I have Nextcloud 25.0.13 installed on a Slackware/Apache server. I’m very nearly the only user and I don’t use it much.
Quite often (maybe once or twice per day) I get an email like this from cron:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /.../nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php on line 130
I have a couple of questions please:
What is this app store fetcher? Is it looking for new versions of something? How do I disable that?
What could it possibly be doing to need more than 128M of RAM? That’s a /lot/ of memory.
The AppStore Fetcher is part of Nextcloud’s AppStore system, which is responsible for:
Checking for available updates for your installed apps.
Checking for new apps you could install from Nextcloud’s app store.
Fetching metadata about apps (versions, dependencies, compatibility, etc.).
If you rarely use Nextcloud and don’t care about app updates, then open config/config.php in your Nextcloud folder and add or edit this setting: ‘appstoreenabled’ => false, - This will disable all communication with the Nextcloud App Store, including update checks for apps.
About php, by default, 128 MB is a standard PHP memory limit. Nextcloud itself can require 256 MB+ for heavier operations, even on “light” installations. If you want to keep the app store fetcher but prevent cron errors, you can bump PHP memory in php.ini: memory_limit = 256M
Thanks for the suggestion! I’ll try ‘appstoreenabled’ => false
But I’m still confused about how such a simple operation (check for new versions and such) can use so much RAM. I don’t think I could write code to use that much memory on purpose even if I chose to be really sloppy.