Skip to content
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

sqm-scripts: won’t automatically start after boot #14518

Open
rulet opened this issue Jan 20, 2021 · 12 comments
Open

sqm-scripts: won’t automatically start after boot #14518

rulet opened this issue Jan 20, 2021 · 12 comments

Comments

@rulet
Copy link

rulet commented Jan 20, 2021

sqm rules doesn't work after reboot, I have to manually restart it, openwrt 19.07.5

@feckert feckert changed the title Luci-app-sqm won’t automatically start after boot sqm-scripts: won’t automatically start after boot Jan 21, 2021
@tohojo
Copy link
Contributor

tohojo commented Jan 27, 2021

Upstream issue: tohojo/sqm-scripts#131

Potentially fixed by tohojo/sqm-scripts@37ead1f but would be good to confirm before pushing that to the packages repo...

@tapper82
Copy link

I think this is fixt. Can It be closed?

@tohojo
Copy link
Contributor

tohojo commented Feb 10, 2021

I was still waiting for someone to confirm that the upstream fixed linked above actually solved this; if it does, I'll push it to the repo and close the bug that way. Have you tested it?

@tapper82
Copy link

It's fixt in master. I run it on my router and it's is fine. OpenWrt SNAPSHOT r15727-c382fe857d / LuCI Master git-21.040.83252-3c166c2
sqm-scripts
1.5.0-2

@tohojo
Copy link
Contributor

tohojo commented Feb 10, 2021

But are you running with a config like that in tohojo/sqm-scripts#131 ?

@tapper82
Copy link

No I am not. Sorry I did not see the strange config.

@hilman-k8n
Copy link

does not work for me too

luci-app-sqm git-21.188.55209-f161b40
sqm-scripts 1.5.1-1
openwrt-21.02 branch (git-21.295.67054-13df80d) / OpenWrt 21.02.1 r16325-88151b8303

I need to manually add /etc/init.d/sqm start in /etc/rc.local to make it works

@tohojo
Copy link
Contributor

tohojo commented Dec 21, 2021

@hilman-k8n could you please post your /etc/config/sqm?

@hilman-k8n
Copy link

Hi @tohojo, this is my /etc/config/sqm

config queue
	option enabled '1'
	option interface 'wlan0-2'
	option download '64'
	option upload '64'
	option debug_logging '0'
	option verbosity '0'
	option qdisc 'cake'
	option script 'piece_of_cake.qos'
	option linklayer 'none'

config queue
	option enabled '1'
	option interface 'wlan0-1'
	option download '512'
	option upload '512'
	option debug_logging '0'
	option qdisc 'cake'
	option script 'piece_of_cake.qos'
	option linklayer 'none'
	option verbosity '0'

@tohojo
Copy link
Contributor

tohojo commented Jan 5, 2022

@hilman-k8n okay first of all, which WiFi driver are you running, and why do you need to run SQM-scripts on the WiFi interface? Also, those are some very low bandwidth settings, what's your use case, exactly? :)

@hilman-k8n
Copy link

Hi @tohojo, it's only for guest SSID

I've solved this issue. The root cause was caused by SQM trying to find interface that did not exist yet - so it'll fail.

You need to update service_triggers() when wifi interface is up

@tohojo
Copy link
Contributor

tohojo commented Apr 11, 2022

You need to update service_triggers() when wifi interface is up

Care to elaborate? Or maybe open a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants