Back

Empty Activity on Databases and Accounts

  • 0
  • Self Hosted
  • Auth
  • Databases
Husnain_bashir
28 Mar, 2024, 14:25

Why my activity is empty both for users(accounts) and databases. My app is in production and has many users using databases and logging in and logging out. I am using appwrite for a year now. My current appwrite version is 1.5.3.

TL;DR
Developers are seeing empty activity logs in the databases and accounts of their production app using Appwrite version 1.5.3. They are advised to run all necessary migrations when upgrading and check if the `_APP_USAGE_STATS=enabled` option is set in the `.env` file. To investigate the issue further, they are recommended to share the results of `docker logs appwrite-worker-usage` and `docker ps -a`. Additionally, they should ensure that the usage tracking feature is not turned off in the `.env` file.
Binyamin
28 Mar, 2024, 14:30

Maybe your usage is turned off in the .env file?

Husnain_bashir
28 Mar, 2024, 14:39

Thnaks a lot for your response. Which .env option is for that because its not in my .env file.

Binyamin
28 Mar, 2024, 14:40
TypeScript
_APP_USAGE_STATS=enabled
Husnain_bashir
28 Mar, 2024, 14:44

_APP_USAGE_STATS=enabled is set

Binyamin
28 Mar, 2024, 14:47
  1. Did you run all migration needed between versions when upgrading? (in case you didn't and you want to, make sure to backup everything before)
  2. Can you share the results of
TypeScript
docker logs appwrite-worker-usage
docker ps -a
Husnain_bashir
28 Mar, 2024, 14:50

Its a very large output

Husnain_bashir
28 Mar, 2024, 14:51

[Worker] Worker 0 is ready! Worker usage started [Job] Received Job (65fe93c228d519.46789070). [2024-03-23 08:33:06.184] Aggregated 4 keys [Job] (65fe93c228d519.46789070) successfully run. [Job] Received Job (65fe93c2919426.07450446). [Job] (65fe93c2919426.07450446) successfully run. [Job] Received Job (65fe93c49e4bf0.05704713). [Job] (65fe93c49e4bf0.05704713) successfully run. [Job] Received Job (65fe93d6d75f60.76575896). [Job] (65fe93d6d75f60.76575896) successfully run. [Job] Received Job (65fe93eb6f3823.90293632). [2024-03-23 08:33:47.457] Aggregated 6 keys [Job] (65fe93eb6f3823.90293632) successfully run. [Job] Received Job (65fe93ec377dc6.07191648). [Job] (65fe93ec377dc6.07191648) successfully run. [Job] Received Job (65fe93f1ea87e4.35143094). [Job] (65fe93f1ea87e4.35143094) successfully run. [Job] Received Job (65fe93f1ec4776.38301947). [Job] (65fe93f1ec4776.38301947) successfully run. [Job] Received Job (65fe93f1edd474.95180414). [Job] (65fe93f1edd474.95180414) successfully run. [Job] Received Job (65fe93f3b590c5.60746239). [Job] (65fe93f3b590c5.60746239) successfully run. [Job] Received Job (65fe93f8e57dc5.85257437). [Job] (65fe93f8e57dc5.85257437) successfully run. [Job] Received Job (65fe94084123c8.75960430). [Job] (65fe94084123c8.75960430) successfully run. [Job] Received Job (65fe94103e9302.70342786). [Job] (65fe94103e9302.70342786) successfully run. [Job] Received Job (65fe9410ab28b0.85548882). [Job] (65fe9410ab28b0.85548882) successfully run. [Job] Received Job (65fe9410d44445.77606213). [Job] (65fe9410d44445.77606213) successfully run. [Job] Received Job (65fe9410d57998.52637139). [Job] (65fe9410d57998.52637139) successfully run. [Job] Received Job (65fe94125853e4.73407627). and many similar lines till the [Job] (66058319639467.73429158) successfully run. [Job] Received Job (66058319e45459.11741164). [Job] (66058319e45459.11741164) successfully run. ubuntu@Appwrite:~$ docker ps -a

Binyamin
28 Mar, 2024, 14:59

Seems like the worker works okay

Binyamin
28 Mar, 2024, 15:00

And about the other command?

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