-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Fatal error: Allowed memory size exhausted on cron job #1735
Comments
What is Your PHP memory limit (memory_limit in php.ini)? If it's low try to make it higher like 512MB. |
Cron uses the CLI PHP configuration. Your PHP If you get stuck changing it, visit the Nextcloud Help Forum. This isn't a Photos app bug. This issue can be closed out. |
hi, i had the same problem. add "-dmemory_limit=-1" to your cron job, i.e. "/usr/local/php81/bin/php -dmemory_limit=-1 occ photos:update-1000-cities" |
I am running a small private nextcloud instance in a shared hosting environment. I also saw the following lines when background jobs were run:
They appeared after I uploaded some geotagged photos. Deleting the photos fixed the problem. Alternatively, disabling the photo app also "fixed" the issue (but, of course, then the app is no longer available). As explained in the posts above, the issue is, of course, insufficient memory. The thing is: Without upgrading to a more expensive shared hosting plan, I am stuck with 128MB of memory. So I cannot increase it by simply editing some php configuration or cron job. And for my single-user use case it was sufficient till now. Is there maybe some way to disable the geotagging feature of the photos app? Also note: The minimum memory according to the nextcloud manual is 128MB, so I would expect the photos app to work with that. So one might actually argue it is a photos app bug (or, alternatively, the manual needs to be updated). |
That's the minimum that is even viable, but >=512 is recommended. It also says memory needs vary greatly depending on apps/etc. :-) |
@Sedeniono Doc clarification pending for memory constrained environments. Thanks for pointing that out: nextcloud/documentation#11775 |
Describe the bug
I'm getting repeatedly error warnings from the Cron Daemon:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Cron daemon running without error
Server (please complete the following information):
Additional context
Error appeared last friday for the first time
The text was updated successfully, but these errors were encountered: