• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

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

Scheduled Pinned Locked Moved 2.4 Development Snapshots
5 Posts 3 Posters 1.6k 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 Apr 6, 2017, 10:58 PM

    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 Apr 6, 2017, 11:00 PM

      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 Apr 7, 2017, 12:30 AM Apr 6, 2017, 11:19 PM

        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 Apr 7, 2017, 2:40 AM

          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 Apr 9, 2017, 7:31 PM

            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
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received