qdm12 / gluetun-wiki

Home to the Markdown Wiki page for Gluetun
MIT License
269 stars 31 forks source link

OpenVpn + Surfshark error - [vpn] cannot get version information: Get "https://api.github.com/repos/qdm12/gluetun/releases": context canceled #62

Open jaybp opened 2 months ago

jaybp commented 2 months ago

This type of issue has been reported for wireguard, but I'm seeing the same issue with openvpn. Any ideas how this can be resolved?

Running version v3.38.0 built on 2024-03-25T15:53:33.983Z (commit b3ceece)
2024-04-10T23:09:59.673081196-04:00
🔧 Need help? https://github.com/qdm12/gluetun/discussions/new
🐛 Bug? https://github.com/qdm12/gluetun/issues/new
✨ New feature? https://github.com/qdm12/gluetun/issues/new
☕ Discussion? https://github.com/qdm12/gluetun/discussions/new
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2024-04-10T23:09:59-04:00 INFO [routing] default route found: interface eth0, gateway 172.16.0.1, assigned IP 172.16.0.110 and family v4
2024-04-10T23:09:59-04:00 INFO [routing] local ethernet link found: eth0
2024-04-10T23:09:59-04:00 INFO [routing] local ipnet found: 172.16.0.0/16
2024-04-10T23:09:59-04:00 INFO [routing] local ipnet found: fe80::/64
2024-04-10T23:10:00-04:00 INFO [storage] creating /gluetun/servers.json with 19476 hardcoded servers
2024-04-10T23:10:00-04:00 INFO Alpine version: 3.18.6
2024-04-10T23:10:00-04:00 INFO OpenVPN 2.5 version: 2.5.8
2024-04-10T23:10:00-04:00 INFO OpenVPN 2.6 version: 2.6.8
2024-04-10T23:10:00-04:00 INFO Unbound version: 1.19.3
2024-04-10T23:10:00-04:00 INFO IPtables version: v1.8.9
2024-04-10T23:10:00-04:00 INFO Settings summary:
├── VPN settings:
|   ├── VPN provider settings:
|   |   ├── Name: surfshark
|   |   └── Server selection settings:
|   |       ├── VPN type: openvpn
|   |       ├── Hostnames: ca-tor.prod.surfshark.com
|   |       └── OpenVPN server selection settings:
|   |           └── Protocol: UDP
|   └── OpenVPN settings:
|       ├── OpenVPN version: 2.5
|       ├── User: [set]
|       ├── Password: [set]
|       ├── Network interface: tun0
|       ├── Run OpenVPN as: root
|       └── Verbosity level: 1
├── DNS settings:
|   └── Keep existing nameserver(s): yes
├── Firewall settings:
|   └── Enabled: no
├── Log settings:
|   └── Log level: INFO
├── Health settings:
|   ├── Server listening address: 127.0.0.1:9999
|   ├── Target address: cloudflare.com:443
|   ├── Duration to wait after success: 5s
|   ├── Read header timeout: 100ms
|   ├── Read timeout: 500ms
|   └── VPN wait durations:
|       ├── Initial duration: 6s
|       └── Additional duration: 5s
├── Shadowsocks server settings:
|   └── Enabled: no
├── HTTP proxy settings:
|   └── Enabled: no
├── Control server settings:
|   ├── Listening address: :8000
|   └── Logging: yes
├── OS Alpine settings:
|   ├── Process UID: 568
|   ├── Process GID: 568
|   └── Timezone: america/toronto
├── Public IP settings:
|   ├── Fetching: every 12h0m0s
|   ├── IP file path: /tmp/gluetun/ip
|   └── Public IP data API: ipinfo
└── Version settings:
└── Enabled: yes
2024-04-10T23:10:00-04:00 INFO [routing] default route found: interface eth0, gateway 172.16.0.1, assigned IP 172.16.0.110 and family v4
2024-04-10T23:10:00-04:00 INFO [routing] adding route for 0.0.0.0/0
2024-04-10T23:10:00-04:00 INFO [firewall] firewall disabled, only updating allowed subnets internal list
2024-04-10T23:10:00-04:00 INFO [routing] default route found: interface eth0, gateway 172.16.0.1, assigned IP 172.16.0.110 and family v4
2024-04-10T23:10:00-04:00 INFO TUN device is not available: open /dev/net/tun: no such file or directory; creating it...
2024-04-10T23:10:00-04:00 WARN [dns] ⚠️⚠️⚠️  keeping the default container nameservers, this will likely leak DNS traffic outside the VPN and go through your container network DNS outside the VPN tunnel!
2024-04-10T23:10:00-04:00 INFO [http server] http server listening on [::]:8000
2024-04-10T23:10:00-04:00 INFO [firewall] firewall disabled, only updating internal VPN connection
2024-04-10T23:10:00-04:00 INFO [healthcheck] listening on 127.0.0.1:9999
2024-04-10T23:10:00-04:00 INFO [openvpn] OpenVPN 2.5.8 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Nov  2 2022
2024-04-10T23:10:00-04:00 INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2024-04-10T23:10:00-04:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]37.19.211.92:1194
2024-04-10T23:10:00-04:00 INFO [openvpn] UDP link local: (not bound)
2024-04-10T23:10:00-04:00 INFO [openvpn] UDP link remote: [AF_INET]37.19.211.92:1194
2024-04-10T23:10:00-04:00 INFO [healthcheck] healthy!
2024-04-10T23:10:00-04:00 INFO [openvpn] [ca-tor-v082.prod.surfshark.com] Peer Connection Initiated with [AF_INET]37.19.211.92:1194
2024-04-10T23:10:01-04:00 ERROR [openvpn] Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:7: block-outside-dns (2.5.8)
2024-04-10T23:10:01-04:00 INFO [openvpn] TUN/TAP device tun0 opened
2024-04-10T23:10:01-04:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2024-04-10T23:10:01-04:00 INFO [openvpn] /sbin/ip link set dev tun0 up
2024-04-10T23:10:01-04:00 INFO [openvpn] /sbin/ip addr add dev tun0 10.8.8.18/24
2024-04-10T23:10:01-04:00 INFO [openvpn] UID set to nonrootuser
2024-04-10T23:10:01-04:00 INFO [openvpn] Initialization Sequence Completed
2024-04-10T23:10:16-04:00 INFO [healthcheck] program has been unhealthy for 6s: restarting VPN
2024-04-10T23:10:16-04:00 INFO [healthcheck] 👉 See https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md
2024-04-10T23:10:16-04:00 INFO [healthcheck] DO NOT OPEN AN ISSUE UNLESS YOU READ AND TRIED EACH POSSIBLE SOLUTION
2024-04-10T23:10:16-04:00 INFO [vpn] stopping
2024-04-10T23:10:16-04:00 ERROR [vpn] cannot get version information: Get "https://api.github.com/repos/qdm12/gluetun/releases": context canceled
2024-04-10T23:10:16-04:00 ERROR [ip getter] Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers) - retrying in 5s
2024-04-10T23:10:36-04:00 ERROR [ip getter] Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers) - retrying in 10s
2024-04-10T23:11:01-04:00 ERROR [ip getter] Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers) - retrying in 20s
2024-04-10T23:11:36-04:00 ERROR [ip getter] Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers) - retrying in 40s
2024-04-10T23:12:31-04:00 ERROR [ip getter] Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers) - retrying in 1m20s
2024-04-10T23:14:06-04:00 ERROR [ip getter] Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers) - retrying in 2m40s
joestump commented 1 month ago

Something is wrong with the VPN configuration or your firewall/network. This was happening to me when I had incorrectly configured servers (I wasn't updating the servers.json list regularly), which severed my internet connection from the container, which resulted in timeouts.

See the error here:

2024-04-10T23:10:16-04:00 INFO [healthcheck] program has been unhealthy for 6s: restarting VPN

After that you see HTTP failures to both ipinfo.io and api.github.com.