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
8.04k stars 371 forks source link

Bug: surfshark update failing #1253

Closed dfadev closed 1 year ago

dfadev commented 1 year ago

Is this urgent?

No

Host OS

No response

CPU arch

x86_64

VPN service provider

Surfshark

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version unknown built on an unknown date (commit unknown) (I use a customized local build from latest master)

What's the problem 🤔

I think surfshark parsing is broken.

Share your logs

❯ docker-compose up --build --force-recreate --remove-orphans
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Recreating gluetun-test ... done
Attaching to gluetun-test
gluetun-test    | 2022-11-23T16:26:30Z INFO creating /gluetun/servers.json with 13220 hardcoded servers
gluetun-test    | 2022-11-23T16:26:30Z INFO updating Surfshark servers...
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 144.48.38.179_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 180.149.231.69_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 45.248.79.53_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 144.48.39.69_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 185.99.3.12_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 89.34.99.83_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 172.83.40.147_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 196.244.191.179_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 194.39.127.240_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 165.231.163.5_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 196.196.150.101_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 198.147.22.165_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 87.239.255.109_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 124.150.139.181_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 194.39.127.240_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 193.148.17.85_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 84.17.58.136_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 193.148.17.85_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 196.244.191.179_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 5.154.174.99_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 180.149.231.69_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 89.187.178.92_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 87.239.255.109_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 165.231.163.5_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 185.225.28.243_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 45.248.79.53_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 172.83.40.147_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 196.196.150.101_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 148.72.169.209_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 89.34.99.83_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 89.187.178.92_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 144.48.38.179_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 144.48.39.69_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 37.120.142.131_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 152.89.163.21_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 37.120.142.131_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 192.154.253.67_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 198.147.22.165_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 185.225.28.243_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 84.17.58.136_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 124.150.139.181_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 148.72.169.209_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 192.154.253.67_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 107.175.104.84_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 152.89.163.21_udp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 5.154.174.99_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 107.175.104.84_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:31Z WARN remote host not found in 185.99.3.12_tcp.ovpn
gluetun-test    | 2022-11-23T16:26:46Z WARN reached the maximum number of consecutive failures: 2 failed attempts resolving jp-tok-st004.prod.surfshark.com: lookup jp-tok-st004.prod.surfshark.com on 127.0.0.11:53: no such host
gluetun-test    | 2022-11-23T16:26:46Z WARN reached the maximum number of consecutive failures: 2 failed attempts resolving jp-tok-st007.prod.surfshark.com: lookup jp-tok-st007.prod.surfshark.com on 127.0.0.11:53: no such host
gluetun-test    | 2022-11-23T16:26:46Z ERROR cannot update server information: cannot get servers: not enough servers found: 200 and expected at least 267
gluetun-test    | 2022-11-23T16:26:46Z INFO Shutdown successful
gluetun-test exited with code 1

Share your configuration

version: "3.9"

services:
  gluetun-test:
    container_name: gluetun-test
    image: qmcgaw/gluetun
    volumes:
      - /data/scratch/compose/volumes/gluetun-test/config:/gluetun
    command: update -enduser -providers surfshark
mircoianese commented 1 year ago

"Mexico" region servers are also not working (I think it's because the update fails)

qdm12 commented 1 year ago

Although maybe a bit hidden, you can use update -help to display options, and you can use:

  -minratio float
        Minimum ratio of servers to find for the update to succeed (default 0.8)

So add -minratio 0.5 to your command to allow to pass the update.

Anyway, I pushed an update of the Surfshark servers in e6df0263320a2de533ab80159789bd01a10341c6 for the latest image so that you don't have to deal with this :wink:

vip-design commented 1 year ago

@qdm12 Following up this thread. I'm getting this error: ERROR updating server information: getting servers: not enough servers found: 0 and expected at least 268. Since it is 0 here, I'm not sure how to move ahead.

I did docker pull qmcgaw/gluetun:latest before updating.

Although maybe a bit hidden, you can use update -help to display options, and you can use:

  -minratio float
        Minimum ratio of servers to find for the update to succeed (default 0.8)

So add -minratio 0.5 to your command to allow to pass the update.

Anyway, I pushed an update of the Surfshark servers in e6df026 for the latest image so that you don't have to deal with this 😉