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
7.93k stars 367 forks source link

Bug: Gluetun doesn't seem to start on the :Latest Docker tag #1627

Closed bluasoar closed 1 year ago

bluasoar commented 1 year ago

Is this urgent?

No

Host OS

unRAID

CPU arch

x86_64

VPN service provider

AirVPN

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version latest built on 2023-05-29T20:47:00.502Z (commit 4759392)

What's the problem 🤔

While running Gluetun on the Latest build, I get the following errors while the container is building.

I've had the container running for a little over a week now, and there wasn't any issues so I took a look at the Docker tags and seen that it was updated quite recently, so I reverted back to "v3.34" which has solved my issue and it connects to the VPN server no issues. Any help would be greatly appreciated, thank you!

Share your logs

2023-05-30T09:09:15-05:00 INFO [http proxy] listening on :8888
05/30/2023 10:09:15 AM
2023-05-30T09:09:15-05:00 INFO [healthcheck] listening on 127.0.0.1:9999
05/30/2023 10:09:15 AM
2023-05-30T09:09:15-05:00 INFO [firewall] allowing VPN connection...
05/30/2023 10:09:15 AM
2023-05-30T09:09:15-05:00 INFO [wireguard] Using available kernelspace implementation
05/30/2023 10:09:15 AM
2023-05-30T09:09:15-05:00 INFO [wireguard] Connecting to 198.203.28.42:1637
05/30/2023 10:09:15 AM
2023-05-30T09:09:15-05:00 INFO [wireguard] Wireguard is up
05/30/2023 10:09:15 AM
2023-05-30T09:09:15-05:00 INFO [firewall] setting allowed input port 57869 through interface tun0...
05/30/2023 10:09:15 AM
2023-05-30T09:09:15-05:00 INFO [dns over tls] downloading DNS over TLS cryptographic files
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 INFO [healthcheck] program has been unhealthy for 6s: restarting VPN (see https://github.com/qdm12/gluetun/wiki/Healthcheck)
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 INFO [vpn] stopping
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 INFO [firewall] removing allowed port 57869...
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 ERROR [vpn] cannot get version information: Get "https://api.github.com/repos/qdm12/gluetun/commits": context canceled
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 INFO [vpn] starting
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 INFO [firewall] allowing VPN connection...
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 INFO [wireguard] Using available kernelspace implementation
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 INFO [wireguard] Connecting to 198.203.28.42:1637
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 INFO [wireguard] Wireguard is up
05/30/2023 10:09:23 AM
2023-05-30T09:09:23-05:00 INFO [firewall] setting allowed input port 57869 through interface tun0...
05/30/2023 10:09:25 AM
2023-05-30T09:09:25-05:00 WARN [dns over tls] cannot update files: Get "https://www.internic.net/domain/named.root": dial tcp: lookup www.internic.net on 1.1.1.1:53: read udp 10.190.29.188:41846->1.1.1.1:53: i/o timeout
05/30/2023 10:09:25 AM
2023-05-30T09:09:25-05:00 INFO [dns over tls] attempting restart in 10s
05/30/2023 10:09:34 AM
2023-05-30T09:09:34-05:00 INFO [healthcheck] program has been unhealthy for 11s: restarting VPN (see https://github.com/qdm12/gluetun/wiki/Healthcheck)
05/30/2023 10:09:34 AM
2023-05-30T09:09:34-05:00 INFO [vpn] stopping
05/30/2023 10:09:34 AM
2023-05-30T09:09:34-05:00 INFO [firewall] removing allowed port 57869...

Share your configuration

version: "3"
services:
  gluetun:
    image: 'qmcgaw/gluetun:latest'
    container_name: 'gluetun'
    network_mode: 'internal'
    restart: 'always'
    cap_add:
      - 'NET_ADMIN'
    devices:
      - '/dev/net/tun:/dev/net/tun'
    ports:
      - '8888:8888/tcp' #HTTP Proxy
      - '8092:8092' #qBit WebUI
    volumes:
      - '/mnt/cache_appdata/appdata/gluetun:/gluetun'
    environment:
      - 'HTTPPROXY=on'
      - 'VPN_SERVICE_PROVIDER=airvpn'
      - 'VPN_TYPE=wireguard'
      - 'SERVER_CITIES=redacted'
      - 'WIREGUARD_PRIVATE_KEY=redacted'
      - 'WIREGUARD_PRESHARED_KEY=redacted'
      - 'WIREGUARD_ADDRESSES=redacted'
      - 'TZ=EST'
      #- 'FIREWALL_OUTBOUND_SUBNETS='
      - 'FIREWALL_VPN_INPUT_PORTS=57869'
      #- 'UPDATER_PERIOD=24h'
    labels:
      - 'com.centurylinklabs.watchtower.enable=true'
      - 'diun.enable=true'
UniverseXXX commented 1 year ago

+1

elrock commented 1 year ago

+2

frepke commented 1 year ago

@bluasoar you're not using the latest build. Re-pull the image and try again.

qdm12 commented 1 year ago

Thanks @frepke

Indeed latest image got broken yesterday with commit 47593928f9afe6456c53490fd1f1d6c9331730b4 (the commit you are running), and got fixed earlier today with commit 2c30984a10bd0667a715fbd5f77b268a58a0af42

bluasoar commented 1 year ago

Thanks @frepke

Indeed latest image got broken yesterday with commit 4759392 (the commit you are running), and got fixed earlier today with commit 2c30984

Sweet, thank you for the fast reply! just pulled the latest image and everything is good to go now.