Error in 17.10: RTNETLINK answers: Invalid argument. Needs 1.4 version from github.

Bug #1745421 reported by aguadopd on 2018-01-25
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wondershaper (Ubuntu)
Undecided
Unassigned

Bug Description

# Description
Wondershaper is not working as expected in my Ubuntu 17.10, kernel 4.13.0-25-generic, x86_64.

Similar to https://bugs.launchpad.net/ubuntu/+source/wondershaper/+bug/1739086 , but in my case the connection speed remains normal. Wondershaper is working for me in Ubuntu 16.10.

This user reports the same problem: https://askubuntu.com/questions/922152/limit-internet-bandwidth-17-04 . Sadly, it has been tagged as a duplicate question, but it is not.

# Error
~$ sudo wondershaper wlp3s0 1000 300
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
RTNETLINK answers: Invalid argument
We have an error talking to the kernel

# Package info
~$ apt show wondershaper
Package: wondershaper
Version: 1.1a-8
Priority: extra
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Vince Mulhollon <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 55,3 kB
Depends: iproute2 | iproute
Homepage: http://lartc.org/wondershaper/
Download-Size: 14,8 kB
APT-Manual-Installed: yes
APT-Sources: http://ubuntu-archive.locaweb.com.br/ubuntu artful/universe amd64 Packages

dino99 (9d9) wrote :

wondershaper is very old, not maintained since Mon, 11 May 2015
http://repo.or.cz/lartc.git

Its clearly proposed to now use iproute2 instead
http://lartc.org/wondershaper/

So that old package should better be removed from archive

summary: - Error in 17.10: RTNETLINK answers: Invalid argument
+ [Archive removal] Error in 17.10: RTNETLINK answers: Invalid argument
Changed in wondershaper (Ubuntu):
status: New → Incomplete

@9d9 I don't understand why you mark it as incomplete. How can I complete it? Maybe the solution is to remove the package but until then, the bug is there.

Neither `iproute2` nor `tc` or other options mentioned in related questions are as easy to use as `wondershaper`. I mean, `wondershaper` can be used with a single and simple command; the most difficult part for the user is to discover the name of the interface he wants to limit/shape.

Changed in wondershaper (Ubuntu):
status: Incomplete → New
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wondershaper (Ubuntu):
status: New → Confirmed
Uwe Geuder (ubuntulp-ugeuder) wrote :

Same problem on 16.04 LTS with HWE kernel.

First error is in statement

+ /sbin/tc filter add dev enp30s0 parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0xff flowid 1:10
RTNETLINK answers: Invalid argument
We have an error talking to the kernel

dino99 (9d9) wrote :

Some good news: new version 1.4

" Wonder Shaper was first released by Bert Hubert in 2002, but the original version lacked a command-line interface, from on version 1.2 this feature was added. From version 1.3, the HTB queing is used instead of CBQ, allowing better bandwith managment on high speed (above ten megabits) links. In version 1.4 an improved ingress shaping method was implemented and the ability to limit either down or up (both is still possible too). "

https://github.com/magnific0/wondershaper/

So the Debian source link should be updated, to get the latest package's changes, and finally be synced with ubuntu archive.

tags: added: artful bionic upgrade-software-version
summary: - [Archive removal] Error in 17.10: RTNETLINK answers: Invalid argument
+ Error in 17.10: RTNETLINK answers: Invalid argument. Needs 1.4 version
+ from github.
aguadopd (aguadopd) wrote :

As @9d9 reports in comment #5, there is a working updated script in https://github.com/magnific0/wondershaper

This was not working for me before, but it is now with Linux 4.13.0-32-generic. Maybe a system reboot did the fix. See the conversation here: https://github.com/magnific0/wondershaper/issues/17

Maybe one day the Debian package is updated.

Mike Hardy (mikehardy) wrote :

I'm having a little trouble reconciling where exactly to request the change, but I think the upstream package source is from github and I just logged an issue there:

https://github.com/leggewie-DM/wondershaper/issues/1

I can confirm that if you simply download the wondershaper from the magnfic0 repository, things work fine. If that script could be used as the upstream source then patched up for Debian standards (relocate to /sbin etc) then the ubuntu repositories would contain a wondershaper that worked as expected

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.