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
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...
- Error getting preview of file
Rest Response: ``` { "message": "Server Error", "code": 500, "type": "general_unknown", "version": "1.8.1" } ``` Appwrite Logs ``` appwrite ...
- Locked out due to email typo
Hey everyone, I made a really unfortunate mistake and I'm hoping someone here might have some advice. When I originally signed up for Appwrite, I accidentally ...