# Speedtest node error

**URL:** <https://discourse.nodered.org/t/speedtest-node-error/43265>\
**Category:** General\
**Created:** [27 March 2021 08:32 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265 "2021-03-27T08:32:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [27 March 2021 08:32 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/1 "2021-03-27T08:32:58Z")

</div>

Since several months, I run speedtest (the node) at 08:00 in the morning just to get a daity check on network performance. I do this on a Raspberry Pi 4B 8GB at home, but also on a R-Pi 3B in my vacation house.  
Both installations started strange behaviour about a week ago.  
The automatically triggered speedtest gives me no speed results. When I log on manually and click the trigger node, it runs OK.  
I added a debug node logging into syslog, and there I found that the 08:00 run results in an error:

[speedtest:7eef8f1a.84532] Error: No server found, verify your proxy/network

I know the network is OK, because I can see other messages coming in via MQTT, just before and after the error..  
I tried changing th speedtest node config, by filling a specific speedtest server id for a server nearby. No change.  
Before I decide to abandon the speedtest node approach, is there anyone that can shed some light on this?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 March 2021 09:10 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/2 "2021-03-27T09:10:18Z")

</div>

Which speedtest node are you using? There are two. Have you tried the other one?

**[Edit]** Reading this suggests neither of them is up to the job. [Radically different node download and upload results as compared to speedtest-cli results? · Issue #8 · steffenmllr/node-red-contrib-speedtest · GitHub](https://github.com/steffenmllr/node-red-contrib-speedtest/issues/8)

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [27 March 2021 11:19 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/3 "2021-03-27T11:19:25Z")

</div>

I picked the latest one.  
But I'm thinking it may be better to move away from the node approach, and revert to the version I have been using before.....

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [27 March 2021 15:39 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/4 "2021-03-27T15:39:55Z")

</div>

It's done. I installed the speedtest.sh version on the Pi, that is now working as it should. I will remove the speedtest node.

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [29 March 2021 20:10 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/5 "2021-03-29T20:10:27Z")

</div>

OK, I've moved away from the speedtest node, now using a bash file that is triggered from a virtual Domoticz device.  
When I click that deice, the speedtest bash is started and produces results as I would expect.  
But I also trigger that device once a day via a timer, and there I find the same problem as before... any clues?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 March 2021 20:35 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/6 "2021-03-29T20:35:32Z")

</div>

Try running you script direct from cron, so node-red is not involved at all. You can send the results to a file. I suspect you will find it still won't run. If so then either it is a problem at the speedtest server, which doesn't sound likely, or it is something about your system or internet connection when it tries to run.  
To narrow it down, you could try a different script from node-red. Maybe one just running `wget` to fetch a web page from somewhere, or curl to download a file. That will tell you if it is an network problem. My gut feeling is that something is happening to your network connection.

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [30 March 2021 05:34 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/7 "2021-03-30T05:34:23Z")

</div>

Yes, at first glance it looks that way.  
But consider this:

1. when I run it during the day, it runs just fine. I trigger it from Domoticz.

2. when I run it locally (bash) it runs fine

3. this has been running OK for months, on two different Raspberry Pi's, in two locations, on separate network connections

The way it is set up now, Node-Red is not involved. The Domoticz virtual device simply triggers the bash script, and that script stores the results directly into Domoticz virtual sensors using json.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2021 06:06 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/8 "2021-03-30T06:06:10Z")

</div>

Assuming you have unlimited broadband you could set it to run every 15 mins to try to identify the pattern.

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [30 March 2021 07:05 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/9 "2021-03-30T07:05:06Z")

</div>

This morning I set the time for the auto trigger to 09:00. Output of speedtest.cli is redirected to a file, when it runs OK it contains the measured values.  
I was hoping it would contain an error message when it fails.  
Unfortunately it is empty...

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2021 07:29 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/10 "2021-03-30T07:29:02Z")

</div>

Did you redirect stderr as well as stdout?

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [30 March 2021 12:28 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/11 "2021-03-30T12:28:23Z")

</div>

good point. I changed it, now awaiting next run.

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [30 March 2021 12:31 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/12 "2021-03-30T12:31:29Z")

</div>

OK, caught the error. But am not sure what to do with it...

```auto
ERROR: Unable to connect to servers to test latency.

```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 March 2021 16:36 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/13 "2021-03-30T16:36:50Z")

</div>

Are you hitting an API limit - you might be running it too often and therefore getting a temporary ban?

Perhaps if you helped us understand what you are trying to achieve, we could give more specific help.

For example, on my own system, I run Telegraf which is easily configured to capture a number of different system and network metrics. It feeds the data into InfluxDB which I then use with Grafana to show the stats. You will find a number of screenshots I've previously shared in the forum.

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [30 March 2021 18:59 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/14 "2021-03-30T18:59:16Z")

</div>

All that I am trying to achieve is run a speedtest once a day on each of my networks, and collect that data centrally. This has worked fine sofar. I am usually not running more than one test per day, so I don't expect a ban.  
The only thing I can bring to mind: I played around with the Node-Red speedtest node for a little while, not touching the already installed speedtest-cli. Once I decided to get rid of the Node-Red speedtest, things started to fall over.  
This afternoon I decided to remove all traces of speedtest, and re-installed. We'll know in the morning if that worked... (I run the daily test at 07:00).

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [31 March 2021 08:33 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/15 "2021-03-31T08:33:19Z")

</div>

it seems that the problem is not really Node-Red related. When I google the error message I can see a lot of people suffering from this over the past weeks... unfortunately no solution (yet).  
The error:

```auto
ERROR: Unable to connect to servers to test latency.

```

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [31 March 2021 15:38 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/16 "2021-03-31T15:38:49Z")

</div>

I gave in. There are simply too many problem reports about this, and it doesn't look like a solution...  
So I moved to the Ookla version of Speedtest.  
Installed it on two instances, sofar it runs good.

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [1 April 2021 10:01 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/17 "2021-04-01T10:01:40Z")

</div>

This morning both instances ran without any problems, so this chapter is closed.  
Although it feels like this: I have an engine problem with my car, and all that I can come up with is to buy a new car... 🙂

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 April 2021 10:23 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/18 "2021-04-01T10:23:17Z")

</div>

Seems to me more like you had to replace the engine 🙂 Welcome to the world of IT 🤪

To be fair though, I don't think you are paying for those services so complaints about their performance probably won't get very far. At least you have lots of alternatives to choose from.

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [1 April 2021 12:26 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/19 "2021-04-01T12:26:10Z")

</div>

The IT world that I helped build over the past 45 years... yeah, I know.  
And I agree, I am not paying for a lot of these services, so can't really complain. It works as long as it works. Doesn't help against frustration, though.  
Compare with the Nora plugin. It worked great, but now that a large crowd is using it, the system crashes. The author knows this, and when explained the users accept it. At least there we know what is going on.  
There is no frustration bigger than the "unknown error".

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 April 2021 13:29 UTC](https://discourse.nodered.org/t/speedtest-node-error/43265/20 "2021-04-01T13:29:53Z")

</div>

You may be beating me by a couple of years but only just 🙂

This is why I got into Node-RED in the first place. Avoiding 3rd-party "free" tools that end up being anything but. Whether because of lost privacy or developers/vendors walking away or one of many other issues. And in any case, I like the challenge and creativity of building my own things which Node-RED has massively helped because I don't have to start from scratch each time. And yet, NR gives me the freedom that something like HA doesn't.

Still, we are drifting off-topic. Yes I absolutely get and share your frustrations.

As a closing note, it is probably worth mentioning that I've found the standard speedtest's increasingly less useful for analysing WAN issues. As such I no longer use them but rather use the tests at DSLreports.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/4/d4ff1b4c3878bed86e3dd0050d84123d70d33e55.png)

Importantly, they measure buffer bloat which is really important for high-speed connections. Along with jitter and measuring from multiple international locations. This gives you a much better picture of what is going on.

For the rest, I rely on regular ping and DNS checks as this gives me early indication of most issues. DNS in particular I've found to go through issues from time to time, Google DNS being especially bad. At which point, you think you have a general network issue but actually switching to a different DNS fixes things.

[Next page](https://discourse.nodered.org/t/speedtest-node-error/43265.md?page=2)
