TypeScript
Migrating documents for collection "attributes"
Migrating documents for collection "indexes"
Migrating documents for collection "functions"
Failed to migrate project "66aa3b6400267d45bf24" with error: Utopia\Database\Database::getDocument(): Argument #2 ($id) must be of type string, null given, called in /usr/src/code/src/Appwrite/Migration/Version/V22.php on line 394
[Error] Timestamp: 2025-05-19T15:01:24+00:00
[Error] Type: TypeError
[Error] Message: Utopia\Database\Database::getDocument(): Argument #2 ($id) must be of type string, null given, called in /usr/src/code/src/Appwrite/Migration/Version/V22.php on line 394
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 3171
[Error] Trace: #0 /usr/src/code/src/Appwrite/Migration/Version/V22.php(394): Utopia\Database\Database->getDocument('deployments', NULL)
#1 /usr/src/code/src/Appwrite/Migration/Migration.php(177): Appwrite\Migration\Version\V22->migrateDocument(Object(Utopia\Database\Document))
#2 /usr/src/code/vendor/utopia-php/database/src/Database/Database.php(6123): Appwrite\Migration\Migration->Appwrite\Migration\{closure}(Object(Utopia\Database\Document))
#3 /usr/src/code/src/Appwrite/Migration/Migration.php(171): Utopia\Database\Database->foreach('functions', Object(Closure))
#4 /usr/src/code/src/Appwrite/Migration/Version/V22.php(38): Appwrite\Migration\Migration->forEachDocument(Object(Closure))
#5 /usr/src/code/src/Appwrite/Platform/Tasks/Migrate.php(78): Appwrite\Migration\Version\V22->execute()
#6 /usr/src/code/vendor/utopia-php/database/src/Database/Database.php(6123): Appwrite\Platform\Tasks\Migrate->Appwrite\Platform\Tasks\{closure}(Object(Utopia\Database\Document))
#7 /usr/src/code/src/Appwrite/Platform/Tasks/Migrate.php(69): Utopia\Database\Database->foreach('projects', Object(Closure))
#8 /usr/src/code/vendor/utopia-php/cli/src/CLI/CLI.php(321): Appwrite\Platform\Tasks\Migrate->action('1.7.0', Object(Utopia\Database\Database), Object(Closure), Object(Utopia\Registry\Registry))
#9 [internal function]: Utopia\CLI\CLI->run()
#10 {main}```
TL;DR
Dashboard and Appwrite are not loading after failed migration from 1.6.2 to 1.7.1 due to a TypeError in the migration process. This error is caused by an argument issue when migration fails. Check the provided trace to investigate the root cause and resolve the migration problem.Same issue.
I can't open the dashboard and appwrite keeps loading
Recommended threads
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...
- Python Function not working
I am getting this issue as well. Doesnt look like there was a solution as you guys were not able to replicate. Below is my code as well as the error. I started...
- Migration Help
I have a small project which I have started using Appwrite cloud and now I want to self host Appwrite and migrate the data. I'm getting this error everytime I ...