
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
- Reset/Recalculate Dashboard Values
Is there a way to reset/recalc this value on the dash? I had issues importing, and after my second import this was how it ended, I've since added some documents...
- Sites_: 500 Server Error when connecting...
I am trying to set up Sites on my self-hosted Appwrite instance. I have a GitHub Organization with a repo I want access to. I had previously installed the appwr...
- Migration failed after upgrading from 1....
Upgraded from 1.6.2 to 1.7.1 then run migration command No errors in browser console But stuck at appwrite loader and never gets in. Not sure of the type of ...
