Wireguard Package re-install failing
-
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 209I am new to Netgate and the pfSense community so your patience is appreciated.
-
@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?
-
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/FreeBSCrash 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 209No FreeBSD crash data found.
-
Found this. Line 209 recently had a change:
https://github.com/pfsense/FreeBSD-ports/commit/2ddcec90396cb1055fd6718275e13d49228f9519#diff-62f788513a83ae50f431e174ae169468fd38132df62255239b3d63881aebf798
-
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!
-
Should I open a bug over at redmine?
-
I updated to 24.11. That resolved it. So, it appears the wireguard 0.2.9 package is incompatible with 24.03?