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

[Solved] Playing with shaper, PHP ERROR: Type: 1, File: /etc/inc/shaper.inc,

Scheduled Pinned Locked Moved webGUI
7 Posts 2 Posters 1.8k 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.
  • A
    apara
    last edited by Jan 3, 2018, 8:36 PM Jan 1, 2018, 1:08 AM

    So, I was playing with traffic shaper and for one of the networks, (ExpressVPN, I think), I entered 50%.  Suddenly, I get an error that looks like this:

    PHP ERROR: Type: 1, File: /etc/inc/shaper.inc, Line: 230, Message: Call to undefined method altq_root_queue::GetParent() @ 2017-12-31 16:56:56

    So, yea, perhaps this is not a proper policy and it does not have this method or I never created a parent, but now, every time I go into traffic shaper, I get that error.  How do I recover from this?  I cannot get back into the Traffic Shaper part of the UI.

    2.4.2-RELEASE-p1 (amd64)
    built on Tue Dec 12 13:45:26 CST 2017
    FreeBSD 11.1-RELEASE-p6

    I can ssh into the system, but don't quite know what file to modify and where this information is stored.

    Thanks for any help.

    1 Reply Last reply Reply Quote 0
    • A
      apara
      last edited by Jan 1, 2018, 1:11 AM

      Ok, looks like there is a great configuration version management built into this thing, so I am just going to roll back to the previous configuration.

      1 Reply Last reply Reply Quote 0
      • A
        apara
        last edited by Jan 1, 2018, 6:53 AM Jan 1, 2018, 1:50 AM

        I spoke too soon.  I rolled back to the previous configuration.  However even though it was successful, I was still not able to get into the traffic shaper menu.  So, I thought (wrongly) of rebooting the box, perhaps it did not re-read the configuration.  The machine did not come up after the reboot.

        Bummer.  Where do I go from here?  Do I need to do a complete re-install?

        1 Reply Last reply Reply Quote 0
        • G
          Gertjan
          last edited by Jan 1, 2018, 8:01 AM Jan 1, 2018, 7:57 AM

          @apara:

          I spoke too soon.  I rolled back to the previous configuration.  However even though it was successful, I was still not able to get into the traffic shaper menu.  So, I thought (wrongly) of rebooting the box, perhaps it did not re-read the configuration.  The machine did not come up after the reboot.

          What showed up on the console during booting and startup ?

          @apara:

          I can ssh into the system, but don't quite know what file to modify and where this information is stored.

          You saved the config, right ?
          Use a decent text editor and have look at the xml file. You'll find all kind of sections. I advice you to completely remove the section related to the shaper part, and reload it.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • A
            apara
            last edited by Jan 1, 2018, 4:25 PM

            Well, at the moment, I am not able to even login into the UI and the firewall does not seem to be coming up so the whole machine is not accessible on the network.  I am trying to find a VGA cable to connect it to the monitor so I can see what's going on on the console.

            I did save the copy of the configuration right after I updated to the latest version.  Assuming I am able to get onto the box, is there a way to manually replace the configuration?

            1 Reply Last reply Reply Quote 0
            • A
              apara
              last edited by Jan 1, 2018, 11:18 PM

              Ok, so, during the boot sequence I see the same error message with the shaper.  I cannot reach the machine via network, but I do see the shell menu.

              Should I reset to default configuration and they try to upload my configuration again?  Is it just a matter of uploading a new configuration?

              1 Reply Last reply Reply Quote 0
              • A
                apara
                last edited by Jan 1, 2018, 11:59 PM

                Ok, so using the console I reset back to the factory configuration and was able to access the Web Configurator again.  Then I uploaded my previous configuration and things are back up and running.

                1 Reply Last reply Reply Quote 0
                1 out of 7
                • First post
                  1/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received