What's new

Kamoj Kamoj Add-on Beta testing

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

i have erase and reinstall few version back and forth and get back to latest addon plus latest snapshot and remove dfs channel. it seems working now with high cpu usage:

1614606658993.png


about top: is not loading.
PS is showing this.

USER _ _ _ PID _ _ TIME %CPU %MEM _ _VSZ _ RSS TTY _ _ _STAT START _ TIME NLWP _ LWP PSR COMMAND
root _ _ _6293 _ _ _107 41.6 _6.7 _40216 32536 ? _ _ _ _RN _ 13:47 _ 1:47 _ _1 _6293 _ 1 /usr/sbin/minidlna -f /tmp/etc/minidlna.conf
root _ _ _7249 _ _ _ _0 _0.0 _0.2 _ 5668 _1440 ? _ _ _ _Sl _ 13:47 _ 0:00 _ _3 _7249 _ 0 /sbin/kwilt-index -d -p /var/run/kwilt-index.pid -V0
root _ _ _7249 _ _ _ _0 _0.0 _0.2 _ 5668 _1440 ? _ _ _ _Sl _ 13:47 _ 0:00 _ _3 _7252 _ 1 /sbin/kwilt-index -d -p /var/run/kwilt-index.pid -V0
root _ _ _7249 _ _ _ 21 _8.3 _0.2 _ 5668 _1440 ? _ _ _ _Sl _ 13:47 _ 0:21 _ _3 _7255 _ 1 /sbin/kwilt-index -d -p /var/run/kwilt-index.pid -V0
root _ _ _ _33 _ _ _ 10 _3.3 _0.0 _ _ _0 _ _ 0 ? _ _ _ _S _ _13:47 _ 0:10 _ _1 _ _33 _ 0 [kworker/0:1]
 
i have erase and reinstall few version back and forth and get back to latest addon plus latest snapshot and remove dfs channel. it seems working now
I noticed a similar thing a while back.
After flashing R7800-V1.0.2.82.1SF my 5Ghz Wifi stopped working. I tried al kinds of things, inclusing flashing the previous firmware (when I think everything was still working oke).

Eventually I discovered as long as I use one of the normal channels, the 5Ghz is fine, but if I configure 5Ghz WiFi to use one of the DFS channels, it won't start.
So I switched back to a normal channel, with the idea to later investigate further. And then completely forgot about the issue, until I read your post.


regarding the high CPU usage -> it seems that minidnla is scanning your USB disk for media. This should calm done, once it has finished scanning.
 
yeah, it went down. ram still quite high.

1614611729262.png


1614611794496.png


1614611846039.png


about the DFS you may have right.. for now i went back to 48 to avoid further issue.
tnx Gerrits
 
yeah, it went down. ram still quite high.

View attachment 31402

View attachment 31403

View attachment 31404

about the DFS you may have right.. for now i went back to 48 to avoid further issue.
tnx Gerrits

Your CPU temperature is quite high, like mine was. I added a cooling pad underneath my R7800 and it made a big difference.

CPU Temperature 50 °C. Top=68 . Top Ever=68 . (Critical Max=75 ) °C 122 °F. Top=154 . Top Ever=154 . (Critical Max=167 ) °F

My R7800 CPU temperature dropped and stabilized around 50 °C instead of hovering near the mid 60s. It is in router mode and currently has 53 devices connected to it, wired and wireless.


RAM Memory Usage (Used/Total)
38.8 % 183 / 472 MB

In my Kamoj Settings page, I have disabled everything (checked all checkboxes) under Router Analytics / Data Collection / Phone Home and Set Programs & Services on / off.

The cooling pad I'm using this one https://www.amazon.com/gp/product/B086GMY49Y/?tag=snbforums-20 powered from the R7800 itself.
 
I make beta versions of the next kamoj add-on.

The beta has a lot more functions than the official 5.0 beta,
but is also more tested and with fewer known bugs.

N.B: Voxel firmware is a pre-requisite, not an option!

If you want to test betas you must apply by sending me a PM (Private Message)
after reading and accepting this, and tell me something about yourself:


To be a beta tester of this hobby project includes that you must be active,
and report your experience to me or the community, so that we together can
find bugs and introduce new functions.

Can you tell me something more about yourself and your router? e.g.:

What router do you have?

What is your level of router/networking knowledge?
How you got to know about the addon-on?

How long have you used Voxel firmware?
What are your expectations?
In what way do think can you help in the beta program?

Wishing you a good experience of the add-on!
 
That took care of it. For the past 4 hours I have seen no DNS Errors on the Router Information page!

Thank you Kamoj.

BL
Hello,

Just a quick update....
Since making the changes to addon_info_update.sh suggested by Kamoj (to correct my DNS status ERROR) everything associated with the Add-on continues to run well. No errors or other issues anywhere.

I don't run DFS channels so cannot comment on that topic. However I may go back to using AdGuard for a bit just to see how it runs on my router.

Best wishes
BL
 
Hello,

I've run AdGuard Beta for over a day on my R9000 (with 250GB USB HDD having an "opt" partition for the Kamoj Add-on). I also run the Plex media server (steaming is the primary use for this network) and have Transmission active (but not in use). Anyway, AdGuard installed without issue. I set it up to use 6 DNSCrypt servers and 12 filter lists to filter about 230,000 sites. I also have static whitelist and blacklist enabled, and DNS redirects setup.
AdGuard.png


There may be a small increase in CPU and memory use over what I had when running DNSCrypt-Proxy-2. It is difficult to say for sure... maybe 2-3% higher when the router is at "idle" and more so the CPU load than the memory increase?? It does seem that my RAM use is a little higher on 5.4b22 (or at least I notice it vary more), but it changes enough that I am not sure. When AdGuard is first activated and loading servers, etc, the load will go up noticeably but is still in what I would call a normal range.

I would say my CPU temperature runs 1 to 2 degrees C higher on AdGuard versus DNSCrypt-Proxy-2. My router almost always runs 60c unless Plex is transcoding (then it has may hit 70c). Now it often runs 61c (though it will get down to 60c) and has been as high as 72c with Plex transcoding.
AdGuard_Mem_CPU.png


Top and PS logs with the router at "idle" (no Plex streaming or other high load activities) are attached. So far, AdGuard is running well for me and isn't over-burdening my router.

Best wishes,
BL
 

Attachments

  • AdGuard_PS.txt
    40.6 KB · Views: 83
  • AdGuard_Top.txt
    20 KB · Views: 79
Last edited:
What is this cron job for. I have it in cron jobs but I've disabled streamboost.
Code:
/tmp/etc/crontabs:
30 04 * * * streamboost update_fmn; streamboost auto_upload; streamboost auto_update && streamboost restart
 
I
What is this cron job for. I have it in cron jobs but I've disabled streamboost.
Code:
/tmp/etc/crontabs:
30 04 * * * streamboost update_fmn; streamboost auto_upload; streamboost auto_update && streamboost restart
it's best ignored, especially if you have streamboost disabled.

There are *many* processes buried in the firmware which ensure that cronjob always exists.
You cannot edit that or delete it, it will magically re-appear forever.
With streamboost dead you can rest easy, you have no need to worry.
 
Changes in kamoj-addon beta version 5.4b23
--------------------------------------------------
- System Information: "AP stats" show: Added more information. (@n1llam1)
- Router Information: Use the value of "nvram get kamoj_restart_ping_timeout". ($blueliner)
- Include Voxel Snapshot when evaluating latest release color
- Added Netgear cronjobs to "System Information: cron jobs: show" (@sppmaster)
- Removed streamboost cron job if streamboost disabled (@sppmaster, @NetBytes)
- OpenVPN Client: Added VyprVPN (@schneidewind)
(But have no account, so I can't test it)
- entware_install.sh : Fixed to work with R9000 again. Please PM me if still any problem.
- Split kamoj.sh into 2 different programs to speed up processing.
No need for users to care, but please report unexpected behaviors.

This release and on will be hosted at another place.
If you want to continue doing beta testing, you need to contact me kamoj,
here at the forum again.
You can use/bump your original PM and just tell me you want to continue.
I expect to reply to you within 24 hours.
 
Changes in kamoj-addon beta version 5.4b23
--------------------------------------------------
- System Information: "AP stats" show: Added more information. (@n1llam1)
- Router Information: Use the value of "nvram get kamoj_restart_ping_timeout". ($blueliner)
- Include Voxel Snapshot when evaluating latest release color
- Added Netgear cronjobs to "System Information: cron jobs: show" (@sppmaster)
- Removed streamboost cron job if streamboost disabled (@sppmaster, @NetBytes)
- OpenVPN Client: Added VyprVPN (@schneidewind)
(But have no account, so I can't test it)
- entware_install.sh : Fixed to work with R9000 again. Please PM me if still any problem.
- Split kamoj.sh into 2 different programs to speed up processing.
No need for users to care, but please report unexpected behaviors.

This release and on will be hosted at another place.
If you want to continue doing beta testing, you need to contact me kamoj,
here at the forum again.
You can use/bump your original PM and just tell me you want to continue.
I expect to reply to you within 24 hours.

Thanks Kamoj.

On an R7800 with Voxel firmware V1.0.2.82.4SF in AP mode:
Unstinalled V5.4b22, rebooted, installed V5.4b23, rebooted
Verified that the AP stats on System Information page comes back with information.

Noticed that the Router Information page indicates "New kamoj Release:5.4b22" (attached screen snippet)
 

Attachments

  • Kamoj-b23.JPG
    Kamoj-b23.JPG
    10.9 KB · Views: 94
Good to get your report, thank you.
My fault, too tired last night. Forgot to update the master release number...
Should be ok now!
Thanks Kamoj.

On an R7800 with Voxel firmware V1.0.2.82.4SF in AP mode:
Unstinalled V5.4b22, rebooted, installed V5.4b23, rebooted
Verified that the AP stats on System Information page comes back with information.

Noticed that the Router Information page indicates "New kamoj Release:5.4b22" (attached screen snippet)
 
Good to get your report, thank you.
My fault, too tired last night. Forgot to update the master release number...
Should be ok now!
The update works as expected for the master release number. Thanks.

One other item the System Information page... the Show button for WiFi info works one time after a reboot, but after that if I click on the Router Information page to view the information there, then come back to the System Information page again, the Show button does not display any information for WiFi info. It stays blank.
 
Can not repeat your issue :-(
The function is untouched for long time, and I have no other reports about it.
Can you try to pinpoint your issue?
You can run this debug-on in a router terminal window :
Code:
touch /var/log/kamoj.log; tail -f /var/log/kamoj.log
Then reboot to stop logging.
The update works as expected for the master release number. Thanks.

One other item the System Information page... the Show button for WiFi info works one time after a reboot, but after that if I click on the Router Information page to view the information there, then come back to the System Information page again, the Show button does not display any information for WiFi info. It stays blank.
 
Can not repeat your issue :-(
The function is untouched for long time, and I have no other reports about it.
Can you try to pinpoint your issue?
You can run this debug-on in a router terminal window :
Code:
touch /var/log/kamoj.log; tail -f /var/log/kamoj.log
Then reboot to stop logging.
Hello,

I checked on my router and all of the System Information log buttons are working OK after multiple tries. That is except for "dmesg Log", as it is always blank. Is that normal on a R9000?

FYI, I am still running AdGuardHome. The only performance impact I've noticed is that temperature seems to vary more, but maybe thats because I am looking at it more often. It still stays within the normal range but MAYBE runs a degree or two hotter.

On 5.4b23 the Router information page "DNS Status" still shows correctly and agrees with the Supervisor Log information. Thanks Kamoj. The Add-on is doing extremely well at restarting things when connection is lost and it is fast enough that video streaming from Plex is usually unaffected. Since the last changes for this I can't recall having to manually restart anything to get internet connection back after it drops out (been happening more often the past few days, but as usual it is my isp as it affects both networks at the same time). Looks like the "Supervisor is doing his job!

Best wishes,
BL
 
Hello,

I checked on my router and all of the System Information log buttons are working OK after multiple tries. That is except for "dmesg Log", as it is always blank. Is that normal on a R9000?

FYI, I am still running AdGuardHome. The only performance impact I've noticed is that temperature seems to vary more, but maybe thats because I am looking at it more often. It still stays within the normal range but MAYBE runs a degree or two hotter.

On 5.4b23 the Router information page "DNS Status" still shows correctly and agrees with the Supervisor Log information. Thanks Kamoj. The Add-on is doing extremely well at restarting things when connection is lost and it is fast enough that video streaming from Plex is usually unaffected. Since the last changes for this I can't recall having to manually restart anything to get internet connection back after it drops out (been happening more often the past few days, but as usual it is my isp as it affects both networks at the same time). Looks like the "Supervisor is doing his job!

Best wishes,
BL
Yes, dmesg log for R9000 is broken from stock firmware, you can see some logs there very briefly only.

Like I said, I can't repeat your issue. Maybe R9000 has changed from R7800?!.
So, I need your help to post your log after running the terminal commands I gave you, and then selecting wifi info show.
You "must" help me/us!
 
Can not repeat your issue :-(
The function is untouched for long time, and I have no other reports about it.
Can you try to pinpoint your issue?
You can run this debug-on in a router terminal window :
Code:
touch /var/log/kamoj.log; tail -f /var/log/kamoj.log
Then reboot to stop logging.
The debug output is included below, after rebooting and enabling debug logging:

Clicked on System Information link.

First time clicking on the Show button for WiFi info:

root@R7800:~$ touch /var/log/kamoj.log; tail -f /var/log/kamoj.log
2021-03-09 10:05:09 125.25 kamoj.cgi 11704: ------------------------------------------------------------------------------
2021-03-09 10:05:10 125.26 kamoj.cgi 11704: --->addon_router_information=kamoj&raw_reply=1&get_wifi_info=1<--- 58 characters
2021-03-09 10:05:10 125.31 kamoj.sh 11750: Main called with -addon_router_information=kamoj&raw_reply=1&get_wifi_info=1-
2021-03-09 10:05:10 125.31 kamoj.sh 11750: addoncmd: addon_router_information
2021-03-09 10:05:10 125.34 kamoj.sh 11750: Decode the message: addon_router_information
2021-03-09 10:05:10 125.81 kamoj.sh 11750: do_addon_router_information: get_top_log= clear_top_log=
2021-03-09 10:05:10 125.81 kamoj.sh 11750: do_addon_router_information: get_psw_log= clear_psw_log=
2021-03-09 10:05:10 125.82 kamoj.sh 11750: do_addon_router_information: get_irq_log= clear_irq_log=
2021-03-09 10:05:10 125.83 kamoj.sh 11750: do_addon_router_information: get_softirq_log= clear_softirq_log=
2021-03-09 10:05:11 126.33 kamoj.sh 11750: Exiting...

Screen snippet of output after first click is attached (Kamoj-b23_WiFi_Info_1st_time.JPG). Please take a look to see if any additional info should have been included. It seemed to have minimal information.


Then clicked on Router Information link to go to that page to view information.
Then clicked on System Information link again.

Second time clicking on the Show button for WiFi info:

2021-03-09 10:07:59 294.26 kamoj.cgi 19458: ------------------------------------------------------------------------------
2021-03-09 10:07:59 294.26 kamoj.cgi 19458: --->addon_router_information=kamoj&raw_reply=1&get_wifi_info=1<--- 58 characters
2021-03-09 10:07:59 294.31 kamoj.sh 19504: Main called with -addon_router_information=kamoj&raw_reply=1&get_wifi_info=1-
2021-03-09 10:07:59 294.32 kamoj.sh 19504: addoncmd: addon_router_information
2021-03-09 10:07:59 294.35 kamoj.sh 19504: Decode the message: addon_router_information
2021-03-09 10:07:59 294.83 kamoj.sh 19504: do_addon_router_information: get_top_log= clear_top_log=
2021-03-09 10:07:59 294.84 kamoj.sh 19504: do_addon_router_information: get_psw_log= clear_psw_log=
2021-03-09 10:07:59 294.84 kamoj.sh 19504: do_addon_router_information: get_irq_log= clear_irq_log=
2021-03-09 10:07:59 294.85 kamoj.sh 19504: do_addon_router_information: get_softirq_log= clear_softirq_log=
2021-03-09 10:08:02 297.44 kamoj.sh 19504: Exiting...

Screen snippet of output after second click is attached (Kamoj-b23_WiFi_Info_2nd_time.JPG), showing blank output.

Hopefully there are useful clues to help identity the issue. Thanks.
 

Attachments

  • Kamoj-b23_WiFi_Info_1st_time.JPG
    Kamoj-b23_WiFi_Info_1st_time.JPG
    13.8 KB · Views: 63
  • Kamoj-b23_WiFi_Info_2nd_time.JPG
    Kamoj-b23_WiFi_Info_2nd_time.JPG
    11.4 KB · Views: 58
The debug output is included below, after rebooting and enabling debug logging:

Clicked on System Information link.

First time clicking on the Show button for WiFi info:

root@R7800:~$ touch /var/log/kamoj.log; tail -f /var/log/kamoj.log
2021-03-09 10:05:09 125.25 kamoj.cgi 11704: ------------------------------------------------------------------------------
2021-03-09 10:05:10 125.26 kamoj.cgi 11704: --->addon_router_information=kamoj&raw_reply=1&get_wifi_info=1<--- 58 characters
2021-03-09 10:05:10 125.31 kamoj.sh 11750: Main called with -addon_router_information=kamoj&raw_reply=1&get_wifi_info=1-
2021-03-09 10:05:10 125.31 kamoj.sh 11750: addoncmd: addon_router_information
2021-03-09 10:05:10 125.34 kamoj.sh 11750: Decode the message: addon_router_information
2021-03-09 10:05:10 125.81 kamoj.sh 11750: do_addon_router_information: get_top_log= clear_top_log=
2021-03-09 10:05:10 125.81 kamoj.sh 11750: do_addon_router_information: get_psw_log= clear_psw_log=
2021-03-09 10:05:10 125.82 kamoj.sh 11750: do_addon_router_information: get_irq_log= clear_irq_log=
2021-03-09 10:05:10 125.83 kamoj.sh 11750: do_addon_router_information: get_softirq_log= clear_softirq_log=
2021-03-09 10:05:11 126.33 kamoj.sh 11750: Exiting...

Screen snippet of output after first click is attached (Kamoj-b23_WiFi_Info_1st_time.JPG). Please take a look to see if any additional info should have been included. It seemed to have minimal information.


Then clicked on Router Information link to go to that page to view information.
Then clicked on System Information link again.

Second time clicking on the Show button for WiFi info:

2021-03-09 10:07:59 294.26 kamoj.cgi 19458: ------------------------------------------------------------------------------
2021-03-09 10:07:59 294.26 kamoj.cgi 19458: --->addon_router_information=kamoj&raw_reply=1&get_wifi_info=1<--- 58 characters
2021-03-09 10:07:59 294.31 kamoj.sh 19504: Main called with -addon_router_information=kamoj&raw_reply=1&get_wifi_info=1-
2021-03-09 10:07:59 294.32 kamoj.sh 19504: addoncmd: addon_router_information
2021-03-09 10:07:59 294.35 kamoj.sh 19504: Decode the message: addon_router_information
2021-03-09 10:07:59 294.83 kamoj.sh 19504: do_addon_router_information: get_top_log= clear_top_log=
2021-03-09 10:07:59 294.84 kamoj.sh 19504: do_addon_router_information: get_psw_log= clear_psw_log=
2021-03-09 10:07:59 294.84 kamoj.sh 19504: do_addon_router_information: get_irq_log= clear_irq_log=
2021-03-09 10:07:59 294.85 kamoj.sh 19504: do_addon_router_information: get_softirq_log= clear_softirq_log=
2021-03-09 10:08:02 297.44 kamoj.sh 19504: Exiting...

Screen snippet of output after second click is attached (Kamoj-b23_WiFi_Info_2nd_time.JPG), showing blank output.

Hopefully there are useful clues to help identity the issue. Thanks.
The first one just shows no Wifi client is connected - yet.
The second one is same as you get when router has lot to do/high load/downloading much (timeout).
Do you use adguard or dnscrypt e.g., aegis/vpn? They may download a lot after router reboot, and may take long time depending on connection..
And what does System Information say at the same time? And the supervision log? Router mode?
You are a skilled beta tester and I'm sure you can get more data to understand this.
So far no one else has complained...
 
The first one just shows no Wifi client is connected - yet.
The second one is same as you get when router has lot to do/high load/downloading much (timeout).
Do you use adguard or dnscrypt e.g., aegis/vpn? They may download a lot after router reboot, and may take long time depending on connection..
And what does System Information say at the same time? And the supervision log? Router mode?
You are a skilled beta tester and I'm sure you can get more data to understand this.
So far no one else has complained...
Thanks for the explanation about no client yet. I eventually realized that was the case as well.

I do not use any extras on this particular R7800 device, running in AP mode. The load is usually fairly low (System Load Average last: 1/5/15 minutes: 0.27 / 0.23 / 0.25).

I was able to track the button click to trigger the browser to send a request that is handled by /www/cgi-bin/kamoj.sh, which invokes the /usr/bin/wifi_info_ip.sh script and then return the output as found in the /tmp/wifi_list.ip file.

The strange thing is that the browser indicates that it receives 0 bytes in the response body for the request.

I eventually found that if I comment out line #1619 in /www/cgi-bin/kamoj.sh that invokes /usr/bin/wifi_info_ip.sh (as shown in the code snippet below), then the browser always receives a response containing the content from the /tmp/wifi_list.ip file.

Code:
    # WIFI INFO
    #-------------------------------------------------------------------
    if [ -n "$get_wifi_info" ]; then
#      /usr/bin/wifi_info_ip.sh 2>/dev/null
       awk '{printf "%s\n\r",$0} END {print ""}' "/tmp/wifi_list.ip"
       return
    fi

So for the time being my work around is to have use the Setting page to add cron job that runs /usr/bin/wifi_info_ip.sh every 5 minutes (*/5 * * * *) to generate an updated /tmp/wifi_list.ip file. I can then use the Show WiFi info button to see information that is at most 5 minutes old. I can always schedule the cron job to run more frequently as needed.

I have not been able to figure out why the /www/cgi-bin/kamoj.sh script is not able to return any information if it runs /usr/bin/wifi_info_ip.sh and then return the content from the /tmp/wifi_list.ip file. That is as far as I can get.
 
Thanks for the explanation about no client yet. I eventually realized that was the case as well.

I do not use any extras on this particular R7800 device, running in AP mode. The load is usually fairly low (System Load Average last: 1/5/15 minutes: 0.27 / 0.23 / 0.25).

I was able to track the button click to trigger the browser to send a request that is handled by /www/cgi-bin/kamoj.sh, which invokes the /usr/bin/wifi_info_ip.sh script and then return the output as found in the /tmp/wifi_list.ip file.

The strange thing is that the browser indicates that it receives 0 bytes in the response body for the request.

I eventually found that if I comment out line #1619 in /www/cgi-bin/kamoj.sh that invokes /usr/bin/wifi_info_ip.sh (as shown in the code snippet below), then the browser always receives a response containing the content from the /tmp/wifi_list.ip file.

Code:
    # WIFI INFO
    #-------------------------------------------------------------------
    if [ -n "$get_wifi_info" ]; then
#      /usr/bin/wifi_info_ip.sh 2>/dev/null
       awk '{printf "%s\n\r",$0} END {print ""}' "/tmp/wifi_list.ip"
       return
    fi

So for the time being my work around is to have use the Setting page to add cron job that runs /usr/bin/wifi_info_ip.sh every 5 minutes (*/5 * * * *) to generate an updated /tmp/wifi_list.ip file. I can then use the Show WiFi info button to see information that is at most 5 minutes old. I can always schedule the cron job to run more frequently as needed.

I have not been able to figure out why the /www/cgi-bin/kamoj.sh script is not able to return any information if it runs /usr/bin/wifi_info_ip.sh and then return the content from the /tmp/wifi_list.ip file. That is as far as I can get.
Oh, I found an extra character that should not be there...:oops: Must have been there for long time... o_O
Can you try this patch please:

Code:
sed -i "s/$'/'/g" /usr/bin/wifi_info_ip.sh
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top