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

LAGG Interface error

CE 2.7.0 Development Snapshots (Retired)
2
4
492
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.
  • C
    cursixx
    last edited by Oct 6, 2022, 8:22 PM

    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:44

    and 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-dev

    Crash 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 46

    No FreeBSD crash data found.

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Oct 7, 2022, 12:14 PM

      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 your config.xml file?

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      C 1 Reply Last reply Oct 7, 2022, 2:08 PM Reply Quote 0
      • C
        cursixx @jimp
        last edited by Oct 7, 2022, 2:08 PM

        @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>
        
        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Oct 7, 2022, 6:19 PM

          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

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

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