The officially official Devuan Forum!

You are not logged in.

#1 2024-06-08 21:10:56

UnixRocks
Member
Registered: 2016-12-07
Posts: 25  

Shaping script wondershaper seems FUBAR

I downloaded wondershaper from the Devuan repos to see if I could shape the bandwidth on my Devuan Linux box since our ISP connection is rather anemic. When I ran it I got some unexpected output:

[ROOT@devuan-nuc ~] # wondershaper eth0 20000 5000
Error: Specified qdisc kind is unknown.
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
Error: Failed to find specified qdisc.
Error: Failed to find specified qdisc.
Error: Failed to find specified qdisc.
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
[ROOT@devuan-nuc ~] # grep -i pretty /etc/os-release 
PRETTY_NAME="Devuan GNU/Linux 4 (chimaera)"

I attempted to contact the author using the e-mail provided in the /usr/share/doc/wondershaper/README.Debian.gz file. Sadly that bounced as

550 Unrouteable address

Is anyone here able to assist with debugging this sh script and making it work? I am not familiar enough with tc to do it myself yet.


“Do not meddle in the affairs of dragons for you are crunchy and taste good with ketchup.”
-- Suzanne McMinn

Offline

#2 2024-06-08 23:39:17

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,189  

Re: Shaping script wondershaper seems FUBAR

Did you install it? It does depend on iproute2 (or iproute)

And then if this is ceres rather than daedalus anything (else) is possible smile

Offline

#3 2024-06-09 04:12:56

UnixRocks
Member
Registered: 2016-12-07
Posts: 25  

Re: Shaping script wondershaper seems FUBAR

Yes, wondershaper was installed with apt install at the CLI.  Also, iproute2 is installed.

[ROOT@devuan-nuc ~] # apt search iproute
Sorting... Done
Full Text Search... Done
...
iproute2/oldstable,now 5.10.0-4 amd64 [installed]
  networking and traffic control tools
...

I am running:

[ROOT@devuan-nuc ~] # grep -i pretty /etc/os-release 
PRETTY_NAME="Devuan GNU/Linux 4 (chimaera)"

“Do not meddle in the affairs of dragons for you are crunchy and taste good with ketchup.”
-- Suzanne McMinn

Offline

#4 2024-06-09 04:51:04

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,189  

Re: Shaping script wondershaper seems FUBAR

ok
peculiar; the script worked fine for me on daedalus; it's the same package version and script.
Which kernel version? And what do you get from:

# tc qdisc show

Offline

#5 2024-06-09 16:03:51

chris2be8
Member
Registered: 2018-08-11
Posts: 275  

Re: Shaping script wondershaper seems FUBAR

Running shellcheck against wondershaper would be a reasonable start if it's a shell script.

Then try adding set -x as the second line and see if that tells you what it's trying to do when it fails.

But I'm only guessing because I don't have wondershaper installed.

Offline

#6 2024-06-09 18:42:28

UnixRocks
Member
Registered: 2016-12-07
Posts: 25  

Re: Shaping script wondershaper seems FUBAR

Current kernel version:

[ROOT@devuan-nuc ~] # uname -v
#1 SMP Debian 5.10.216-1 (2024-05-03)

Yeah, I'll work on debugging the script with shellcheck and set -x. I was hoping to get in touch with the script author and was also hoping he is on here and would respond. Silly of me, I know. smile


“Do not meddle in the affairs of dragons for you are crunchy and taste good with ketchup.”
-- Suzanne McMinn

Offline

#7 2024-06-09 22:51:09

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,189  

Re: Shaping script wondershaper seems FUBAR

Have you made sure the kernel modules are available (like sch_cbq, sch_sfq and sch_ingress)? Or maybe it's a udev issue, and the modules need to be loaded manually?

Offline

#8 2024-06-12 15:37:36

UnixRocks
Member
Registered: 2016-12-07
Posts: 25  

Re: Shaping script wondershaper seems FUBAR

I see sch_ingress, but not the other two. Odd.

[ROOT@devuan-nuc ~] # lsmod|grep sch
sch_ingress            16384  0

At this point I am considering just trying to learn about and grok tc. I am going to look for a tutorial on it. Suggestions for a written tutorial are welcome. I will look at videos, but I don't really learn from them.


“Do not meddle in the affairs of dragons for you are crunchy and taste good with ketchup.”
-- Suzanne McMinn

Offline

#9 2024-06-12 22:26:16

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,189  

Re: Shaping script wondershaper seems FUBAR

The traffic shaping uses cbp and sfq (which are the queue types used) so you'll need the modules.

Offline

Board footer