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
- THE COLUMNS STUCK ON PROCESSING HOW DO I...
I HAVE SELF HOSTED THE APPWRITE ON VPS
- Impossible to create project via CLI?
Is it possible to create a new project via the appwrite CLI ? I need to create a few projects for something I'm working on and because i don't want to do it man...
- Understanding S3 setup with appwrite
Hey, i'm planning to change the storage from local to S3, tho i have some questions to see before starting the migration. 1. Does all the `/storage/<storage_ty...