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
- Github App "Failed to retrieve access to...
When trying to connect the Github App on 1.8.1 I recieve this error: ```[Error] Method: GET [Error] URL: /v1/vcs/github/callback [Error] Type: Exception [Error]...
- Update from 1.8 to 1.8.1 failing
I have spent the past 2 hours trying to figure this out but I really dont know what to do. 1.8. was a fresh install because the upgrade from 1.7.4 was a total m...
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...