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
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...