Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    LAGG Interface error

    Scheduled Pinned Locked Moved CE 2.7.0 Development Snapshots (Retired)
    4 Posts 2 Posters 843 Views 2 Watching
    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

      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
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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
        Reply Quote 0
        • C
          cursixx @jimp
          last edited by

          @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
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            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

            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 Login
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy