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

DNS Resolution Failure #2731

Closed
8 tasks done
ThePragmaticArt opened this issue Oct 4, 2023 · 2 comments
Closed
8 tasks done

DNS Resolution Failure #2731

ThePragmaticArt opened this issue Oct 4, 2023 · 2 comments

Comments

@ThePragmaticArt
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

version: '3'

services:
transmission:
image: haugene/transmission-openvpn:latest
container_name: transmission-openvpn
privileged: true
healthcheck:
disable: true
dns:
- 8.8.8.8
environment:
- DISABLE_PORT_UPDATER=true
- TRANSMISSION_PEER_PORT_RANDOM_ON_START=true
- TRANSMISSION_PORT_FORWARDING_ENABLED=true
- TRANSMISSION_DOWNLOAD_QUEUE_SIZE=30
- TRANSMISSION_QUEUE_STALLED_ENABLED=true
- TRANSMISSION_QUEUE_STALLED_MINUTES=30
- TRANSMISSION_SEED_QUEUE_ENABLED=true
- TRANSMISSION_IDLE_SEEDING_LIMIT=30
- TRANSMISSION_IDLE_SEEDING_LIMIT_ENABLED=true
- OPENVPN_PROVIDER=PIA
- OPENVPN_USERNAME=
- OPENVPN_PASSWORD=
- OPENVPN_CONFIG=us_florida
- PIA_OPENVPN_CONFIG_BUNDLE=openvpn
- LOCAL_NETWORK=192.168.0.0/16
- NO_LOGS=false
- TRANSMISSION_SCRAPE_PAUSED_TORRENTS_ENABLED=false
ports:
- '9091:9091'
volumes:
- /Volumes//data/:/data
- /Volumes//config/:/config
cap_add:
- NET_ADMIN
logging:
driver: json-file
options:
max-size: 10m
restart: unless-stopped

Current Behavior

The following loop occurs:

2023-10-04 18:28:06 WARNING: initial DNS resolution test failed
2023-10-04 18:28:06 Creating TUN device /dev/net/tun
2023-10-04 18:28:06 Using OpenVPN provider: PIA
2023-10-04 18:28:06 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:28:06 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:28:06 Executing setup script for PIA
2023-10-04 18:28:06 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.La4GS5W2fd
2023-10-04 18:28:14 Starting container with revision: 52d432ddca774080040627e3b6ec61fc9e6b0ac7
2023-10-04 18:28:14 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:28:18 WARNING: initial DNS resolution test failed

After starting up the container. The web portion is not available external of the docker container.

Expected Behavior

Docker behavior starts as expected.

How have you tried to solve the problem?

When walking through the debugging step here, the following step seems to fail where the web UI is not accessible:

docker run --rm -it --cap-add=NET_ADMIN \
  -p 9091:9091 \
  -e LOCAL_NETWORK=192.168.0.0/16 \
  -e OPENVPN_PROVIDER=PIA \
  -e OPENVPN_CONFIG=france \
  -e OPENVPN_USERNAME=username \
  -e OPENVPN_PASSWORD=password \
  -e DISABLE_PORT_UPDATER=true \
  haugene/transmission-openvpn

This is regardless of changing to another port that's not in use.

Log output

2023-10-04 18:26:23 Starting container with revision: 52d432d
2023-10-04 18:26:23 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:26:27 WARNING: initial DNS resolution test failed
2023-10-04 18:26:27 Creating TUN device /dev/net/tun
2023-10-04 18:26:27 Using OpenVPN provider: PIA
2023-10-04 18:26:27 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:26:27 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:26:27 Executing setup script for PIA
2023-10-04 18:26:27 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.gvO6eEmWSM
2023-10-04 18:26:36 Starting container with revision: 52d432d
2023-10-04 18:26:36 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:26:40 WARNING: initial DNS resolution test failed
2023-10-04 18:26:40 Creating TUN device /dev/net/tun
2023-10-04 18:26:40 Using OpenVPN provider: PIA
2023-10-04 18:26:40 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:26:40 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:26:40 Executing setup script for PIA
2023-10-04 18:26:40 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.l1bxKNASKV
2023-10-04 18:26:48 Starting container with revision: 52d432d
2023-10-04 18:26:48 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:26:52 WARNING: initial DNS resolution test failed
2023-10-04 18:26:52 Creating TUN device /dev/net/tun
2023-10-04 18:26:52 Using OpenVPN provider: PIA
2023-10-04 18:26:52 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:26:52 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:26:52 Executing setup script for PIA
2023-10-04 18:26:52 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.psWvjlff4Z
2023-10-04 18:27:00 Starting container with revision: 52d432d
2023-10-04 18:27:00 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:27:04 WARNING: initial DNS resolution test failed
2023-10-04 18:27:04 Creating TUN device /dev/net/tun
2023-10-04 18:27:04 Using OpenVPN provider: PIA
2023-10-04 18:27:04 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:27:04 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:27:04 Executing setup script for PIA
2023-10-04 18:27:04 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.ZSnuGFCHLF
2023-10-04 18:27:13 Starting container with revision: 52d432d
2023-10-04 18:27:13 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:27:17 WARNING: initial DNS resolution test failed
2023-10-04 18:27:17 Creating TUN device /dev/net/tun
2023-10-04 18:27:17 Using OpenVPN provider: PIA
2023-10-04 18:26:35 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:26:48 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:27:00 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:27:12 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:27:25 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:27:37 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:27:49 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:28:02 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:28:14 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:28:26 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:28:39 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:28:51 curl: (6) Could not resolve host: www.privateinternetaccess.com
2023-10-04 18:27:17 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:27:17 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:27:17 Executing setup script for PIA
2023-10-04 18:27:17 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.h69mukSh9l
2023-10-04 18:27:25 Starting container with revision: 52d432d
2023-10-04 18:27:25 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:27:29 WARNING: initial DNS resolution test failed
2023-10-04 18:27:29 Creating TUN device /dev/net/tun
2023-10-04 18:27:29 Using OpenVPN provider: PIA
2023-10-04 18:27:29 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:27:29 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:27:29 Executing setup script for PIA
2023-10-04 18:27:29 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.W4Nv60ZDxC
2023-10-04 18:27:37 Starting container with revision: 52d432d
2023-10-04 18:27:37 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:27:41 WARNING: initial DNS resolution test failed
2023-10-04 18:27:41 Creating TUN device /dev/net/tun
2023-10-04 18:27:41 Using OpenVPN provider: PIA
2023-10-04 18:27:41 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:27:41 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:27:41 Executing setup script for PIA
2023-10-04 18:27:41 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.o6tRFMsHfe
2023-10-04 18:27:50 Starting container with revision: 52d432d
2023-10-04 18:27:50 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:27:54 WARNING: initial DNS resolution test failed
2023-10-04 18:27:54 Creating TUN device /dev/net/tun
2023-10-04 18:27:54 Using OpenVPN provider: PIA
2023-10-04 18:27:54 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:27:54 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:27:54 Executing setup script for PIA
2023-10-04 18:27:54 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.G08IZRFdcK
2023-10-04 18:28:02 Starting container with revision: 52d432d
2023-10-04 18:28:02 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:28:06 WARNING: initial DNS resolution test failed
2023-10-04 18:28:06 Creating TUN device /dev/net/tun
2023-10-04 18:28:06 Using OpenVPN provider: PIA
2023-10-04 18:28:06 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:28:06 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:28:06 Executing setup script for PIA
2023-10-04 18:28:06 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.La4GS5W2fd
2023-10-04 18:28:14 Starting container with revision: 52d432d
2023-10-04 18:28:14 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:28:18 WARNING: initial DNS resolution test failed
2023-10-04 18:28:18 Creating TUN device /dev/net/tun
2023-10-04 18:28:18 Using OpenVPN provider: PIA
2023-10-04 18:28:18 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:28:18 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:28:18 Executing setup script for PIA
2023-10-04 18:28:18 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.hMs0rBq87L
2023-10-04 18:28:27 Starting container with revision: 52d432d
2023-10-04 18:28:27 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:28:31 WARNING: initial DNS resolution test failed
2023-10-04 18:28:31 Creating TUN device /dev/net/tun
2023-10-04 18:28:31 Using OpenVPN provider: PIA
2023-10-04 18:28:31 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:28:31 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:28:31 Executing setup script for PIA
2023-10-04 18:28:31 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.rJw2nXjLdj
2023-10-04 18:28:39 Starting container with revision: 52d432d
2023-10-04 18:28:39 TRANSMISSION_HOME is currently set to: /config/transmission-home
2023-10-04 18:28:43 WARNING: initial DNS resolution test failed
2023-10-04 18:28:43 Creating TUN device /dev/net/tun
2023-10-04 18:28:43 Using OpenVPN provider: PIA
2023-10-04 18:28:43 Running with VPN_CONFIG_SOURCE auto
2023-10-04 18:28:43 Provider PIA has a bundled setup script. Defaulting to internal config
2023-10-04 18:28:43 Executing setup script for PIA
2023-10-04 18:28:43 Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.b26Z9afYx8
2023-10-04 18:28:51 Starting container with revision: 52d432d
2023-10-04 18:28:51 TRANSMISSION_HOME is currently set to: /config/transmission-home

HW/SW Environment

- OS: macOS Sonoma 14.0
- Docker: 24.0.6, build ed223bc

Anything else?

This image stopped working after updating to macOS Sonoma. Other images without split tunneling like behavior work appropriately.

@pkishino
Copy link
Collaborator

pkishino commented Oct 5, 2023

Strongly suspect this is same issue as #2723

@ThePragmaticArt
Copy link
Author

Strongly suspect this is same issue as #2723

You’re 100% correct and this can be closed

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

2 participants