Invalid document structure: Unknown attribute: "pingCount" after running appwrite migrate
- 0
- 1
- Self Hosted
I have a production server running Appwrite 1.7.4. I'm testing Appwrite 1.8.0 on a separate test server.
To transfer data from my 1.7.4 installation to 1.8, I followed this guide: https://appwrite.io/blog/post/how-to-back-up-your-appwrite-data
Specifically, I copied over the functions/uploads/builds volumes, and restored the database using the commands in the article. I am using the same .env files as well.
Everything works fine on the 1.8 installation until I run "docker compose exec appwrite migrate". After running the migrate command, I get this error when calling the ping endpoint:
[Error] Method: GET
[Error] URL: /v1/ping
[Error] Type: Utopia\Database\Exception\Structure
[Error] Message: Invalid document structure: Unknown attribute: "pingCount"
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 4896
And this error when updating the "services" within project settings:
[Error] Method: PATCH
[Error] URL: /v1/projects/:projectId/service
[Error] Type: Utopia\Database\Exception\Structure
[Error] Message: Invalid document structure: Unknown attribute: "pingCount"
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 4896
Before running appwrite migrate, both work fine.
See the below console output of the migration command. Before running, the ping endpoint works as expected. After migration, the ping endpoint returns 500:
More info:
- Installing 1.7.4, restoring database, and then upgrading to 1.8.0 first doesn't resolve the issue
- The issue is not the migration command exactly. It's flushing redis cache.
The error can be replicated by restoring the database and then running
docker exec -it appwrite-redis redis-cli FLUSHALL
I opened an issue on Github. There are a number of discussions on this error without a satisfying resolution: https://github.com/appwrite/appwrite/issues/10810
Recommended threads
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Migration from Cloud to Self-Hosted not ...
Hello Appwrite Community, I've got the problem, that when I try to migrate my Appwrite Project from the cloud to my self-hosted Appwrite, that an API Key is mi...
- I can't migrate my project from Appwrite...
I'm having an issue migrating my Appwrite project to a self-hosted instance. The problem is that I've exceeded my read rate limit (or database read limit), so I...