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
- Can't activate appwrite education
Hi, I'm a student and I have activated my GitHub Education benefits but I already had an AppWrite account. I tried to log out and log back in from the education...
- Error: Trying to install appwrite on sub...
``` [Error] Method: POST appwrite | [Error] URL: /v1/account appwrite | [Error] Type: Appwrite\Extend\Exce...
- JavaScript heap out of memory during bui...
I am running into heap out of memory when I am trying to build an Appwrite site. Usually this can be fixed by modifying the `max-old-space-size` configuration, ...