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
Nextcloud: use php.ini for cron job as well #89392
Conversation
@ofborg test nextcloud |
This gets complicated because the new Let's pull in a few more minds to make sure we get this done in the most understandable way possible by pulling in a few more minds to mull this over... @NixOS/php and @jtojnar. |
This could fail horribly if one used a customized PHP for the fpm pool and than that the cron job used the ini file with a non-customized PHP and pulled the ini-file from a customized one. Better way would be to configure the PHP to contain all the settings and use the extended PHP package in both places. Edit: This should be inside of the nextcloud module. |
Actually reading through the code this already uses the custom |
Hm, ok, I'm confused in that case. It was running out of memory with a limit significantly lower than our maxUploadSize. I'll convert this to a draft and will have another look at the issue. |
@lheckemann did you have time to take another look at this? :) |
We're getting the following, in spite of maxUploadSize being set to 16G:
So the memory limit does seem to be 128M instead of 16G, and the changes in this PR did fix that issue. What I don't understand at this point is why what @aanderse said doesn't seem to be the case:
Will investigate soon. |
@lheckemann is this happening on 20.03? On 20.03 the PHP package in use is |
That'll be it, thanks! 🤦♂️ |
Motivation for this change
The cron jobs will sometimes fail because not enough memory is available. Enough memory would be available if the php.ini for nextcloud's fpm pool were used, so use it.
Things done