Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[openvpn] OpenVPN tried to add an IP route which already exists (RTNETLINK answers: File exists) #2852

Closed
7 of 8 tasks
qw3r7yju4 opened this issue Jun 8, 2024 · 0 comments

Comments

@qw3r7yju4
Copy link

Is there a pinned issue for this?

  • I have read the pinned issues and could not find my issue

Is there an existing or similar issue/discussion for this?

  • I have searched the existing issues
  • I have searched the existing discussions

Is there any comment in the documentation for this?

  • I have read the documentation, especially the FAQ and Troubleshooting parts

Is this related to a provider?

  • I have checked the provider repo for issues
  • My issue is NOT related to a provider

Are you using the latest release?

  • I am using the latest release

Have you tried using the dev branch latest?

  • I have tried using dev branch

Docker run config used

docker run
-d
--name='gluetunvpn'
--net='bridge'
-e TZ="America/New_York"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Mediaserver"
-e HOST_CONTAINERNAME="gluetunvpn"
-e 'TZ'='America/New_York'
-e 'VPN_SERVICE_PROVIDER'='expressvpn'
-e 'VPN_TYPE'='openvpn'
-e 'VPN_INTERFACE'='tun0'
-e 'VPN_ENDPOINT_PORT'=''
-e 'VPN_ENDPOINT_IP'=''
-e 'OPENVPN_PROTOCOL'='udp'
-e 'OPENVPN_USER'='username'
-e 'OPENVPN_PASSWORD'='password'
-e 'OPENVPN_VERSION'='2.5'
-e 'OPENVPN_VERBOSITY'='1'
-e 'OPENVPN_FLAGS'=''
-e 'OPENVPN_CIPHERS'=''
-e 'OPENVPN_AUTH'=''
-e 'OPENVPN_PROCESS_USER'='no'
-e 'OPENVPN_IPV6'='off'
-e 'OPENVPN_CUSTOM_CONFIG'=''
-e 'WIREGUARD_IMPLEMENTATION'='auto'
-e 'WIREGUARD_PRIVATE_KEY'=''
-e 'WIREGUARD_PRESHARED_KEY'=''
-e 'WIREGUARD_PUBLIC_KEY'=''
-e 'WIREGUARD_ADDRESSES'=''
-e 'SERVER_REGIONS'=''
-e 'SERVER_COUNTRIES'='USA'
-e 'SERVER_CITIES'='Miami'
-e 'SERVER_NAMES'=''
-e 'SERVER_HOSTNAMES'=''
-e 'FIREWALL'='on'
-e 'FIREWALL_VPN_INPUT_PORTS'=''
-e 'FIREWALL_INPUT_PORTS'=''
-e 'FIREWALL_OUTBOUND_SUBNETS'='192.168.1.0/24'
-e 'FIREWALL_DEBUG'='off'
-e 'LOG_LEVEL'='info'
-e 'DOT'='on'
-e 'DOT_PROVIDERS'='cloudflare'
-e 'DOT_PRIVATE_ADDRESS'='127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16,::1/128,fc00::/7,fe80::/10,::ffff:7f00:1/104,::ffff:a00:0/104,::ffff:a9fe:0/112,::ffff:ac10:0/108,::ffff:c0a8:0/112'
-e 'DOT_VERBOSITY'='1'
-e 'DOT_VERBOSITY_DETAILS'='0'
-e 'DOT_VALIDATION_LOGLEVEL'='0'
-e 'DOT_CACHING'='on'
-e 'DOT_IPV6'='off'
-e 'BLOCK_MALICIOUS'='on'
-e 'BLOCK_SURVEILLANCE'='off'
-e 'BLOCK_ADS'='off'
-e 'UNBLOCK'=''
-e 'DNS_UPDATE_PERIOD'='24h'
-e 'DNS_ADDRESS'=''
-e 'DNS_KEEP_NAMESERVER'='on'
-e 'HTTPPROXY'='off'
-e 'HTTPPROXY_LOG'='off'
-e 'HTTPPROXY_USER'=''
-e 'HTTPPROXY_PASSWORD'=''
-e 'HTTPPROXY_STEALTH'='off'
-e 'SHADOWSOCKS'='off'
-e 'SHADOWSOCKS_LOG'='off'
-e ':8388'=':38388'
-e 'SHADOWSOCKS_PASSWORD'=''
-e 'SHADOWSOCKS_CIPHER'='chacha20-ietf-poly1305'
-e 'HEALTH_SERVER_ADDRESS'='127.0.0.1:9999'
-e 'HEALTH_TARGET_ADDRESS'='github.com:443'
-e 'HEALTH_VPN_DURATION_INITIAL'='6s'
-e 'HEALTH_VPN_DURATION_ADDITION'='5s'
-e 'UPDATER_PERIOD'='0'
-e 'PUBLICIP_FILE'='/gluetun/ip'
-e 'PUBLICIP_PERIOD'='12h'
-e 'VERSION_INFORMATION'='on'
-e 'HTTP_CONTROL_SERVER_LOG'='on'
-e 'PUID'='1000'
-e 'PGID'='1000'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='http:https://[IP]:[PORT:8000]'
-l net.unraid.docker.icon='https://raw.githubusercontent.com/qdm12/gluetun/master/doc/logo_256.png'
-p '38888:8888/tcp'
-p '8113:8080/tcp'
-p '8000:8000/tcp'
-v '/mnt/user/appdata/gluetun':'/gluetun':'rw'
--cap-add=NET_ADMIN
--restart always 'qmcgaw/gluetun'
636ecea21c84542124db438e56307814ade45b93789826456f66020dacb715c8

Current Behavior

VPN is dead and log repeats:
2024-06-07T20:34:50-04:00 INFO [healthcheck] program has been unhealthy for 36s: restarting VPN
2024-06-07T20:34:50-04:00 INFO [healthcheck] 👉 See https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md
2024-06-07T20:34:50-04:00 INFO [healthcheck] DO NOT OPEN AN ISSUE UNLESS YOU READ AND TRIED EACH POSSIBLE SOLUTION
2024-06-07T20:34:50-04:00 INFO [vpn] stopping
2024-06-07T20:34:50-04:00 INFO [vpn] starting
2024-06-07T20:34:50-04:00 INFO [firewall] allowing VPN connection...
2024-06-07T20:34:50-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-06-07T20:34:50-04:00 INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2024-06-07T20:34:50-04:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]191.101.177.213:1195
2024-06-07T20:34:50-04:00 INFO [openvpn] UDP link local: (not bound)
2024-06-07T20:34:50-04:00 INFO [openvpn] UDP link remote: [AF_INET]191.101.177.213:1195
2024-06-07T20:34:50-04:00 WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1553', remote='link-mtu 1606'
2024-06-07T20:34:50-04:00 WARN [openvpn] 'auth' is used inconsistently, local='auth [null-digest]', remote='auth SHA512'
2024-06-07T20:34:50-04:00 WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2024-06-07T20:34:50-04:00 INFO [openvpn] [Server-10781-0a] Peer Connection Initiated with [AF_INET]191.101.177.213:1195
2024-06-07T20:34:51-04:00 INFO [openvpn] TUN/TAP device tun0 opened
2024-06-07T20:34:51-04:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2024-06-07T20:34:51-04:00 INFO [openvpn] /sbin/ip link set dev tun0 up
2024-06-07T20:34:51-04:00 INFO [openvpn] /sbin/ip addr add dev tun0 local 10.169.27.137 peer 10.169.27.138
2024-06-07T20:34:51-04:00 ERROR [openvpn] OpenVPN tried to add an IP route which already exists (RTNETLINK answers: File exists)
2024-06-07T20:34:51-04:00 WARN [openvpn] Previous error details: Linux route add command failed: external program exited with error status: 2
2024-06-07T20:34:51-04:00 INFO [openvpn] UID set to nonrootuser
2024-06-07T20:34:51-04:00 INFO [openvpn] Initialization Sequence Completed
2024-06-07T20:35:06-04:00 ERROR [vpn] getting public IP address information: fetching information: Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Expected Behavior

VPN atleast gets active and qbitorrent gets network access

How have you tried to solve the problem?

I just updated to newest release.

Log output

2024-06-07T20:34:50-04:00 INFO [healthcheck] program has been unhealthy for 36s: restarting VPN
2024-06-07T20:34:50-04:00 INFO [healthcheck] 👉 See https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md
2024-06-07T20:34:50-04:00 INFO [healthcheck] DO NOT OPEN AN ISSUE UNLESS YOU READ AND TRIED EACH POSSIBLE SOLUTION
2024-06-07T20:34:50-04:00 INFO [vpn] stopping
2024-06-07T20:34:50-04:00 INFO [vpn] starting
2024-06-07T20:34:50-04:00 INFO [firewall] allowing VPN connection...
2024-06-07T20:34:50-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-06-07T20:34:50-04:00 INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2024-06-07T20:34:50-04:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]191.101.177.213:1195
2024-06-07T20:34:50-04:00 INFO [openvpn] UDP link local: (not bound)
2024-06-07T20:34:50-04:00 INFO [openvpn] UDP link remote: [AF_INET]191.101.177.213:1195
2024-06-07T20:34:50-04:00 WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1553', remote='link-mtu 1606'
2024-06-07T20:34:50-04:00 WARN [openvpn] 'auth' is used inconsistently, local='auth [null-digest]', remote='auth SHA512'
2024-06-07T20:34:50-04:00 WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2024-06-07T20:34:50-04:00 INFO [openvpn] [Server-10781-0a] Peer Connection Initiated with [AF_INET]191.101.177.213:1195
2024-06-07T20:34:51-04:00 INFO [openvpn] TUN/TAP device tun0 opened
2024-06-07T20:34:51-04:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2024-06-07T20:34:51-04:00 INFO [openvpn] /sbin/ip link set dev tun0 up
2024-06-07T20:34:51-04:00 INFO [openvpn] /sbin/ip addr add dev tun0 local 10.169.27.137 peer 10.169.27.138
2024-06-07T20:34:51-04:00 ERROR [openvpn] OpenVPN tried to add an IP route which already exists (RTNETLINK answers: File exists)
2024-06-07T20:34:51-04:00 WARN [openvpn] Previous error details: Linux route add command failed: external program exited with error status: 2
2024-06-07T20:34:51-04:00 INFO [openvpn] UID set to nonrootuser
2024-06-07T20:34:51-04:00 INFO [openvpn] Initialization Sequence Completed
2024-06-07T20:35:06-04:00 ERROR [vpn] getting public IP address information: fetching information: Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

HW/SW Environment

- OS:UnRAID
- Docker:Yes

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant