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

Random crash report in notices.inc and wg.inc

Scheduled Pinned Locked Moved General pfSense Questions
30 Posts 3 Posters 865 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.
  • S
    stephenw10 Netgate Administrator
    last edited by May 3, 2025, 11:10 PM

    Nothing should ever result in the config file being inaccessible. It looks like some filesystem or drive issue though because in addition to not being able to open the config file the PHP error is being unable to open the notices file to post an alert for it. 🤔

    W 1 Reply Last reply May 5, 2025, 7:17 PM Reply Quote 0
    • W
      whinis @stephenw10
      last edited by May 5, 2025, 7:17 PM

      Just to be proactive, the SSD its on is at 30% wearout, I moved it to another ssd in the VM and still same issue. I checked the logs on the VM host (proxmox) and the sys logs of pfsense and no obvious errors in either.

      W 1 Reply Last reply May 6, 2025, 2:12 AM Reply Quote 0
      • W
        whinis @whinis
        last edited by May 6, 2025, 2:12 AM

        And here is the error that occasionally occurs that causes the config to be reloaded

        May  5 21:12:00 pfsense php_wg[93764]: /usr/local/pkg/wireguard/includes/wg_service.inc: XML error: no pfsense or pfsense object found!
        May  5 21:12:00 pfsense php_wg[93764]: 
        May  5 21:12:00 pfsense php_wg[93764]: /usr/local/pkg/wireguard/includes/wg_service.inc: pfSense is restoring the configuration /cf/conf/backup/config-1746449192.xml
        May  5 21:12:00 pfsense php_wg[93764]: /usr/local/pkg/wireguard/includes/wg_service.inc: New alert found: pfSense is restoring the configuration /cf/conf/backup/config-1746449192.xml
        May  5 21:12:00 pfsense php_wg[93764]: /usr/local/pkg/wireguard/includes/wg_service.inc: PHP ERROR: Type: 1, File: /usr/local/pkg/wireguard/includes/wg_globals.inc, Line: 197, Message: Uncaught Error: Cannot use a scalar value as an array in /usr/local/pkg/wireguard/includes/wg_globals.inc:197
        May  5 21:12:00 pfsense php_wg[93764]: Stack trace:
        May  5 21:12:00 pfsense php_wg[93764]: #0 /usr/local/pkg/wireguard/includes/wg_globals.inc(238): wg_init_config_arr(-1, Array)
        May  5 21:12:00 pfsense php_wg[93764]: #1 /usr/local/pkg/wireguard/includes/wg.inc(345): wg_globals()
        May  5 21:12:00 pfsense php_wg[93764]: #2 /usr/local/pkg/wireguard/includes/wg_service.inc(360): wg_resolve_endpoints()
        May  5 21:12:00 pfsense php_wg[93764]: #3 /usr/local/pkg/wireguard/includes/wg_service.inc(294): wg_service_daemon()
        May  5 21:12:00 pfsense php_wg[93764]: #4 /usr/local/pkg/wireguard/includes/wg_service.inc(60): wg_service_cli_start(false)
        May  5 21:12:00 pfsense php_wg[93764]: #5 {main}
        May  5 21:12:00 pfsense php_wg[93764]:   thrown
        May  5 21:12:00 pfsense php_wg[93764]: /usr/local/pkg/wireguard/includes/wg_service.inc: New alert found: PHP ERROR: Type: 1, File: /usr/local/pkg/wireguard/includes/wg_globals.inc, Line: 197, Message: Uncaught Error: Cannot use a scalar value as an array in /usr/local/pkg/wireguard/includes/wg_globals.inc:197
        May  5 21:12:00 pfsense php_wg[93764]: Stack trace:
        May  5 21:12:00 pfsense php_wg[93764]: #0 /usr/local/pkg/wireguard/includes/wg_globals.inc(238): wg_init_config_arr(-1, Array)
        May  5 21:12:00 pfsense php_wg[93764]: #1 /usr/local/pkg/wireguard/includes/wg.inc(345): wg_globals()
        May  5 21:12:00 pfsense php_wg[93764]: #2 /usr/local/pkg/wireguard/includes/wg_service.inc(360): wg_resolve_endpoints()
        May  5 21:12:00 pfsense php_wg[93764]: #3 /usr/local/pkg/wireguard/includes/wg_service.inc(294): wg_service_daemon()
        May  5 21:12:00 pfsense php_wg[93764]: #4 /usr/local/pkg/wireguard/includes/wg_service.inc(60): wg_service_cli_start(false)
        May  5 21:12:00 pfsense php_wg[93764]: #5 {main}
        May  5 21:12:00 pfsense php_wg[93764]:   thrown
        
        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by May 6, 2025, 2:58 AM

          Hmm, you've only seen this in 2.7.2?

          W 1 Reply Last reply May 6, 2025, 3:38 AM Reply Quote 0
          • W
            whinis @stephenw10
            last edited by May 6, 2025, 3:38 AM

            As far as I know. This config I think used to be 23. Something and then I rebuilt it once I stopped using commercial for my home.

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by May 6, 2025, 1:34 PM

              Are you able to test 2.8-Beta?

              W 1 Reply Last reply May 6, 2025, 1:52 PM Reply Quote 0
              • W
                whinis @stephenw10
                last edited by May 6, 2025, 1:52 PM

                I can if I have a guide of how to update to it

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by May 6, 2025, 2:13 PM

                  You just have to select it in the repo branch in System > Update.

                  W 1 Reply Last reply May 6, 2025, 2:42 PM Reply Quote 0
                  • W
                    whinis @stephenw10
                    last edited by May 6, 2025, 2:42 PM

                    Cool, ill try this tonight after the work day ends. Joy of working from home.

                    W 1 Reply Last reply May 8, 2025, 6:38 PM Reply Quote 1
                    • W
                      whinis @whinis
                      last edited by May 8, 2025, 6:38 PM

                      So, we are now a few days into the 2.8-Beta version and no more crashes have happened. Hopefully this is somewhat helpful for you but unsure if it is.

                      1 Reply Last reply Reply Quote 1
                      • S
                        stephenw10 Netgate Administrator
                        last edited by May 8, 2025, 7:39 PM

                        Well if anything changed there it's probably something low level that the OS updates could have addressed.

                        1 Reply Last reply Reply Quote 0
                        30 out of 30
                        • First post
                          30/30
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received