
I just updated my instance from 1.5.7 to 1.5.8 following the guide here: https://appwrite.io/docs/advanced/self-hosting/update
I'm at the end of the step where I would need to run docker compose exec appwrite migrate
and I'm getting the following error:
TypeScript
docker compose exec appwrite migrate
Fatal error: Uncaught Swoole\Error: API must be called in the coroutine in /usr/src/code/src/Appwrite/Platform/Tasks/Migrate.php:70
Stack trace:
#0 /usr/src/code/src/Appwrite/Platform/Tasks/Migrate.php(70): Redis->connect('redis', '6379', 3, NULL, 10)
#1 /usr/src/code/src/Appwrite/Platform/Tasks/Migrate.php(36): Appwrite\Platform\Tasks\Migrate->action('1.5.8', Object(Utopia\Database\Database), Object(Closure), Object(Utopia\Registry\Registry))
#2 /usr/src/code/vendor/utopia-php/cli/src/CLI/CLI.php(320): Appwrite\Platform\Tasks\Migrate->Appwrite\Platform\Tasks\{closure}('1.5.8', Object(Utopia\Database\Database), Object(Closure), Object(Utopia\Registry\Registry))
#3 /usr/src/code/app/cli.php(215): Utopia\CLI\CLI->run()
#4 {main}
thrown in /usr/src/code/src/Appwrite/Platform/Tasks/Migrate.php on line 70
TL;DR
Developers are facing issues running migrations after updating to version 1.5.8. The error message "API must be called in the coroutine" is being shown while trying to run the migration command. The issue appears to be related to a fatal error in the migration process of the Appwrite instance.
**Solution:** It seems like the error might be caused by a problem in the migration script itself. Double-check the migration script for any issues, or try reaching out to the Appwrite support team for further assistance.Recommended threads
- ENV vars not updating
When i do `nano .env` it shows `_APP_DOMAIN_TARGET=` as set to my domain, but when i do `docker compose exec appwrite vars` it shows `_APP_DOMAIN_TARGET=` as ...
- Index with the requested key already exi...
I'm using appwrite cli to create DB and I'm getting index_already_exists Is there a way to undestand the index name and maybe to skip if it's already exits?
- Issue - Migration From Cloud > Self Host...
Hi team, I’m trying to migrate a few of my Appwrite projects from the cloud to a self-hosted instance. These projects are currently in “archive mode” due to th...
