Skip to content

Bug: unhealthy due to lookup: server misbehaving #2027

Open
@darkkent8

Description

@darkkent8

Is this urgent?

None

Host OS

Debian 12

CPU arch

x86_64

VPN service provider

VPNUnlimited

What are you using to run the container

Portainer

What is the version of Gluetun

v3.37.0

What's the problem 🤔

Not sure what the issue is, but i get stuck in a loop where its trying to do a health check, it says it is healthy then loops to being unhealthy. Any help would be appreciated. Please let me know ifyou need any other info from me at all!

OS Information | linux x86_64 Debian GNU/Linux 12 (bookworm)
Kernel Version | 6.1.0-16-amd64

2024-01-02T10:01:57Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving - retrying in 10s

2024-01-02T10:01:46Z INFO [healthcheck] unhealthy: dialing: dial tcp4: lookup cloudflare.com on 127.0.0.1:53: server misbehaving

Share your logs (at least 10 lines)

├── 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





2024-01-02T10:01:28Z INFO [healthcheck] healthy!
2024-01-02T10:01:29Z INFO [dns] downloading DNS over TLS cryptographic files
2024-01-02T10:01:29Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: read udp 10.102.227.40:56058->1.1.1.1:53: i/o timeout - retrying in 5s
2024-01-02T10:01:35Z INFO [ip getter] Public IP address is 51.159.99.137 (France, Île-de-France, Paris)
2024-01-02T10:01:35Z INFO [ip getter] Public IP address is 51.159.99.137 (France, Île-de-France, Paris)
2024-01-02T10:01:36Z INFO [dns] downloading hostnames and IP block lists
2024-01-02T10:01:36Z INFO [dns] init module 0: validator
2024-01-02T10:01:36Z INFO [dns] init module 1: iterator
2024-01-02T10:01:36Z INFO [dns] start of service (unbound 1.17.1).
2024-01-02T10:01:37Z INFO [dns] generate keytag query _ta-4a5c-4f66. NULL IN
2024-01-02T10:01:38Z INFO [dns] ready
2024-01-02T10:01:46Z INFO [healthcheck] unhealthy: dialing: dial tcp4: lookup cloudflare.com on 127.0.0.1:53: server misbehaving
2024-01-02T10:01:52Z INFO [healthcheck] program has been unhealthy for 6s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2024-01-02T10:01:52Z INFO [vpn] stopping
2024-01-02T10:01:52Z INFO [vpn] starting
2024-01-02T10:01:52Z INFO [firewall] allowing VPN connection...
2024-01-02T10:01:52Z INFO [wireguard] Using available kernelspace implementation
2024-01-02T10:01:52Z INFO [wireguard] Connecting to 51.159.99.137:15294
2024-01-02T10:01:52Z INFO [wireguard] Wireguard setup is complete. Note Wireguard is a silent protocol and it may or may not work, without giving any error message. Typically i/o timeout errors indicate the Wireguard connection is not working.
2024-01-02T10:01:52Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving - retrying in 5s
2024-01-02T10:01:57Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving - retrying in 10s
2024-01-02T10:02:03Z INFO [healthcheck] program has been unhealthy for 11s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2024-01-02T10:02:03Z INFO [vpn] stopping
2024-01-02T10:02:03Z INFO [vpn] starting
2024-01-02T10:02:03Z INFO [firewall] allowing VPN connection...
2024-01-02T10:02:03Z INFO [wireguard] Using available kernelspace implementation
2024-01-02T10:02:03Z INFO [wireguard] Connecting to 51.159.99.137:15294
2024-01-02T10:02:03Z INFO [wireguard] Wireguard setup is complete. Note Wireguard is a silent protocol and it may or may not work, without giving any error message. Typically i/o timeout errors indicate the Wireguard connection is not working.
2024-01-02T10:02:07Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving - retrying in 20s
2024-01-02T10:02:19Z INFO [healthcheck] program has been unhealthy for 16s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2024-01-02T10:02:19Z INFO [vpn] stopping
2024-01-02T10:02:19Z INFO [vpn] starting
2024-01-02T10:02:19Z INFO [firewall] allowing VPN connection...
2024-01-02T10:02:19Z INFO [wireguard] Using available kernelspace implementation
2024-01-02T10:02:19Z INFO [wireguard] Connecting to 51.159.99.137:15294
2024-01-02T10:02:19Z INFO [wireguard] Wireguard setup is complete. Note Wireguard is a silent protocol and it may or may not work, without giving any error message. Typically i/o timeout errors indicate the Wireguard connection is not working.

Share your configuration

version: "3"
services:
  gluetun:
    image: qmcgaw/gluetun:latest
    # v3.35.0
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 253:253/tcp # VPN_ENDPOINT_PORT
      - 8888:8888/tcp # HTTP proxy
      - 8388:8388/tcp # Shadowsocks
      - 8388:8388/udp # Shadowsocks
      # - 1080:1080/tcp # go socks 5 
    environment:
      - VPN_SERVICE_PROVIDER=custom
      - VPN_TYPE=wireguard
      - VPN_ENDPOINT_IP=51.159.99.137
      - VPN_ENDPOINT_PORT=253
      - WIREGUARD_PUBLIC_KEY= ****
      - WIREGUARD_PRIVATE_KEY= ****
      - WIREGUARD_PRESHARED_KEY= ****
      - WIREGUARD_ADDRESSES=10.102.227.40/32
      - HTTPPROXY=on
      - e SHADOWSOCKS=on
    volumes:
      - /gluetun:/gluetun

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions