Appwrite migration crashes with the following message: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 33554440 bytes) in /usr/src/code/vendor/utopia-php/database/src/Database/Document.php on line 431
Is there a way to increase PHPs allowed memory? Or do I need to do something else?
steps to replicate?
This happens because the migration is using more memory than PHP allows. You can increase the limit like: php -d memory_limit=2G appwrite ... Are you migrating a large collection or using Docker defaults? I can help fix it.
Thank you for your responses π
I had to
- reduce the days the audit-files are stored
- delete documents from big collections but now the migration went through.
I am mainly using docker defaults. I have not found a corresponding .env-Variable regaring PHP. Where exactly do I have to input "php -d memory_limit=2G appwrite ..." and what does the ... stand for?
Glad it worked! I can show you exactly where to add that command in your Docker setup and what the ββ¦β stands for. Send me a message and Iβll guide you step by step.
Recommended threads
- Urgent Help
Hello Appwrite team, I urgently need your help. I am the founder of OnBuch, an EdTech application used by around 10,000 users in Cameroon. In the last two day...
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Migration from Cloud to Self-Hosted not ...
Hello Appwrite Community, I've got the problem, that when I try to migrate my Appwrite Project from the cloud to my self-hosted Appwrite, that an API Key is mi...