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

    Crash report after upgrade to 23.05

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 2 Posters 1.2k 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.
    • AMG A35A
      AMG A35
      last edited by

      About 90 minutes after upgrading to 23.05 GUI showed there had been a crash.
      PHP error log

      [30-May-2023 13:04:35 Europe/London] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /etc/inc/config.lib.inc:172
      Stack trace:
      #0 /etc/inc/config.lib.inc(172): fwrite(false, 'a:43:{s:7:"vers...')
      #1 /etc/inc/config.lib.inc(147): generate_config_cache(Array)
      #2 /etc/inc/config.inc(141): parse_config()
      #3 /etc/inc/gwlb.inc(25): require_once('/etc/inc/config...')
      #4 /etc/inc/functions.inc(35): require_once('/etc/inc/gwlb.i...')
      #5 /etc/inc/notices.inc(26): require_once('/etc/inc/functi...')
      #6 /usr/local/pkg/nut/nut_email.php(24): require_once('/etc/inc/notice...')
      #7 {main}
      thrown in /etc/inc/config.lib.inc on line 172
      [30-May-2023 13:04:35 Europe/London] PHP Fatal error: Uncaught ValueError: Path cannot be empty in /etc/inc/notices.inc:101
      Stack trace:
      #0 /etc/inc/notices.inc(101): fopen('', 'w')
      #1 /etc/inc/config.lib.inc(1162): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
      #2 [internal function]: pfSense_clear_globals()
      #3 {main}
      thrown in /etc/inc/notices.inc on line 101

      I believe I may just have restarted NUT which had lost contact with UPS, from General system log:

      May 30 13:04:35 php-cgi 37927 nut_email.php: PHP ERROR: Type: 1, File: /etc/inc/config.lib.inc, Line: 172, Message: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /etc/inc/config.lib.inc:172

      Can I provide any additional information?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Does the error return if you just remove the warning? After reboot perhaps?

        AMG A35A 1 Reply Last reply Reply Quote 0
        • AMG A35A
          AMG A35 @stephenw10
          last edited by

          @stephenw10

          After downloading PHP_errors.log I removed the warning and have not had any further problems.

          Yesterday without problems I:

          • Restarted nut twice

          • Downloaded and configured udpbroadcastrelay

          • Removed Avahi

          Today without problems I:

          • Rebooted

          • Restarted nut

          Is there anything else I can try or provide?

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            If it does not return it was likely something that happened during the upgrade. Though you said it only alerted 90mins after that which is unexpected.
            It might have been a package install that became stuck and was hence still on the old php code. Rebooting allowed it to complete.
            If you see it again we can certainly dig into it.

            Steve

            AMG A35A 1 Reply Last reply Reply Quote 0
            • AMG A35A
              AMG A35 @stephenw10
              last edited by

              @stephenw10 Today I upgraded snort to latest version immediately got same crash. I have cleared the warning and the system is running ok.
              /////////
              [29-Jun-2023 09:09:22 Europe/London] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /etc/inc/config.lib.inc:172
              Stack trace:
              #0 /etc/inc/config.lib.inc(172): fwrite(false, 'a:44:{s:7:"vers...')
              #1 /etc/inc/config.lib.inc(147): generate_config_cache(Array)
              #2 /etc/inc/config.inc(141): parse_config()
              #3 /etc/inc/gwlb.inc(25): require_once('/etc/inc/config...')
              #4 /etc/inc/functions.inc(35): require_once('/etc/inc/gwlb.i...')
              #5 /etc/inc/notices.inc(26): require_once('/etc/inc/functi...')
              #6 /usr/local/pkg/nut/nut_email.php(24): require_once('/etc/inc/notice...')
              #7 {main}
              thrown in /etc/inc/config.lib.inc on line 172
              [29-Jun-2023 09:09:22 Europe/London] PHP Fatal error: Uncaught ValueError: Path cannot be empty in /etc/inc/notices.inc:101
              Stack trace:
              #0 /etc/inc/notices.inc(101): fopen('', 'w')
              #1 /etc/inc/config.lib.inc(1162): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
              #2 [internal function]: pfSense_clear_globals()
              #3 {main}
              thrown in /etc/inc/notices.inc on line 101

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                It's this: https://redmine.pfsense.org/issues/14061

                But that should be fixed in 23.05.

                Are you able to replicate this, by reinstalling Snort for example?

                Steve

                AMG A35A 1 Reply Last reply Reply Quote 0
                • AMG A35A
                  AMG A35 @stephenw10
                  last edited by

                  @stephenw10 Just did snort reinstall via package manager without problem. Anything else I can try?

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    I added your data point here: https://redmine.pfsense.org/issues/14432

                    Since it's in NUT you might try reinstalling that.

                    This doesn't appear to be an error affecting functionality beyond the notice itself.

                    AMG A35A 1 Reply Last reply Reply Quote 0
                    • AMG A35A
                      AMG A35 @stephenw10
                      last edited by

                      @stephenw10 Just did nut reinstall via package manager without problem. Anything else I can try?

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Not sure at this point. We'll update that ticket as we know more.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.