Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speedtests fail with "Could not resolve host.". #1510

Closed
bigrichwood opened this issue Jun 9, 2024 · 14 comments
Closed

Speedtests fail with "Could not resolve host.". #1510

bigrichwood opened this issue Jun 9, 2024 · 14 comments
Assignees
Labels
❓ question Further information is requested

Comments

@bigrichwood
Copy link

Describe the bug
All speedtests fail with the error "Could not resolve host."

0.20.2 is the last working version. 0.20.3 and 0.20.4 both fail with the same errors.

To Reproduce
Steps to reproduce the behavior:

  1. run a speedtest, manual or scheduled.

Expected behavior
Speedtest shouldn't fail, it does.

Environment (please complete the following information):
Proxmox with Debian 12LXC running Docker, all fully up to date.

Docker, with the following compose.yaml:

version: "3.9"
services:
linuxserver:
image: lscr.io/linuxserver/speedtest-tracker:latest
volumes:
- ./data:/config
environment:
- DB_CONNECTION=sqlite
- PGID=1000
- PUID=1000
- PUBLIC_DASHBOARD=TRUE
- PRUNE_RESULTS_OLDER_THAN=28
- SPEEDTEST_SCHEDULE=17 * * * *
- APP_KEY=--deleted--
ports:
- 8080:80
restart: unless-stopped
container_name: speedtest-tracker
networks: {}

Additional context
From within the container itself connectivity is fine:

root@86dfde98255e:/# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=0 ttl=55 time=20.608 ms
64 bytes from 1.1.1.1: seq=1 ttl=55 time=17.068 ms
^C
--- 1.1.1.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 17.068/18.838/20.608 ms

root@86dfde98255e:/# ping www.speedtest.net
PING www.speedtest.net (104.17.148.22): 56 data bytes
64 bytes from 104.17.148.22: seq=0 ttl=55 time=16.543 ms
64 bytes from 104.17.148.22: seq=1 ttl=55 time=15.555 ms
^C
--- www.speedtest.net ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 15.555/16.049/16.543 ms
root@86dfde98255e:/#

@alexjustesen alexjustesen added the 😖 duplicate This issue or pull request already exists label Jun 9, 2024
@alexjustesen
Copy link
Owner

Please see closed issues with the same title

@alexjustesen alexjustesen closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2024
@alexjustesen alexjustesen added ❓ question Further information is requested and removed 😖 duplicate This issue or pull request already exists labels Jun 9, 2024
@alexjustesen alexjustesen self-assigned this Jun 9, 2024
@alexjustesen alexjustesen reopened this Jun 9, 2024
@alexjustesen
Copy link
Owner

alexjustesen commented Jun 9, 2024

This looks like the cache might not have been reset, can you restart your container and ensure it's running 0.20.4?

@KGBist2000
Copy link

same here, not working with v0.20.4, also after full clean install of container.

@bigrichwood
Copy link
Author

bigrichwood commented Jun 9, 2024

I take it back.

For me at least lscr.io/linuxserver/speedtest-tracker:latest is currently pointing to 0.20.3 (v0.20.3-ls29), although I'm sure I had 0.20.4 earlier, but can't remember if I specified latest or a fixed version in my compose file.

However forcing it to lscr.io/linuxserver/speedtest-tracker:0.20.4, redeploying, and then restarting the LXC it's running within appears to resolve the errors when there's no SPEEDTEST_PING_URL defined.

However there's definately something weird going on with the connectivity tests in 0.20.3 and above as if I define a host that I can quite definitely ping from the container, the errors are back. Setting and manual ping tests shown below.

SPEEDTEST_PING_URL=1.1.1.1

root@f24ed2b78674:/# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=0 ttl=55 time=28.334 ms
64 bytes from 1.1.1.1: seq=1 ttl=55 time=13.769 ms
64 bytes from 1.1.1.1: seq=2 ttl=55 time=12.529 ms
^C
--- 1.1.1.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 12.529/18.210/28.334 ms
root@f24ed2b78674:/#

@alexjustesen
Copy link
Owner

@bigrichwood can you try setting a different IP or using a domain name?

@bigrichwood
Copy link
Author

I tried all the following, and get exactly the same errors.

8.8.8.8
www.google.com
192.168.0.1 (my default gateway)
192.168.0.133 (the LXC running docker)
127.0.0.1

@alexjustesen
Copy link
Owner

For now don't set a ping url and that check should be bypassed. If the issue continues it might be CLI based and not related to the internet check. Also don't forget to restart the container after setting a new value so the cache is updated.

@bigrichwood
Copy link
Author

It works fine if I don't define a test URL.

Interestingly, if I set it to use a FQDN I can see the DNS looking taking place in the logs of my DNS server, so it's getting at least that far.

@Chacsam
Copy link

Chacsam commented Jun 10, 2024

solved for me with 0.20.4

@alexjustesen
Copy link
Owner

@bigrichwood if you're able to dig more into it some ISPs block these types of look-ups. I don't think it's an application error anymore since you can disable the check. Going to close this out one.

@bigrichwood
Copy link
Author

bigrichwood commented Jun 10, 2024 via email

@KGBist2000
Copy link

after again clean install of v0.20.4 container and delete following line from docker-compose file, its working now.

  • SPEEDTEST_PING_URL="google.de"

@bigrichwood
Copy link
Author

I can confirm that it's not actually pinging.

Pings from the LXC and from within the speedtest-tracker container all show up on a packet sniffer as expected, pings generated from the SPEEDTEST_PING_URL in the app do not.

To be honest this doesn't bother me that much as I've just disabled the check. But I'm happy to do more testing if you want to get to the bottom of what's breaking it.

@alexjustesen
Copy link
Owner

@bigrichwood if you don't mind digging I don't have a way to test LXC. Once you have findings open a new issue as I usually don't keep tabs on closed ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants