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
- Files access permissions
Am I right in understanding that file access permissions have been disabled (or broken again), and that shared access can now only be organized via tokens? Or i...
- functions custom domain issues in self h...
I’m running self-hosted Appwrite (Docker) behind Traefik with Cloudflare proxy (Full/Strict). Main domain works: https://app.printa4.in Function subdomains fa...
- restore backup on another server with an...
I managed to restore DB+Volumes from a server to another one with another domain but when I try to click my project on the console, I get error "404 - Project w...