Does this happen in your builds while deploying, or during normal application running?
Is it related to uploading files?
We’re working on updating the Docker setup (which will make this particular task easier!).
In the meantime, edit your file (in your code base) docker/php.ini and increase the memory limit there. Those changes should get pulled in when you depot next.
Note that it’s possible you’ll need to set other settings if you’re uploading larger files.
Based on your error message it sounds like it’s related to memory_limit specifically. Do you know how large the file is? Using streaming should, in theory, be efficient enough to not need a high PHP limit. But if you need to increase the memory limit, you can!
Don’t forget your Fly virtual machine has its own cap on memory usage (default of 256m for the free tier).
Thanks, Chris, all solved. On a side topic, you may want to adjust the generated Laravel docker/supervisor.conf entry for the queue worker command, it contains a hardcoded ‘sqs’ connection. It took me a little while to find out why my log was filling with AWS SQS error messages!
That’s actually changing a lot soon, coming in the next flyctl release. I’ll be re-documenting how to accomplish cron and queue workers, as it’ll change a bit.
(The new setup will be easier to adjust in a few ways).