Speedtest CLI by Ookla - Internet Up-/Downlink Measurement Integration

Hi Jerome,

Once again Speed Test broke and currently showing error

2020-06-24 22:30:04.356 [ERROR] [pse.smarthome.model.script.Speedtest] - → speedtest failed. Output:
[2020-06-24 22:30:04.308] [error] Configuration - Cannot retrieve configuration document (503)
[2020-06-24 22:30:04.308] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
{“type”:“log”,“timestamp”:“2020-06-24T17:00:04Z”,“message”:“Configuration - Could not retrieve or read configuration (ConfigurationError)”,“level”:“error”}

This is really bad, I hoped this is a more reliable service…
It is a problem because right now, I use speedtest to check for internet connection (which basically works really great and I have not seen a similar method for this here, so if anyone interested I can share it - basically it reports immediate internet outage and not just polls speedtest) and if it can’t execute the speedtest, it will report it as an internet outage.
Anyway someone know similar service which can operate from command line and can test connectivity/speed?

My configuration is running since i implemented it without any errors or outages…

See above answer, for me it´s working very reliable.
Another method to check for general internet connectivity would be a simple ping.

1 Like

the speed test is Up and running now .

For me this only happened once for a few hours, but it seems that this error is back multiple times at different users.

Yes this is what I do!

I’ve had no problems here in Oz.

It might be useful for those with problems to state what country and/or region they’re located, it could be a localised thing.

It brakes few times .

following chart all break point are break point due to Speed test failure in last 7 days(except the big one) . Big one is due to recharge for services pending from my side .
1st chart is for speed test and 2nd one is Pi hole

Yes I have similar setup :slight_smile:

I know now if it was really an outage, you can usually see a really big increase on the Pi-hole graph as all devices retries to connect to its web services :slight_smile:

Anyway I’m happy with this right now, it can detect internet outage 95% correctly…

I have not experienced any of these issue and I have mine running every 10 minutes. Maybe it’s the Linux implementation, I’m running windows and have been very happy.

Out of curiosity have you whitelisted the app?

Squid

You mean the exec binding whitelisting?
I don´t think it would work at all without the whitelisting :slight_smile:
They say it´s not working constantly.

I think this is also based on where you live.
For me it only happened once for a few hours, others report this more frequently… It does not look like a client side error, but clearly something goes wrong on speedtest side. When I had this outage I tried to execute it manually, from other device, everywhere I received some error. Only web client worked (but that one worked on devices where the cli don’t).

Hi, I am facing the same issue here. Are you able to resolve the issue?

Hi DigitalDB,

root@RTG007777:~# sudo apt-get install speedtest
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package speedtest

Seems like the repository is not create for the speedtest? Is that why it is unable to locate and install the package?

Hi BlackJack,

Do you reinstalled the same key?
export INSTALL_KEY=379CE192D401AB61

The main disadvantage of this pushed commercial Speedtest CLI instead of open source Python based tool is the fact, that I cannot choose far server, for example if I want to check my connection from my city to Australia, I cannot do it. Only on the main page I can search for a server, and it does not provide me with it’s ID. Old speedtest-cli had a big list of all servers, but nowadays for some reason, all continents were removed and it is impossible to test Africa/Australia and so on… Why is that? No idea. Looks like Ookla wanted to kill the open source good tool.

This is incorrect, you can choose which site you want to test against…

But how? -L displays only near servers, or I’m missing something. I want to list for example servers from Melbourne.

This looks to be the master list…see if you can find one close by…

https://c.speedtest.net/speedtest-servers-static.php

And another listing…

Squid :squid:

Thank you. In the first list you have provided, there is no Australia/Africa or for example New Zealand. This is the problem. For some reason, someone has removed very far continent servers. But on the other list, all servers are back. Then I can look for Tanzania, Australia, Sydney, Christchurch and so on…

From the first list, old speedtest-cli is choosing, that’s why I was them missing since few weeks, wondering why. And the second list the new tool is choosing from.

Anyway, thanks. Maybe in future versions, also official speedtest CLI will gain an option to list ALL servers, and not only nearest.

However:

twinsen@vpn:/etc/apt/sources.list.d$ speedtest -s 1687
[error] Configuration - No servers defined (NoServersException)

> <server url="http://203.109.129.27/speedtest/upload.php" lat="-36.8404" lon="174.7399" name="Auckland" country="New Zealand" countrycode="NZ" sponsor="Vodafone New Zealand" sponsorurl="http://www.vodafone.co.nz" id="1687" gid="0" url2="http://203.109.129.27/speedtest/upload.php" bigsamples="1" />

Why is that?