Traffic Shaping in 23.01 - Bug?
-
Anecdotally, I noticed that the very vanilla (wizard-created) Traffic Shaper ruleset that I have relied on for years acts very differently in 23.01. It seems to be cutting my speeds in half (without the traffic shaper, I get ~320mbps down; with the traffic shaper, I now get approximately 160-200mbps down).
The upper bandwidth limit in the (now-disabled shaper) is set at about 320mbps. This all worked dandily before 23.01. I only have special priorities set for FaceTime and IPSEC, neither of which were in use during any of these tests.
Any chance there is a bug with the traffic shaper as of the new release?
-
@drewsaur (Writing to myself) - Well, yes, there is a bug.
When I go into re-enable my simple rules, I get this:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc:773 Stack trace: #0 /usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc(694): apply_all_chosen_items() #1 /usr/local/www/wizard.php(116) : eval()'d code(1): step8_stepsubmitphpaction() #2 /usr/local/www/wizard.php(116): eval() #3 {main} thrown in /usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc on line 773 PHP ERROR: Type: 1, File: /usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc, Line: 773, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc:773 Stack trace: #0 /usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc(694): apply_all_chosen_items() #1 /usr/local/www/wizard.php(116) : eval()'d code(1): step8_stepsubmitphpaction() #2 /usr/local/www/wizard.php(116): eval() #3 {main} thrown
And the following PHP_errors.log:
[17-Feb-2023 16:41:55 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc:773
Stack trace:
#0 /usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc(694): apply_all_chosen_items()
#1 /usr/local/www/wizard.php(116) : eval()'d code(1): step8_stepsubmitphpaction()
#2 /usr/local/www/wizard.php(116): eval()
#3 {main}
thrown in /usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc on line 773 -
Can anyone else confirm or refute this apparent bug?
-
@drewsaur Well it seems to be a known issue: https://redmine.pfsense.org/issues/13915 - I hope we don't have to wait till 23.05 to get this fixed...
-
@drewsaur I upgraded last night and speed tests are as expected for me. Netgate 2100 using PRIQ. Didn’t try the wizard!
-
@steveits said in Traffic Shaping in 23.01 - Bug?:
@drewsaur I upgraded last night and speed tests are as expected for me. Netgate 2100 using PRIQ. Didn’t try the wizard!
I am using the vanilla, default, HFSC. I would try to mess around with other types, but I can't rerun the Wizard anymore. I wish that someone could help me figure out how to work around this bug, or that it would get more attention...
-
@drewsaur Jim, on the Redmine, is a Netgate developer. They are probably prioritizing the can’t-boot-after-upgrade issue on the 1100/2100 at the moment. 23.01 was a PHP major version upgrade so I was personally expecting a bunch of little corner cases to show up despite the extra time on this “22.09” release.
All that said if you change the bandwidth on the shaper, does it affect your results? (Without running the wizard) I have not use HFSC but with others I can change it directly on the WAN, qVOIP, etc links/pages.
-
@steveits Thanks. I bet you are right. I don't have a shaper left anymore, so I can't change it. I removed the shaper altogether before re-running the wizard. I have backups, but I don't really feel like restoring from one at this point, because I don't see a reason to mess around with settings that make innate sense the way they were, and also I am willing to wait this out so long as I know it's being addressed.
-
@drewsaur I meant to add, if it's easily fixable they will probably add it as a patch in the System Patches package so it's installable before 22.05.
-
@steveits said in Traffic Shaping in 23.01 - Bug?:
@drewsaur I meant to add, if it's easily fixable they will probably add it as a patch in the System Patches package so it's installable before 22.05.
That would be wonderful.