Back

Subscribers count not updating

  • 0
  • Self Hosted
  • Messaging
darShan
12 Jun, 2024, 06:25

Referencing this issue here - https://github.com/appwrite/appwrite/issues/7892

Strange thing is as Steven mentioned here - https://discord.com/channels/564160730845151244/636852860709240842/1250259972776919134, it could be a permission issue but this doesn't show any error.

I also noted the return value of this block of code that handles the subscriber count -

TypeScript
Authorization::skip(fn () => $dbForProject->increaseDocumentAttribute(
    'topics',
    $topicId,
    $totalAttribute,
));

The return value is 1 which means the operation succeeded.

Alternatively, I manually updated the mariadb row (as linked in the github issue) and strangely, after manually updating the row, the changes from console are properly reflected. But a new topic again has same issue.

Any ideas <@462046107556511744>?

TL;DR
Developers are facing an issue with the subscriber count not updating in the Appwrite server. After some investigation, it seems to be related to a possible database issue. One suggestion is to check if there are any problems with the database and try repairing it. There was a discussion about this on Discord and on GitHub. The return value of the code handling the subscriber count is correct, indicating successful operation. One developer manually updated the database row, which temporarily fixed the issue for that entry. However, new topics still face the same problem. Further collaboration with other developers is ongoing to find a permanent solution.
darShan
12 Jun, 2024, 06:45

The server is the same as restored from here - https://discord.com/channels/564160730845151244/1228630098241126401/1228630098241126401

Could it be that the DB has some issues? Is there a way to repair the DB?

darShan
12 Jun, 2024, 07:14

Update: locally hosted version works, and a different appwrite server running 1.5.4 seems to work as well. I guess this is a db issue.

darShan
12 Jun, 2024, 11:58

Update: I discussed this with Matej and seem to have found a possible issue.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more