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
- how to access the value of account statu...
- Redirect from clicking team invite link ...
Hi all! Pretty new to app development in general so this might be something more generic than appwrite, but I've found (after reading the docs for the Teams API...
- Hosting Issues with Static IP not domain...
I have a machine with Static Public IP. I want to host Appwrite Site on it but I tried it but it doesn't allow IP addresses in Domain names. What should I do h...