Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Cleaning up old sessions

Cleaning up old sessions

Scheduled Pinned Locked Moved Solved Nextcloud
5 Posts 2 Posters 2.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abargel
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • nebulonN nebulon marked this topic as a question on
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      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.

      A 1 Reply Last reply
      1
      • nebulonN nebulon

        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.

        A Offline
        A Offline
        abargel
        wrote on last edited by
        #3

        @nebulon Ok, thanks. You don't seem too worried about it, so I guess I shouldn't either? 😉

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          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.

          A 1 Reply Last reply
          1
          • nebulonN nebulon

            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.

            A Offline
            A Offline
            abargel
            wrote on last edited by
            #5

            @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.

            1 Reply Last reply
            0
            • 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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search