Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Log SPAM - PHPSESSION 1 open sessions left at shutdown script…

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    5 Posts 3 Posters 2.1k Views
    Loading More Posts
    • 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.
    • G
      gsiemon
      last edited by

      I updated to the latest snapshots about 12 hours ago and I'm seeing this in the System Logs every 6 seconds:

      PHPSESSION 1 open sessions left at shutdown script!Array ( [0] => #### phpsession_begin #### simplestacktrace(..) - /etc/inc/phpsessionmanager.inc:38 phpsession_begin(..) - /usr/local/www/csrf/csrf-magic.php:353 csrf_start(..) - /usr/local/www/csrf/csrf-magic.php:188 csrf_check(..) - /usr/local/www/csrf/csrf-magic.php:405 require_once(..) - /usr/local/www/guiconfig.inc:36 require_once(..) - /usr/local/www/status_queues.php:35 )
      

      Does anyone know where its coming from or how to make it stop?

      I've just updated again to the latest snapshots and its still there.

      1 Reply Last reply
      Reply Quote 0
      • P
        pfBasic Banned
        last edited by

        I've also had a csrf-magic crash on my 2.4.0 system although it isn't spamming the logs and I'm not on the latest build.

        1 Reply Last reply
        Reply Quote 0
        • G
          gsiemon
          last edited by

          Maybe related to this commit that was added in between the version I was running and the version I recently updated to?  This change introduced phpsessionmanager.inc and added also introduced the error logging I'm seeing to the Syslog so guessing there is a bug somewhere…

          https://github.com/pfsense/pfsense/commit/633d1cd9cf2b7e42fd1accfd41b5dc9a439e9bf8

          1 Reply Last reply
          Reply Quote 0
          • G
            gsiemon
            last edited by

            I found I had a GUI session open to the Queues Status page from an earlier session on another machine that was trying to update continually in the background every 5 or so seconds.  Once I closed that in the browser the log entries have stopped.  Its unclear to me whether there is a bug here or not now.  I've tried opening new Queue windows in the browser and I'm not seeing any new entries.

            1 Reply Last reply
            Reply Quote 0
            • P
              PiBa
              last edited by

              So likely the login session expired but the timer for refreshing the queue status was still tying to access the stats that were now telling the csrf token was not valid anymore.

              This scenario should be fixed when this gets pulled: https://github.com/pfsense/pfsense/pull/3690

              1 Reply Last reply
              Reply Quote 0

              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
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy