-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luci-app-sqm: won’t automatically start after boot #4744
Comments
The package https://github.com/openwrt/luci/tree/openwrt-19.07/applications/luci-app-sqm is not presented on openwrt-19.07 I can not find any sqm in the 19.07 branch. The acl json must be an artifact from a backport. Please check the package feed https://github.com/openwrt/packages/blob/openwrt-19.07/net/sqm-scripts/Makefile |
https://openwrt.org/packages/pkgdata/luci-app-sqm |
Again, this is not a LuCI bug because the packet does not exist in openwrt 19.07 branch according to my research. Since the package is maintained in the package feed you have to open an issue there. |
It does exist, but in the packages repo... https://github.com/openwrt/packages/blob/openwrt-19.07/net/sqm-scripts/Makefile#L48 But the LuCI app has no role in the actual startup of the underlying SQM package itself, so the "SQM not enabled at startup" bug does not belong here in LuCI. |
@hnyman should we not delete the luci-app-sqm in luci on branch openwrt-19.07 as i said? |
So, to whom I have to talk? |
cc @jow-
We do have the LuCI app in 19.07, like I linked above:
And it is downloadable: It is just defined, compiled and downloaded from the packages feed, not LuCI. For master it was moved properly to the LuCI feed after discussion in But for 19.07 it has been left in the old style of being defined in the packages feed, but actually being sourced in tohojo's own repo. Like I said, sqm (and acme) were anomalies, as also the LuCI apps were defined in upstream (in tohojo's repo) But that ACL definition file in the LuCI 19.07 repo is wrong/unutilised, as it naturally does not get included in the luci-app-sqm build done from the packages feed. (@jow- had not figured that anomaly out in the backport that he has done with ecd4924) I am not sure if that ACL is actually needed in 19.07, but if it is needed, it should be then defined in the packages repo. Or maybe the luci-app-sqm should also be defined normally in the LuCI repo. |
Errors/bug for the SQM package itself are best discussed with @tohojo or @moeller0 in either |
@hnyman Sorry for the confusion from my side! I did not see it that the luci-app-sqm is maintained in the package feed. It is different in the master branch now. I was irritated that there is the directory in the LuCI feed with only the acl file. So I assumed it was a mistake. I have now staged a P/R in my repository that removes the acl, because (as I see it) this is not necessary for the openwrt-19.07 branch. @rulet In openwrt there is the LuCI feed, package feed and openwrt base and some other feeds. If the problem is about the WebGUI then an issue should be raised here. If it is an issue in the system (like in your case with sqm), then an issue should be raised in the package feed. Just a hint from me to solve the problem for sqm. |
Hi Florian,
so currently, sqm has the following hotplug script:
[ -n "$DEVICE" ] || exit 0
restart_sqm() {
/usr/lib/sqm/run.sh stop ${DEVICE}
/usr/lib/sqm/run.sh start ${DEVICE}
}
[ "$ACTION" = ifup ] && /etc/init.d/sqm enabled && restart_sqm
[ "$ACTION" = ifdown ] && /usr/lib/sqm/run.sh stop ${DEVICE}
which seems to work wel for e.g. pppoe-wan coning and going. What specifically do we need to add for static IP interfaces?
Best Regards
Sebastian
… On Jan 21, 2021, at 07:37, Florian Eckert ***@***.***> wrote:
@hnyman Sorry for the confusion from my side! I did not see it that the luci-app-sqm is maintained in the package feed. It is different in the master branch now. I was irritated that there is the directory in the LuCI feed with only the acl file. So I assumed it was a mistake. I have now staged a P/R in my repository that removes the acl, because (as I see it) this is not necessary for the openwrt-19.07 branch.
@rulet In openwrt there is the LuCI feed, package feed and openwrt base and some other feeds. If the problem is about the WebGUI then an issue should be raised here. If it is an issue in the system (like in your case with sqm), then an issue should be raised in the package feed.
Just a hint from me to solve the problem for sqm.
I think you would have to restart the sqm on an interface event.
For this you have to look at the directory /etc/hotplug.d/iface place a script there that do the job.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@moeller0 Sorry but I can't find your posted script anywhere in the package feed repo! |
Hi Florian,
On Jan 21, 2021, at 09:14, Florian Eckert ***@***.***> wrote:
@moeller0 Sorry but I can't find your posted script anywhere in the package feed repo!
Oh, it is part of the main sqm-scripts repository see https://github.com/tohojo/sqm-scripts/blob/master/platform/openwrt/sqm-hotplug as it is not specific to the luci GUI, but rather required for the main packet to function in light of appearing/disappearing interfaces/devices.
Is this checked in or is this just a suggestion for the issue.
Yes, that comes as part of the sqm-scripts package, I copied the code verbatim from /etc/hotplug.d/iface/11-sqm
As I said I have now not dealt with sqm more closely.
Just wanted to be helpful in the LuCI.
Thanks, much appreciated. I might well be that our script is confused in regards to the subtle? differences between $INTERFACE and $DEVICE, any information/documentation would be appreciated.
Best Regards
Sebastian
…
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Now I have found it too. Thanks for the hint
I found this. Which explains the variables better. Maybe we have to change the handling, So we do not specify the device (eth1, pppoe-xdsl..) but rather the logical openwrt interface (wan, xdsl, wlan). The advantage would be we would be independent of the correct device name, that would simplify the matter. We would only reference the logical openwrt name and get the real hardware device at runtime. I would then wrap it all up in the init script so we don't have to change the run script. That means we could turn sqm on at startup. The interfaces that are already there would start up and the others that start later (xdsl, wwan) would be started via the hotplug system. We could call then init for example /etc/init.d/sqm up/down <interface> |
So, if I understand right, the bug exists. When to expect for patch, I mean when in stable repo the sqm package will be updated? For now I'm using workaround which is described here, but feckert says to place a script in /etc/hotplug.d/iface. How exactly that script should look like, can you give an example? |
On Jan 21, 2021, at 12:16, rulet ***@***.***> wrote:
So, if I understand right, the bug exists.
Not 100% sure what the bug is.
When to expect for patch,
Not before someone created such a patch/fix ;)
I mean when in stable repo the sqm package will be updated?
Well, before the issue is fully diagnosed and a fix created and confirmed to actually work no updates are going to happen.
For now I'm using workaround which is described here, but feckert says to place a script in /etc/hotplug.d/iface. How exactly that script should look like, can you give an example?
The thing is there already is a script that as far as I can tell from the documentation should work. How about we take this up on this weekend again and create an instrumented version of the sqm hotplug script to figure out why it does not trigger?
Best Regards
Sebastian
…
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Ok, I can test it on my device(Archer c6) if it's possible. |
We did a private debugging session with @rulet and found this. The However, there is a strange network config (a consequence of watching a possibly-misleading tutorial at https://www.youtube.com/watch?v=7982Z44ebOc):
I.e. the bridging between eth0.1 and eth0.3 is done in software, so that SQM can only be applied to one part of the LAN. The SQM config is:
We have modified /etc/hotplug.d/iface/11-sqm as follows:
Here is what has been logged after a reboot:
See - the hotplug event is about |
sqm rules doesn't work after reboot, I have to manually restart it, openwrt 19.07.5
The text was updated successfully, but these errors were encountered: