spdMerlin spdMerlin - v4.x - speedtest and bandwidth monitoring

  • ATTENTION! You'll notice a Prefix dropdown when you create a thread. If your post applies to one of the topics listed, please use that Prefix for your post. When browsing the thread list you can use the Prefix to filter the view.
  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

NGI

Regular Contributor
I've noticed recently that sometimes the speed tests skips in the log. It will just have a null value or something like ---. Does anybody else?
I don't remember it doing that in the past. I thought it might be the server so I went back to random. Still skips a set every now and again.
An idea may be to go to the syslog and look for events at the time/s your scheduled speed-test/s did not occur. This may give you some clues perhaps.
 

Jack Yaz

Part of the Furniture
I've noticed recently that sometimes the speed tests skips in the log. It will just have a null value or something like ---. Does anybody else?
I don't remember it doing that in the past. I thought it might be the server so I went back to random. Still skips a set every now and again.
the speedtest itself could be failing - ookla's binary doesn't log that anywhere at the moment. i can take a look to see if I can capture error logging
 

JT Strickland

Senior Member
An idea may be to go to the syslog and look for events at the time/s your scheduled speed-test/s did not occur. This may give you some clues perhaps.
I looked for that but nothing was there, although I may not know what to look for.
 

El Indalo

Occasional Visitor
AC86U with merlin 384.19.

My WAN is on USB Android phone. Dual WAN is off.

SpdMerlin installs fine, but when I select WAN the web interface tells me "None configured".

I get these errors on the CLI:-

Choose an interface to speedtest:

1. All
2. WAN

Choose an option: 2

What mode would you like to use?

1. Auto-select
2. Preferred server
3. Choose a server

Choose an option: 1

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

[2020-12-20 16:34:53.487] [error] Configuration - Couldn't connect to server (Network is unreachable)
[2020-12-20 16:34:53.488] [error] Configuration - Cannot retrieve configuration document (0)
[2020-12-20 16:34:53.488] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[2020-12-20 16:34:53.488] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[error] Configuration - Could not retrieve or read configuration (ConfigurationError)
spdMerlin: Error running speedtest for WAN


Do I need to change this somewhere to select the WAN as USB0?

Thanks
 

L&LD

Part of the Furniture
If you didn't let the first run complete when you first installed it and it asked for permission to accept the speedtest EULA, then you may want to uninstall it and try re-installing once more.
 

El Indalo

Occasional Visitor
If you didn't let the first run complete when you first installed it and it asked for permission to accept the speedtest EULA, then you may want to uninstall it and try re-installing once more.
Thanks for the suggestion, I have done this including removing configurations etc., but still no joy. I get the same messages.

Maybe it just won't work on a USB WAN?
 

L&LD

Part of the Furniture
Bingo! I think that may be your issue.

Can you select the USB WAN as the one to test? In the CLI if not in the GUI?
 

Jack Yaz

Part of the Furniture
Thanks for the suggestion, I have done this including removing configurations etc., but still no joy. I get the same messages.

Maybe it just won't work on a USB WAN?
can you check what the below reports on the command line please?
Code:
nvram show | grep usb0
 

JT Strickland

Senior Member
Thanks for the suggestion, I have done this including removing configurations etc., but still no joy. I get the same messages.

Maybe it just won't work on a USB WAN?

I'm using a usb wan. Electrical storm fried my primary wan. Works ok with my setup.
 

El Indalo

Occasional Visitor
can you check what the below reports on the command line please?
Code:
nvram show | grep usb0

Output is below, thank you.

/tmp/mnt/RTR-USB# nvram show | grep usb0

size: 69969 bytes (61103 left)
igmp_ifname=usb0
usb_modem_act_dev=usb0
usb_path2_act=usb0
wan0_gw_ifname=usb0
wan0_ifname=usb0
wan1_gw_ifname=usb0
 

El Indalo

Occasional Visitor
Bingo! I think that may be your issue.

Can you select the USB WAN as the one to test? In the CLI if not in the GUI?
Not sure how to do this, I can't find anywhere where I can enter "USB0".

Also not sure if it is relevant, apologies for not mentioning if it is, I am running a Wireguard client on interface wg0.
 

Jack Yaz

Part of the Furniture
Output is below, thank you.

/tmp/mnt/RTR-USB# nvram show | grep usb0

size: 69969 bytes (61103 left)
igmp_ifname=usb0
usb_modem_act_dev=usb0
usb_path2_act=usb0
wan0_gw_ifname=usb0
wan0_ifname=usb0
wan1_gw_ifname=usb0
OK so it should be trying to use usb0 as I use the below for WAN:
Code:
IFACE="$(nvram get wan0_ifname)"
just to check the other logic, what do you get for:
Code:
nvram get sw_mode
nvram get wan0_proto
 

El Indalo

Occasional Visitor
OK so it should be trying to use usb0 as I use the below for WAN:
Code:
IFACE="$(nvram get wan0_ifname)"
just to check the other logic, what do you get for:
Code:
nvram get sw_mode
nvram get wan0_proto

sw_mode 1
wan0_proto dhcp

Thanks.
 

Jack Yaz

Part of the Furniture
sw_mode 1
wan0_proto dhcp

Thanks.
Hm OK. Maybe your USB device just doesn't work with it. Can you try
Code:
/jffs/addons/spdmerlin.d/ookla/speedtest --interface=usb0 --servers --format="json"
 

doczenith1

Very Senior Member
4.1.1 works just fine on my 68U (384.19) which is using USB for the WAN via a cell phone. I did nothing special. Just installed and let it rip. It is also working on VPN1 using openvpn.
 

El Indalo

Occasional Visitor
Hm OK. Maybe your USB device just doesn't work with it. Can you try
Code:
/jffs/addons/spdmerlin.d/ookla/speedtest --interface=usb0 --servers --format="json"
Thanks for helping Jack, it seems that the problem is my wg0 Wireguard interface which I should have checked before asking for help. I set this up following the instructions here


When I turn it off the Speedcheck works fine on USB0, but as soon as I turn it back on I get the errors:-

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

[2020-12-23 11:31:04.187] [error] Configuration - Couldn't connect to server (Network is unreachable)
[2020-12-23 11:31:04.188] [error] Configuration - Cannot retrieve configuration document (0)
[2020-12-23 11:31:04.188] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[2020-12-23 11:31:04.188] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
[error] Configuration - Could not retrieve or read configuration (ConfigurationError)
spdMerlin: Error running speedtest for WAN


As I send all my traffic through wg0 I assume that I can't do anything to make the script work? Obviously I'd welcome any help but at the same time appreciate that Wireguard is experimental and not supported by Asus/Merlin.

Cheers again.
 

L&LD

Part of the Furniture
@El Indalo, can you not change the interface used?


See the link below for the GUI where it shows 'Preferred servers for interfaces'.
 

archiel

Regular Contributor
@El Indalo, can you not change the interface used?


See the link below for the GUI where it shows 'Preferred servers for interfaces'.
As far as I can see the issue is not whether you can choose the server (for a given interface) but that with Wireguard there is an unexpected interface wg0 which spdmerlin is not setup to recognise.
 

L&LD

Part of the Furniture
@archiel, but is that not the same thing? :)
 

El Indalo

Occasional Visitor
I don't think I have the skills to "change the interface used". The GUI does not offer me wg0, so I think I would have to set up Wireguard to operate as tun0, am not even sure if that would be possible. So I think it is must be correct to say that "there is an unexpected interface wg0"

The other possibility is that it may be something to do with routing, but my knowledge of that is practically zero!
 

Sign Up For SNBForums Daily Digest

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