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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Log view doesn't respond on session timeout

Log view doesn't respond on session timeout

Scheduled Pinned Locked Moved Solved Support
logviewerlogs
5 Posts 2 Posters 706 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.
    • W Offline
      W Offline
      warg
      wrote on last edited by girish
      #1

      Hello,

      I suspect that I can still navigate through the Cloudron admin ui when the session is dead but viewing logs doesn't work: It just opens the log viewer without any lines. After relogging it does work. I think the issue is that a session timeout/expiration doesn't force an logout so the log viewer's behavior should be correct but main UI isn't.

      Of course this could have a different reason but then I'm not sure what's wrong.

      Best Regards,

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

        The dashboard and logviewer use the same accessToken in the browser localStorage, there are no sessions as such. Possibly the access token got invalidated while the log viewer is open, but looking at the code it should redirect for login again. Did a logviewer reload via the browser work?

        1 Reply Last reply
        0
        • W Offline
          W Offline
          warg
          wrote on last edited by warg
          #3

          There was no redirect on any page I had open. The situation was: My computer was in stand-by/power saving mode and I came back a day later, booted it again and saw that I forgot to close the Cloudron tabs. Then I noticed that I'm still logged on and that I could check something I had in mind. After some time I noticed the Log viewer didn't show any logs, e. g. for the LAMP app even when I did requests to the LAMP app and there should have been health check requests ongoing. So basically the log view was just blank with zero lines of information. After I logged out and logged in again, I was able to see the expected log entries.

          So for some reason the refreshing/reading information process was broken. No redirect or log out was triggered. Visually there was no clue what could have caused this, e. g. no information about an invalidated access token. Reloading the admin UI or log viewer didn't change anything.

          This happened on Windows 11 with latest Firefox.

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

            ah I see, I guess the websocket died and the code doesn't reconnect in that case then. Have to see how I can reproduce and fix this then.

            1 Reply Last reply
            2
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #5

              This is fixed for the next version.

              1 Reply Last reply
              2
              • nebulonN nebulon marked this topic as a question on
              • nebulonN nebulon has marked this topic as solved on
              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