Back

User last activity is always "never"

  • 1
  • Self Hosted
  • Accounts
WhiteWalker72
13 Nov, 2023, 14:06

When I go to Auth -> Users the last activity for all users is shown as "never". Some users did create sessions, jwt tokens and documents but last activity is not updated.

When is last activity supposed to update? Also does the "users.*.update" event trigger when last activity is updated? I'm using a self hosted Appwrite instance with version 1.4.11 and there are not errors inside the "worker-audits" container.

TL;DR
Users are experiencing issues where the last activity of all users is shown as "never" in the Appwrite console, even though they have performed actions such as creating sessions, JWT tokens, and documents. It seems to be related to a migration issue from older versions. One user confirmed that the last activity field is working fine on a clean install of version 1.4.11. There is an open issue on Github related to this problem. The solution is to create a new issue on Github to address this specific Last Activity issue.
Mosh Ontong
13 Nov, 2023, 14:21

I also encounter this issue and I already post this in repo

https://github.com/appwrite/appwrite/issues/7108

Mosh Ontong
13 Nov, 2023, 14:21

and sir matej will investigate this issue

WhiteWalker72
13 Nov, 2023, 14:55

Hi, I don't quite see how your function deployment issues relates to my user last activity issue

Drake
13 Nov, 2023, 15:34

Would you please create an issue?

WhiteWalker72
13 Nov, 2023, 15:41

Hm I looked but there seems to be an issue open: https://github.com/appwrite/appwrite/issues/7109 Which is opened by you? πŸ€”

Drake
13 Nov, 2023, 16:11

This could be related...but it's different. So an issue specifically for the Last Activity would be good

Drake
13 Nov, 2023, 16:12

This is for the activities tab when viewing a user in the console

Drake
14 Nov, 2023, 05:38

Hmm I just checked my cloud project and last activity is being set as expected 🧐

WhiteWalker72
15 Nov, 2023, 15:59

I'm not sure what's causing this. I went back to v1.4.9 but that didn't' fix the issue. I think it's directly related to your issue because the activity within the Activity tab for every user is also empty

zlmr
15 Nov, 2023, 16:27

This also happens for me, I noticed it first time on v1.3.x so I doubt it is v1.4 issue. Last activity field works for me on clean install of v1.4.11, so maybe it is migration issue from older versions. Activity tab is empty for both clean install and the migrated instance.

WhiteWalker72
15 Nov, 2023, 16:47

I did migrate from v1.3.x to v1.4.x at some point so it could definitely be related to that

Drake
15 Nov, 2023, 16:53

I found the problem and created an issue: https://github.com/appwrite/appwrite/issues/7147

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