BrinamiteOriginal post
Rank 2: Process
I am upgrading my 1.5.5 instance to get it up to speed. I managed to migrate through 1.5.6 and 1.5.7, however, the migration to 1.5.8 threw this error when I ran ~/drive/appwrite $ docker compose exec appwrite migrate
I got the below error:
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
Is this something from my end, because it looks like an internal error.
Running docker ps | grep appwrite/appwrite shows 1.5.8 across the board. However, my web UI is borked.
Summary
Developers encountered an error during migration from version 1.5.7 to 1.5.8 that resulted in a Swoole\Error. The issue seems to be an internal error related to making an API call in the wrong context. This is likely causing the web UI to malfunction. Check the environment and ensure that API calls are made correctly within the coroutine.