Hi,
I Restored my appwrite database and im facing this error.. im not able to do anything
[Error] Timestamp: 2025-11-09T11:59:47+00:00
[Error] Method: POST
[Error] URL: /v1/functions/:functionId/executions
[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: 4271
please help me fix the issue... im on appwrite 1.7.4
Hey <@765201455636021319> ! as you said that you've restored your appwrite db, you probably have lost any changes you've made to it before restoring the same (like addition of the attribute pingCount). You should re-create this attribute called pingCount if it's important. Because as per your error, that attribute is being referenced somewhere in your code.
<@1329045306997866509> pingCount already exists
MariaDB [appwrite]> select pingCount from _console_projects
-> ;
+-----------+
| pingCount |
+-----------+
| 0 |
| 0 |
| 0 |
| 0 |
+-----------+
4 rows in set (0.008 sec)
Ok. Then try deleting it and creating it again. Maybe it's not getting synced properly
oh that worked..
thanks
Mention not! And let me know if you need any further help..
i was able to create session...
but now not able to access storage
[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: 4271
[Error] Timestamp: 2025-11-09T12:47:17+00:00
[Error] Method: GET
[Error] URL: /v1/storage/buckets/:bucketId/files/:fileId/view
[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: 4271
where all do i need to recreate?
Please check in your appwrite console, whether that pingCount exists there or not
where do i check for?
On appwrite cloud
im self hosted
Try running:
SELECT * FROM _1_documents
WHERE $collection = 'attributes'
AND key = 'pingCount';
i have total 4 projects in selfhosted... 2 of them i can access now properly even storage
2 of them i cant
[Error] Method: GET
[Error] URL: /v1/storage/buckets
[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: 4271
[Error] Timestamp: 2025-11-09T12:53:49+00:00
Table 'appwrite._1_documents' doesn't exist
Ok. Let's debug this together. Try running: SHOW TABLES;
total 992 rows in set
Ok. Run these one by one: 1) SELECT * FROM _console_attributes WHERE key = 'pingCount'; 2) DESCRIBE _console_projects;
Share the outputs
Good👍🏻
Hey, sorry to bump. Can you provide more details on how you fixed this issue for good? Thx
It's just this.. comment out that line .. restart appwrite container then load all your projects in web console... Then reset back the edited file.. the restart appwrite container
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...