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

    Wireguard Package re-install failing

    Scheduled Pinned Locked Moved WireGuard
    8 Posts 3 Posters 1.3k 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
      Switch_Blade30
      last edited by

      My netgate 4200 is reporting a crash in Wireguard. I attempted to reinstall the package from Package Manager. However I now receive the following crash report.

      [30-Sep-2024 12:55:39 Canada/Eastern] PHP Fatal error: Uncaught Error: Call to undefined function config_read_file() in /usr/local/pkg/wireguard/includes/wg_globals.inc:209
      Stack trace:
      #0 /usr/local/pkg/wireguard/includes/wg_globals.inc(213): wg_globals()
      #1 /usr/local/pkg/wireguard/includes/wg_api.inc(34): require_once('/usr/local/pkg/...')
      #2 /usr/local/pkg/wireguard/includes/wg.inc(30): require_once('/usr/local/pkg/...')
      #3 /etc/inc/pkg-utils.inc(1087): require_once('/usr/local/pkg/...')
      #4 /etc/rc.packages(80): delete_package_xml('WireGuard', 'deinstall')
      #5 {main}
      thrown in /usr/local/pkg/wireguard/includes/wg_globals.inc on line 209
      [30-Sep-2024 12:55:40 Canada/Eastern] PHP Fatal error: Uncaught Error: Call to undefined function config_read_file() in /usr/local/pkg/wireguard/includes/wg_globals.inc:209
      Stack trace:
      #0 /usr/local/pkg/wireguard/includes/wg_globals.inc(213): wg_globals()
      #1 /usr/local/pkg/wireguard/includes/wg_api.inc(34): require_once('/usr/local/pkg/...')
      #2 /usr/local/pkg/wireguard/includes/wg.inc(30): require_once('/usr/local/pkg/...')
      #3 /etc/inc/pkg-utils.inc(887): require_once('/usr/local/pkg/...')
      #4 /etc/rc.packages(76): install_package_xml('WireGuard')
      #5 {main}
      thrown in /usr/local/pkg/wireguard/includes/wg_globals.inc on line 209

      I am new to Netgate and the pfSense community so your patience is appreciated.

      1 Reply Last reply Reply Quote 0
      • B
        BNetworker
        last edited by

        @Switch_Blade30 - I'm on 24.03, I just tried to update the package and had the same error, same line 209. This is the only post I can find on this issue. Did you find a solution?

        1 Reply Last reply Reply Quote 0
        • B
          BNetworker
          last edited by

          This is a Netgate 6100. I'm also unable to load the main page in PFSense, crashes with:

          Crash report begins. Anonymous machine information:

          amd64
          15.0-CURRENT
          FreeBSD 15.0-CURRENT #0 plus-RELENG_24_03-n256311-e71f834dd81: Fri Apr 19 00:28:14 UTC 2024 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/obj/amd64/Y4MAEJ2R/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/sources/FreeBS

          Crash report details:

          PHP Errors:
          [20-Dec-2024 09:02:02 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function config_read_file() in /usr/local/pkg/wireguard/includes/wg_globals.inc:209
          Stack trace:
          #0 /usr/local/pkg/wireguard/includes/wg_globals.inc(213): wg_globals()
          #1 /usr/local/pkg/wireguard/includes/wg_api.inc(34): require_once('/usr/local/pkg/...')
          #2 /usr/local/pkg/wireguard/includes/wg.inc(30): require_once('/usr/local/pkg/...')
          #3 /etc/inc/pkg-utils.inc(711): require_once('/usr/local/pkg/...')
          #4 /etc/rc.start_packages(66): sync_package()
          #5 {main}
          thrown in /usr/local/pkg/wireguard/includes/wg_globals.inc on line 209
          [20-Dec-2024 09:03:18 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function config_read_file() in /usr/local/pkg/wireguard/includes/wg_globals.inc:209
          Stack trace:
          #0 /usr/local/pkg/wireguard/includes/wg_globals.inc(213): wg_globals()
          #1 /usr/local/pkg/wireguard/includes/wg_api.inc(34): require_once('/usr/local/pkg/...')
          #2 /usr/local/pkg/wireguard/includes/wg.inc(30): require_once('/usr/local/pkg/...')
          #3 /usr/local/www/widgets/widgets/wireguard.widget.php(30): require_once('/usr/local/pkg/...')
          #4 /usr/local/www/index.php(539): include('/usr/local/www/...')
          #5 {main}
          thrown in /usr/local/pkg/wireguard/includes/wg_globals.inc on line 209

          No FreeBSD crash data found.

          B 1 Reply Last reply Reply Quote 0
          • B
            BNetworker @BNetworker
            last edited by

            @BNetworker

            Found this. Line 209 recently had a change:

            https://github.com/pfsense/FreeBSD-ports/commit/2ddcec90396cb1055fd6718275e13d49228f9519#diff-62f788513a83ae50f431e174ae169468fd38132df62255239b3d63881aebf798

            1 Reply Last reply Reply Quote 0
            • B
              BNetworker
              last edited by

              Well, not sure how to fix it. Or help diagnose. Please let me know if I can provide more info on this one to help me fix it. Thanks!

              1 Reply Last reply Reply Quote 0
              • B
                BNetworker
                last edited by

                Should I open a bug over at redmine?

                1 Reply Last reply Reply Quote 0
                • B
                  BNetworker
                  last edited by

                  I updated to 24.11. That resolved it. So, it appears the wireguard 0.2.9 package is incompatible with 24.03?

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    marcusone1 @BNetworker
                    last edited by

                    @BNetworker said in Wireguard Package re-install failing:

                    I updated to 24.11. That resolved it. So, it appears the wireguard 0.2.9 package is incompatible with 24.03?

                    This worked for me. would be nice if it warned, or did not let you update the package that isn't supported :(

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