What's new

spdMerlin spdMerlin - Automated speedtests with graphs

  • 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!

spdMerlin uses SpeedTest CLI
If the speeds from this utility are significantly lower than those you see from the desktop app/browser test, the limiting factor will be your router's CPU. That being said, there is probably room for improvement/optimisation by the Ookla team in the CLI binary itself. Please direct feedback about speed issues to Ookla via the above link. There is nothing that I can do about them.

Jack,
Update :) in my earlier post, I got about only half of the speed over my 1 gpbs fibre subscription.
  • I factory reset my RT-AX88U, and setup from scratch
  • reinstalled all the scripts again over amtm
    • (Diversion Entware pixelserv-tls uiDivStats, Skynet, connmon ntpMerlin spdMerlin, unbound-mgr)
  • this is my new results (I set preferred server that is hosted with my ISP to get 900++mbps).
Screenshot 2020-02-21 at 20.16.45.png


Thank you.
 
Jack,
Update :) in my earlier post, I got about only half of the speed over my 1 gpbs fibre subscription.
  • I factory reset my RT-AX88U, and setup from scratch
  • reinstalled all the scripts again over amtm
    • (Diversion Entware pixelserv-tls uiDivStats, Skynet, connmon ntpMerlin spdMerlin, unbound-mgr)
  • this is my new results (I set preferred server that is hosted with my ISP to get 900++mbps).
View attachment 21528

Thank you.

How did you get it installed on your AX? It won't install on mine at all.
 
I presumed that was because it won't install properly? According to the uptime monitoring addon my line is 100% & everything is working as it should, good speed (~120megs down) & no drop-outs even at peak times.
What errors do you get during installation? What dns resolvers, settings, or other dns related scripts are you running?
 
Hi Jack,

When installing I get the errors I posted in my post #563 above, namely:

/jffs/scripts/spdmerlin: line 1747: can't open /jffs/addons/spdmerlin.d/spdstats_www.asp: no such file
/jffs/scripts/spdmerlin: line 1747: can't open /jffs/addons/spdmerlin.d/spdstats_www.asp: no such file
/jffs/scripts/spdmerlin: line 1747: can't open /jffs/addons/spdmerlin.d/spdstats_www.asp: no such file
/jffs/scripts/spdmerlin: line 1747: can't open /jffs/addons/spdmerlin.d/spdstats_www.asp: no such file

I'm using cloudflare DOT resolvers 1.1.1.1 & 1.0.0.1 on the latest Merlin firmware with no other dns related scripts, everything is "as standard". I've tried updating after installing, force updating, clean installing with no other addons (I use skynet, diversion, udivstats & conmon usually), re-formatted the USB & jffs partition but still get the above errors when installing. It ran fine on my old RT86U.
Let me know if you need any more info.
 
Hi Jack,

When installing I get the errors I posted in my post #563 above, namely:

/jffs/scripts/spdmerlin: line 1747: can't open /jffs/addons/spdmerlin.d/spdstats_www.asp: no such file
/jffs/scripts/spdmerlin: line 1747: can't open /jffs/addons/spdmerlin.d/spdstats_www.asp: no such file
/jffs/scripts/spdmerlin: line 1747: can't open /jffs/addons/spdmerlin.d/spdstats_www.asp: no such file
/jffs/scripts/spdmerlin: line 1747: can't open /jffs/addons/spdmerlin.d/spdstats_www.asp: no such file

I'm using cloudflare DOT resolvers 1.1.1.1 & 1.0.0.1 on the latest Merlin firmware with no other dns related scripts, everything is "as standard". I've tried updating after installing, force updating, clean installing with no other addons (I use skynet, diversion, udivstats & conmon usually), re-formatted the USB & jffs partition but still get the above errors when installing. It ran fine on my old RT86U.
Let me know if you need any more info.
The odd thing is that I don't do anything model specific in the installer iirc, so I would expect failures across the board if it was broken
 
I'll try installing again & see if I can capture a screenshot of the results for you.....

Edit: Here you go. The first screenshot when installing:



The second screenshot showing the failure:

 
Last edited:
I'll try installing again & see if I can capture a screenshot of the results for you.....
Frooty,

I got similar error message, I just accept the Speedtest CLI License Agreement. if it is still not showing on the Add-ON GUI Tab, try Update or Force Update for J4 (spdMerlin). Hope it works for you :)
 
Frooty,

I got similar error message, I just accept the Speedtest CLI License Agreement. if it is still not showing on the Add-ON GUI Tab, try Update or Force Update for J4 (spdMerlin). Hope it works for you :)

Hi LimJK,

I do accept it, I posted the install error screen shot for JackYaz in the hope it will help him find the cause of the failure. I've also tried what you said - see post #565 above.
Thanks for confirming that you also get the error though, at least I know it's not just me having the problem.
 
Hi LimJK,

I do accept it, I posted the install error screen shot for JackYaz in the hope it will help him find the cause of the failure. I've also tried what you said - see post #565 above.
Thanks for confirming that you also get the error though, at least I know it's not just me having the problem.
frooty,
Saw your post, sorry, it is beyond me, hope you find a solution.
For my case I decided to do something drastic, I did factory reset with Merlin 384.15. Setup up my RT-AX88U from scratch and re-install all the scripts; I invested one whole night to do that :)
 
frooty,
Saw your post, sorry, it is beyond me, hope you find a solution.
For my case I decided to do something drastic, I did factory reset with Merlin 384.15. Setup up my RT-AX88U from scratch and re-install all the scripts; I invested one whole night to do that :)

I feel your pain - I've tried doing the same, spent hour upon hour trying to eliminate the problem, resets, firmware flashing, formatting, different USB's, updating, force updating - I've tried the lot. Knowing that it's not just me has helped ease the pain a little though, thanks.
 
I feel your pain - I've tried doing the same, spent hour upon hour trying to eliminate the problem, resets, firmware flashing, formatting, different USB's, updating, force updating - I've tried the lot. Knowing that it's not just me has helped ease the pain a little though, thanks.
FWIW the errors you are seeing in the installation, while undesired, do not impact script functionality. I have just pushed a fix to eliminate the install errors. I'll be surprised if they impact the script running!
 
Yes. I've also done a few "from scratch" installs too - format the USB & jffs partition - same result. If it helps, here's what I get if I try running a speed test:

[2020-02-20 19:45:39.810] [error] Trying to get interface information on non-initialized socket.
[2020-02-20 19:45:39.941] [error] Configuration - Couldn't resolve host name (HostNotFoundException)
[2020-02-20 19:45:39.942] [error] Configuration - Cannot retrieve configuration document (0)
[2020-02-20 19:45:39.942] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[2020-02-20 19:45:39.943] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[error] Configuration - Could not retrieve or read configuration (ConfigurationError)
Error: near line 3: near ",": syntax error

spdMerlin: Speedtest results - -

spdMerlin: Starting speedtest using auto-selected server for VPNC1 interface

[2020-02-20 19:45:43.428] [error] Trying to get interface information on non-initialized socket.
[2020-02-20 19:45:43.559] [error] Configuration - Couldn't resolve host name (HostNotFoundException)
[2020-02-20 19:45:43.560] [error] Configuration - Cannot retrieve configuration document (0)
[2020-02-20 19:45:43.560] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[2020-02-20 19:45:43.561] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[error] Configuration - Could not retrieve or read configuration (ConfigurationError)
Error: near line 3: near ",": syntax error

spdMerlin: Speedtest results - -

Hope it helps someone.
I assume you're using 1 - auto select?
 
Jack,
Update :) in my earlier post, I got about only half of the speed over my 1 gpbs fibre subscription.
  • I factory reset my RT-AX88U, and setup from scratch
  • reinstalled all the scripts again over amtm
    • (Diversion Entware pixelserv-tls uiDivStats, Skynet, connmon ntpMerlin spdMerlin, unbound-mgr)
  • this is my new results (I set preferred server that is hosted with my ISP to get 900++mbps).
View attachment 21528

Thank you.
Hi another update that I observed as I investigate why I was getting half speed with spdMerlin earlier.
  • When I turn ON AiProtection (all options) - I get my half speed
  • When I turn OFF AiProtection (all options) - I get my full speed
  • QED - so I leave AiProtection OFF for now
 
FWIW the errors you are seeing in the installation, while undesired, do not impact script functionality. I have just pushed a fix to eliminate the install errors. I'll be surprised if they impact the script running!

Hi Jack, thanks for bearing with me on this. OK, we're almost there - the usual errors I reported earlier regarding installation have now gone, but there was one error that flashed up before the screen switched back to the menu after installation, so I was unable to capture it I'm afraid. After installing I rebooted, updated & force updated just to be sure everything was right. I did however notice that an initial speed test didn't run after accepting (y) the Ookla terms.
I could see the UI on the router interface which confirmed that no speed test had occured, so I SSH'd into the amtm terminal & tried a speed test which worked, even though the results were approx half the speeds I get:



I then tried another, which failed, apparently it had "forgotten" that I had previously agreed to the Ookla terms:



A look at the router logs confirmed this:



Speed test on my ovpn connection works OK, but not the WAN, so it's half working. I then went back into the amtm terminal & tried to choose a preferred server for WAN (option 4) which didn't go down too well:

mechanical keyboard test

This was recurring & the only way to stop it was to close the session & reboot the router.

It seems to me, with my (very) limited knowledge, that the persistent storage is not very persistent & is forgetting the installation settings? Just a guess, from what I can make out of the logs....what do you think?
 
Hi Jack, thanks for bearing with me on this. OK, we're almost there - the usual errors I reported earlier regarding installation have now gone, but there was one error that flashed up before the screen switched back to the menu after installation, so I was unable to capture it I'm afraid. After installing I rebooted, updated & force updated just to be sure everything was right. I did however notice that an initial speed test didn't run after accepting (y) the Ookla terms.
I could see the UI on the router interface which confirmed that no speed test had occured, so I SSH'd into the amtm terminal & tried a speed test which worked, even though the results were approx half the speeds I get:



I then tried another, which failed, apparently it had "forgotten" that I had previously agreed to the Ookla terms:



A look at the router logs confirmed this:



Speed test on my ovpn connection works OK, but not the WAN, so it's half working. I then went back into the amtm terminal & tried to choose a preferred server for WAN (option 4) which didn't go down too well:

mechanical keyboard test

This was recurring & the only way to stop it was to close the session & reboot the router.

It seems to me, with my (very) limited knowledge, that the persistent storage is not very persistent & is forgetting the installation settings? Just a guess, from what I can make out of the logs....what do you think?
Initial speedtest is hidden and not recorded, so you need to be patient, as the message says.

The error message that appears then vanishes may show what is causing the problem - reinstall and then scroll the ssh session back up to see the error
 
Initial speedtest is hidden and not recorded, so you need to be patient, as the message says.

The error message that appears then vanishes may show what is causing the problem - reinstall and then scroll the ssh session back up to see the error

I'm unable to scroll back to see the error because the screen changes immediately back to the amtm menu after installation has finished - are there any installation logs kept anywhere that I can access?
I noticed also that when uninstalling there are errors which look similar to the errors when installing, but again - they disappear too quickly to capture. It would be ideal if the user had to press [enter] after installing/uninstalling before going back to the amtm menu - this would then enable log checking by the user & make trouble shooting by yourself easier?

I will try again now & see if I can capture it......
 
I'm unable to scroll back to see the error because the screen changes immediately back to the amtm menu after installation has finished - are there any installation logs kept anywhere that I can access?
I noticed also that when uninstalling there are errors which look similar to the errors when installing, but again - they disappear too quickly to capture. It would be ideal if the user had to press [enter] after installing/uninstalling before going back to the amtm menu - this would then enable log checking by the user & make trouble shooting by yourself easier?

I will try again now & see if I can capture it......
You should be able to scroll back up past the amtm menu. Otherwise try manually installing via the command in post #1
 
OK, reinstalled & updated but couldn't capture the error I'm afraid. Speed test now fails completely again:



....sigh.
 
You should be able to scroll back up past the amtm menu. Otherwise try manually installing via the command in post #1

Yes, I can scroll up - but there are no installation logs/reports, they disappear - only the chosen options by the user remain.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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