qdm12 / gluetun

VPN client in a thin Docker container for multiple VPN providers, written in Go, and using OpenVPN or Wireguard, DNS over TLS, with a few proxy servers built-in.
https://hub.docker.com/r/qmcgaw/gluetun
MIT License
6.71k stars 331 forks source link

Bug: Surfshark updater not enough servers found #2241

Closed pmorch closed 2 months ago

pmorch commented 2 months ago

Is this urgent?

No

Host OS

NixOS

CPU arch

x86_64

VPN service provider

Surfshark

What are you using to run the container

docker run

What is the version of Gluetun

Running version latest built on 2024-04-08T07:43:05.096Z (commit 7b4befc)

What's the problem 🤔

This does not work:

$ wget -O data/servers.json https://raw.githubusercontent.com/qdm12/gluetun/master/internal/storage/servers.json

$ sudo docker run --rm -v ./data:/gluetun qmcgaw/gluetun update -enduser -providers surfshark

Share your logs (at least 10 lines)

2024-04-27T23:33:10Z INFO merging by most recent 19476 hardcoded servers and 19476 servers read from /gluetun/servers.json
2024-04-27T23:33:11Z INFO updating Surfshark servers...
2024-04-27T23:33:18Z WARN reached the maximum number of consecutive failures: 2 failed attempts resolving us-tpa.prod.surfshark.com: lookup us-tpa.prod.surfshark.com on 8.8.8.8:53: no such host
2024-04-27T23:33:18Z WARN reached the maximum number of consecutive failures: 2 failed attempts resolving us-orl.prod.surfshark.com: lookup us-orl.prod.surfshark.com on 8.8.8.8:53: no such host
2024-04-27T23:33:18Z WARN reached the maximum number of consecutive failures: 2 failed attempts resolving mx-mex.prod.surfshark.com: lookup mx-mex.prod.surfshark.com on 8.8.8.8:53: no such host
2024-04-27T23:33:18Z WARN reached the maximum number of consecutive failures: 2 failed attempts resolving us-stl.prod.surfshark.com: lookup us-stl.prod.surfshark.com on 8.8.8.8:53: no such host
2024-04-27T23:33:18Z WARN note: if running the update manually, you can use the flag -minratio to allow the update to succeed with less servers found
2024-04-27T23:33:18Z ERROR updating server information: getting servers: not enough servers found: 182 and expected at least 292
2024-04-27T23:33:18Z INFO Shutdown successful

Share your configuration

sudo docker run --rm -v ./data:/gluetun qmcgaw/gluetun update -enduser -providers surfshark

fails, but adding -minratio 0.2 made it work. (-minratio 0.5 was still too much.)

As far as I can tell, surfshark worked for me both before and after the update using:

VPN_SERVICE_PROVIDER=surfshark and SERVER_HOSTNAMES=ch-zur.prod.surfshark.com.

I'm running it from Switzerland.

github-actions[bot] commented 2 months ago

@qdm12 is more or less the only maintainer of this project and works on it in his free time. Please:

qdm12 commented 2 months ago

Servers updated in 49b8f8b443bcf57285170a9773f6e121ace2d9b3 Indeed, they just have less servers working I think. I also removed 4 outdated old-hardcoded-servers in ce75c5ca217dc1950be1c47096ff55848f190768

github-actions[bot] commented 2 months ago

Closed issues are NOT monitored, so commenting here is likely to be not seen. If you think this is still unresolved and have more information to bring, please create another issue.

This is an automated comment setup because @qdm12 is the sole maintainer of this project which became too popular to monitor issues closed.