LAGG Interface error
-
When creating or removing LAGG interfaces I receive the following errors.
PHP errors
PHP ERROR: Type: 1, File: /usr/local/www/interfaces_lagg_edit.php, Line: 222, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/interfaces_lagg_edit.php:222
Stack trace:
#0 {main}
thrown @ 2022-10-06 15:16:08
PHP ERROR: Type: 1, File: /usr/local/www/interfaces_lagg.php, Line: 46, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/interfaces_lagg.php:46
Stack trace:
#0 /usr/local/www/interfaces_lagg.php(62): lagg_inuse('0')
#1 {main}
thrown @ 2022-10-06 15:16:17
PHP ERROR: Type: 1, File: /usr/local/www/interfaces_lagg.php, Line: 46, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/interfaces_lagg.php:46
Stack trace:
#0 /usr/local/www/interfaces_lagg.php(62): lagg_inuse('0')
#1 {main}
thrown @ 2022-10-06 15:16:44and crash report
Crash report begins. Anonymous machine information:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #0 devel-main-n255799-28f6f5e488e: Thu Oct 6 06:28:39 UTC 2022 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-master-main/obj/amd64/NhQdlQvV/var/jenkins/workspace/pfSense-CE-snapshots-master-main/sources/FreeBSD-src-devCrash report details:
PHP Errors:
[06-Oct-2022 15:16:08 America/Chicago] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/interfaces_lagg_edit.php:222
Stack trace:
#0 {main}
thrown in /usr/local/www/interfaces_lagg_edit.php on line 222
[06-Oct-2022 15:16:17 America/Chicago] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/interfaces_lagg.php:46
Stack trace:
#0 /usr/local/www/interfaces_lagg.php(62): lagg_inuse('0')
#1 {main}
thrown in /usr/local/www/interfaces_lagg.php on line 46
[06-Oct-2022 15:16:44 America/Chicago] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/interfaces_lagg.php:46
Stack trace:
#0 /usr/local/www/interfaces_lagg.php(62): lagg_inuse('0')
#1 {main}
thrown in /usr/local/www/interfaces_lagg.php on line 46No FreeBSD crash data found.
-
Do you get that when you open the page or when you try to save the new entry or make some other change?
Can you share the contents of the
<laggs>...</laggs>section of yourconfig.xmlfile? -
@jimp Opening the LAGG edit page works but when saving it returns the php error above but seems to create the LAGG. I also tried to edit it and that also returns the php error but changes the config. When I try to delete a LAGG interface it returns the php error but the LAGG interface is not deleted.
Here is the lagg config
<laggs> <lagg> <members>ixl4,ixl6</members> <descr></descr> <laggif>lagg0</laggif> <proto>lacp</proto> <lacptimeout>slow</lacptimeout> <lagghash>l2,l3,l4</lagghash> </lagg> <lagg> <members>ixl3,ixl5</members> <descr></descr> <laggif>lagg1</laggif> <proto>lacp</proto> <lacptimeout>slow</lacptimeout> <lagghash>l2,l3,l4</lagghash> </lagg> </laggs> -
OK, it wasn't the
<lagg>section of the config that was the problem, but the<vlans>list being empty.I put in a fix: https://github.com/pfsense/pfsense/commit/960388e0dbd4ab2c4ac96c8709dcdcb27460b1bc
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better ๐
Register LoginPrivacy Policy · Cookie Policy