Cleaning up old sessions
-
I found out that my Nextcloud instance has hundreds of active sessions (visible in Settings>Personal>Security>Devices and Sessions). I'm suspecting that most of them are an Android app re-logging in every time it syncs (but which? I am using a few). Also I assumed that old sessions would be cleaned up after a set time.
Google search returned this: https://github.com/nextcloud/server/issues/6203
Which I have not been able to make use of. My background jobs are set on Cron, and I just ran them manually from Cloudron Terminal, but other than that I don't understand where/what/how these jobs are, nor if that is the way to solve this problem. -
N nebulon marked this topic as a question on
-
I can confirm that I also have quite a few (10s) of "devices" listed there, in my case for each davx5 version, which syncs contacts from my phone. Some are years old. I have not found a settings variable though in Nextcloud which would enable automatic purging of those or set some expiration time. So I am not sure if this is a bug in how client apps register themselves or if Nextcloud even should purge those automatically.
-
I can confirm that I also have quite a few (10s) of "devices" listed there, in my case for each davx5 version, which syncs contacts from my phone. Some are years old. I have not found a settings variable though in Nextcloud which would enable automatic purging of those or set some expiration time. So I am not sure if this is a bug in how client apps register themselves or if Nextcloud even should purge those automatically.
-
I do agree that this is not a great situation, however it seems like an upstream bug and has to be solved there not on the Cloudron side, as far as I can tell.
@nebulon Yes, it seems like it is: https://help.nextcloud.com/t/how-to-remove-device-session-on-security-personal-menu/107430
https://help.nextcloud.com/t/disconnect-all-sessions-revoking-access-for-all-apps-of-a-user/37955/8
Waiting for an official fix, two workarounds mentioned in these topics are editing database or running a bash script. Nothing that I'm able to do, but yeah, this does need to be solved upstream.
-
A abargel has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
