Task Manager Issue

I have a web filtering script which i push from task manager but ive noticed the list is being erased from the units (trying to work out how often this happens)

and i have to keep repushing the task back onto the units

( i check the webui for the units and the script is successfully working as i can see the below list appearing on the units)

but when i check the units after a certain period of time, the web filtering listing goes back to blank

uci add hostblock block

Configure block entries for each hostname:

uci set hostblock.@block[0].host=β€˜netflix.com’
uci set hostblock.@block[0].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[1].host=β€˜youtube.com’
uci set hostblock.@block[1].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[2].host=β€˜spotify.com’
uci set hostblock.@block[2].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[3].host=β€˜twitch.tv’
uci set hostblock.@block[3].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[4].host=β€˜facebook.com’
uci set hostblock.@block[4].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[5].host=β€˜instagram.com’
uci set hostblock.@block[5].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[6].host=β€˜disneyplus.com’
uci set hostblock.@block[6].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[7].host=β€˜hulu.com’
uci set hostblock.@block[7].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[8].host=β€˜amazon.com’
uci set hostblock.@block[8].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[9].host=β€˜primevideo.com’
uci set hostblock.@block[9].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[10].host=β€˜apple.com’
uci set hostblock.@block[10].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[11].host=β€˜appletv.com’
uci set hostblock.@block[11].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[12].host=β€˜crunchyroll.com’
uci set hostblock.@block[12].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[13].host=β€˜hbo.com’
uci set hostblock.@block[13].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[14].host=β€˜hbomax.com’
uci set hostblock.@block[14].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[15].host=β€˜peacocktv.com’
uci set hostblock.@block[15].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[16].host=β€˜paramountplus.com’
uci set hostblock.@block[16].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[17].host=β€˜showtime.com’
uci set hostblock.@block[17].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[18].host=β€˜starz.com’
uci set hostblock.@block[18].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[19].host=β€˜twitter.com’
uci set hostblock.@block[19].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[20].host=β€˜linkedin.com’
uci set hostblock.@block[20].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[21].host=β€˜pinterest.com’
uci set hostblock.@block[21].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[22].host=β€˜reddit.com’
uci set hostblock.@block[22].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[23].host=β€˜tumblr.com’
uci set hostblock.@block[23].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[24].host=β€˜snapchat.com’
uci set hostblock.@block[24].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[25].host=β€˜tiktok.com’
uci set hostblock.@block[25].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[26].host=β€˜vimeo.com’
uci set hostblock.@block[26].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[27].host=β€˜dailymotion.com’
uci set hostblock.@block[27].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[28].host=β€˜imdb.com’
uci set hostblock.@block[28].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[29].host=β€˜rottentomatoes.com’
uci set hostblock.@block[29].enabled=β€˜1’
uci add hostblock block

uci set hostblock.@block[30].host=β€˜metacritic.com’
uci set hostblock.@block[30].enabled=β€˜1’
uci add hostblock block


### Configure block entries for each API:
```sh
uci set hostblock.@block[31].host='api.netflix.com'
uci set hostblock.@block[31].enabled='1'
uci add hostblock block

uci set hostblock.@block[32].host='m.youtube.com'
uci set hostblock.@block[32].enabled='1'
uci add hostblock block

uci set hostblock.@block[33].host='api.spotify.com'
uci set hostblock.@block[33].enabled='1'
uci add hostblock block

uci set hostblock.@block[34].host='api.twitch.tv'
uci set hostblock.@block[34].enabled='1'
uci add hostblock block

uci set hostblock.@block[35].host='api.facebook.com'
uci set hostblock.@block[35].enabled='1'
uci add hostblock block

uci set hostblock.@block[36].host='api.instagram.com'
uci set hostblock.@block[36].enabled='1'
uci add hostblock block

uci set hostblock.@block[37].host='api.disneyplus.com'
uci set hostblock.@block[37].enabled='1'
uci add hostblock block

uci set hostblock.@block[38].host='api.hulu.com'
uci set hostblock.@block[38].enabled='1'
uci add hostblock block

uci set hostblock.@block[39].host='api.amazon.com'
uci set hostblock.@block[39].enabled='1'
uci add hostblock block

uci set hostblock.@block[40].host='api.primevideo.com'
uci set hostblock.@block[40].enabled='1'
uci add hostblock block

uci set hostblock.@block[41].host='api.apple.com'
uci set hostblock.@block[41].enabled='1'
uci add hostblock block

uci set hostblock.@block[42].host='api.appletv.com'
uci set hostblock.@block[42].enabled='1'
uci add hostblock block

uci set hostblock.@block[43].host='api.crunchyroll.com'
uci set hostblock.@block[43].enabled='1'
uci add hostblock block

uci set hostblock.@block[44].host='api.hbo.com'
uci set hostblock.@block[44].enabled='1'
uci add hostblock block

uci set hostblock.@block[45].host='api.hbomax.com'
uci set hostblock.@block[45].enabled='1'
uci add hostblock block

uci set hostblock.@block[46].host='api.peacocktv.com'
uci set hostblock.@block[46].enabled='1'
uci add hostblock block

uci set hostblock.@block[47].host='api.paramountplus.com'
uci set hostblock.@block[47].enabled='1'
uci add hostblock block

uci set hostblock.@block[48].host='api.showtime.com'
uci set hostblock.@block[48].enabled='1'
uci add hostblock block

uci set hostblock.@block[49].host='api.starz.com'
uci set hostblock.@block[49].enabled='1'
uci add hostblock block

uci set hostblock.@block[50].host='api.twitter.com,mobile.twitter.com'
uci set hostblock.@block[50].enabled='1'
uci add hostblock block

uci set hostblock.@block[51].host='api.linkedin.com'
uci set hostblock.@block[51].enabled='1'
uci add hostblock block

uci set hostblock.@block[52].host='api.pinterest.com'
uci set hostblock.@block[52].enabled='1'
uci add hostblock block

uci set hostblock.@block[53].host='api.reddit.com'
uci set hostblock.@block[53].enabled='1'
uci add hostblock block

uci set hostblock.@block[54].host='api.tumblr.com'
uci set hostblock.@block[54].enabled='1'
uci add hostblock block

uci set hostblock.@block[55].host='api.snapchat.com'
uci set hostblock.@block[55].enabled='1'
uci add hostblock block

uci set hostblock.@block[56].host='api.tiktok.com'
uci set hostblock.@block[5].enabled='1'

Greetings,

This could be because once you call these options, you reboot the router, and your settings disappear since you didn’t commit them. After the initial commands are run, you also need to run uci commit to push the commands.

Regards,
M.

Hi there

thanks so all i need to do is add uci commit to the end of the script

excellent ive pushed that now so will keep an eye on this

much appreciated

1 Like

No worries at all, let me know if you encounter the same issue again.

Have a wonderful day,
M.

thanks alot

sorry just to confirm , i don’t need to explicitly add the uci commit line under each hostblock?

it just needs to appear at the end of the final hostblock within the script?

Hi there,

yes, just right at the end, not after each one.

This topic was automatically closed after 60 days. New replies are no longer allowed.