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

Bug: Windscribe SERVER_HOSTNAME Issue #379

Closed garrettcorn closed 3 years ago

garrettcorn commented 3 years ago

Host OS (approximate answer is fine too): Ubuntu 20.04

Is this urgent?: No

What VPN provider are you using: Windscribe

What are you using to run your container?: Docker Compose

version: "3.7"
services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    volumes:
      - /path/to/gluetonConfigLoc:/gluetun
      - /path/to/gluetonPortForwardLoc:/tmp/gluetun/forwarded_port
    environment:
      # More variables are available, see the readme table https://github.com/qdm12/gluetun/wiki/Environment-variables#vpn
      - VPNSP=windscribe
      # Timezone for accurate logs times
      - TZ=America/Denver
      - PUID=1000
      - PGID=1000
      # Username and Password
      - OPENVPN_USER=vpnUser
      - OPENVPN_PASSWORD=vpnPass
    restart: always

What is the version of the program (See the line at the top of your logs)

Running version latest built on 2021-02-11T13:53:55Z (commit f08a031)

What's the problem πŸ€”

Windscribe provider unable to determine server to use

Share your logs...

=========================================
================ Gluetun ================
=========================================
==== A mix of OpenVPN, DNS over TLS, ====
======= Shadowsocks and HTTP proxy ======
========= all glued up with Go ==========
=========================================
=========== For tunneling to ============
======== your favorite VPN server =======
=========================================
=== Made with ❀️  by github.com/qdm12 ====
=========================================

Running version latest built on 2021-02-11T13:53:55Z (commit f08a031)

πŸ”§  Need help? https://github.com/qdm12/gluetun/issues/new
πŸ’»  Email? quentin.mcgaw@gmail.com
β˜•  Slack? Join from the Slack button on Github
πŸ’Έ  Help me? https://github.com/sponsors/qdm12
2021-02-11T09:15:38.976-0700    INFO    OpenVPN version: 2.4.10
2021-02-11T09:15:38.981-0700    INFO    Unbound version: 1.10.1
2021-02-11T09:15:38.983-0700    INFO    IPtables version: v1.8.4
2021-02-11T09:15:38.985-0700    WARN    configuration: You are using the old environment variable HOSTNAME, please consider changing it to SERVER_HOSTNAME
2021-02-11T09:15:38.985-0700    ERROR   environment variable "SERVER_HOSTNAME": invalid values found: value "5a697b862b96" at position 1: possible values are: al-002.whiskergalaxy.com, ar-008.whiskergalaxy.com, au-011.whiskergalaxy.com, au-008.whiskergalaxy.com, au-007.whiskergalaxy.com, au-014.whiskergalaxy.com, au-010.whiskergalaxy.com, au-005.whiskergalaxy.com, au-013.whiskergalaxy.com, au-004.whiskergalaxy.com, au-012.whiskergalaxy.com, au-009.whiskergalaxy.com, au-015.whiskergalaxy.com, au-016.whiskergalaxy.com, at-001.whiskergalaxy.com, at-002.whiskergalaxy.com, az-001.whiskergalaxy.com, be-001.whiskergalaxy.com, be-002.whiskergalaxy.com, ba-001.whiskergalaxy.com, br-004.whiskergalaxy.com, br-005.whiskergalaxy.com, br-006.whiskergalaxy.com, bg-001.whiskergalaxy.com, ca-029.whiskergalaxy.com, ca-004.whiskergalaxy.com, ca-027.whiskergalaxy.com, ca-028.whiskergalaxy.com, ca-032.whiskergalaxy.com, ca-033.whiskergalaxy.com, ca-034.whiskergalaxy.com, ca-002.whiskergalaxy.com, ca-009.whiskergalaxy.com, ca-017.whiskergalaxy.com, ca-025.whiskergalaxy.com, ca-026.whiskergalaxy.com, ca-030.whiskergalaxy.com, ca-west-005.whiskergalaxy.com, ca-west-011.whiskergalaxy.com, ca-west-012.whiskergalaxy.com, ca-west-016.whiskergalaxy.com, ca-west-017.whiskergalaxy.com, ca-west-019.whiskergalaxy.com, cl-001.whiskergalaxy.com, cl-002.whiskergalaxy.com, co-001.whiskergalaxy.com, co-002.whiskergalaxy.com, hr-002.whiskergalaxy.com, cy-001.whiskergalaxy.com, cz-002.whiskergalaxy.com, cz-001.whiskergalaxy.com, dk-001.whiskergalaxy.com, dk-002.whiskergalaxy.com, ee-001.whiskergalaxy.com, ee-002.whiskergalaxy.com, aq-001.whiskergalaxy.com, aq-002.whiskergalaxy.com, fi-002.whiskergalaxy.com, fi-003.whiskergalaxy.com, fi-004.whiskergalaxy.com, fr-004.whiskergalaxy.com, fr-005.whiskergalaxy.com, fr-008.whiskergalaxy.com, fr-009.whiskergalaxy.com, fr-011.whiskergalaxy.com, de-003.whiskergalaxy.com, de-006.whiskergalaxy.com, de-009.whiskergalaxy.com, de-010.whiskergalaxy.com, de-011.whiskergalaxy.com, de-012.whiskergalaxy.com, gr-002.whiskergalaxy.com, gr-004.whiskergalaxy.com, gr-005.whiskergalaxy.com, hk-005.whiskergalaxy.com, hk-006.whiskergalaxy.com, hu-001.whiskergalaxy.com, is-001.whiskergalaxy.com, is-002.whiskergalaxy.com, in-005.whiskergalaxy.com, in-006.whiskergalaxy.com, in-007.whiskergalaxy.com, in-009.whiskergalaxy.com, in-008.whiskergalaxy.com, id-002.whiskergalaxy.com, ie-001.whiskergalaxy.com, ie-002.whiskergalaxy.com, ie-003.whiskergalaxy.com, il-002.whiskergalaxy.com, il-001.whiskergalaxy.com, it-001.whiskergalaxy.com, it-004.whiskergalaxy.com, it-005.whiskergalaxy.com, it-003.whiskergalaxy.com, it-006.whiskergalaxy.com, jp-004.whiskergalaxy.com, jp-006.whiskergalaxy.com, lv-003.whiskergalaxy.com, lv-004.whiskergalaxy.com, lt-003.whiskergalaxy.com, my-001.whiskergalaxy.com, my-003.whiskergalaxy.com, mx-007.whiskergalaxy.com, mx-008.whiskergalaxy.com, mx-009.whiskergalaxy.com, mx-010.whiskergalaxy.com, md-002.whiskergalaxy.com, nl-001.whiskergalaxy.com, nl-005.whiskergalaxy.com, nl-008.whiskergalaxy.com, nl-011.whiskergalaxy.com, nl-012.whiskergalaxy.com, nl-013.whiskergalaxy.com, nl-014.whiskergalaxy.com, nl-015.whiskergalaxy.com, nz-003.whiskergalaxy.com, nz-002.whiskergalaxy.com, mk-001.whiskergalaxy.com, no-003.whiskergalaxy.com, no-006.whiskergalaxy.com, pa-001.whiskergalaxy.com, pe-002.whiskergalaxy.com, ph-003.whiskergalaxy.com, ph-002.whiskergalaxy.com, pl-002.whiskergalaxy.com, pl-004.whiskergalaxy.com, pl-005.whiskergalaxy.com, pt-002.whiskergalaxy.com, pt-003.whiskergalaxy.com, ro-006.whiskergalaxy.com, ro-008.whiskergalaxy.com, ru-010.whiskergalaxy.com, ru-011.whiskergalaxy.com, ru-005.whiskergalaxy.com, ru-008.whiskergalaxy.com, ru-009.whiskergalaxy.com, ru-012.whiskergalaxy.com, ru-013.whiskergalaxy.com, rs-003.whiskergalaxy.com, sg-003.whiskergalaxy.com, sg-004.whiskergalaxy.com, sg-005.whiskergalaxy.com, sg-006.whiskergalaxy.com, sg-007.whiskergalaxy.com, sk-001.whiskergalaxy.com, za-002.whiskergalaxy.com, za-003.whiskergalaxy.com, za-004.whiskergalaxy.com, kr-001.whiskergalaxy.com, kr-002.whiskergalaxy.com, kr-005.whiskergalaxy.com, es-001.whiskergalaxy.com, es-004.whiskergalaxy.com, es-002.whiskergalaxy.com, es-003.whiskergalaxy.com, se-001.whiskergalaxy.com, se-002.whiskergalaxy.com, se-003.whiskergalaxy.com, ch-001.whiskergalaxy.com, ch-003.whiskergalaxy.com, ch-005.whiskergalaxy.com, ch-006.whiskergalaxy.com, ch-008.whiskergalaxy.com, tw-008.whiskergalaxy.com, tw-009.whiskergalaxy.com, tw-010.whiskergalaxy.com, tw-011.whiskergalaxy.com, th-003.whiskergalaxy.com, th-005.whiskergalaxy.com, th-006.whiskergalaxy.com, tn-001.whiskergalaxy.com, tr-001.whiskergalaxy.com, tr-004.whiskergalaxy.com, tr-006.whiskergalaxy.com, tr-009.whiskergalaxy.com, tr-011.whiskergalaxy.com, us-central-015.whiskergalaxy.com, us-central-016.whiskergalaxy.com, us-central-020.whiskergalaxy.com, us-central-034.whiskergalaxy.com, us-central-046.whiskergalaxy.com, us-central-049.whiskergalaxy.com, us-central-050.whiskergalaxy.com, us-central-051.whiskergalaxy.com, us-central-054.whiskergalaxy.com, us-central-056.whiskergalaxy.com, us-central-014.whiskergalaxy.com, us-central-029.whiskergalaxy.com, us-central-036.whiskergalaxy.com, us-central-037.whiskergalaxy.com, us-central-044.whiskergalaxy.com, us-central-045.whiskergalaxy.com, us-central-055.whiskergalaxy.com, us-central-057.whiskergalaxy.com, us-central-060.whiskergalaxy.com, us-central-043.whiskergalaxy.com, us-central-058.whiskergalaxy.com, us-central-062.whiskergalaxy.com, us-central-063.whiskergalaxy.com, us-east-039.whiskergalaxy.com, us-east-051.whiskergalaxy.com, us-east-045.whiskergalaxy.com, us-east-065.whiskergalaxy.com, us-east-040.whiskergalaxy.com, us-east-015.whiskergalaxy.com, us-east-019.whiskergalaxy.com, us-east-022.whiskergalaxy.com, us-east-047.whiskergalaxy.com, us-east-053.whiskergalaxy.com, us-east-069.whiskergalaxy.com, us-east-071.whiskergalaxy.com, us-east-077.whiskergalaxy.com, us-east-083.whiskergalaxy.com, us-east-078.whiskergalaxy.com, us-east-079.whiskergalaxy.com, us-east-006.whiskergalaxy.com, us-east-012.whiskergalaxy.com, us-east-028.whiskergalaxy.com, us-east-049.whiskergalaxy.com, us-east-067.whiskergalaxy.com, us-east-084.whiskergalaxy.com, us-east-020.whiskergalaxy.com, us-east-054.whiskergalaxy.com, us-east-013.whiskergalaxy.com, us-east-046.whiskergalaxy.com, us-east-050.whiskergalaxy.com, us-east-064.whiskergalaxy.com, us-east-068.whiskergalaxy.com, us-east-052.whiskergalaxy.com, us-east-082.whiskergalaxy.com, us-east-060.whiskergalaxy.com, us-east-061.whiskergalaxy.com, us-east-080.whiskergalaxy.com, us-east-081.whiskergalaxy.com, us-east-048.whiskergalaxy.com, us-east-055.whiskergalaxy.com, us-east-057.whiskergalaxy.com, us-east-058.whiskergalaxy.com, us-west-038.whiskergalaxy.com, us-west-018.whiskergalaxy.com, us-west-030.whiskergalaxy.com, us-west-004.whiskergalaxy.com, us-west-015.whiskergalaxy.com, us-west-027.whiskergalaxy.com, us-west-040.whiskergalaxy.com, us-west-044.whiskergalaxy.com, us-west-047.whiskergalaxy.com, us-west-055.whiskergalaxy.com, us-west-059.whiskergalaxy.com, us-west-060.whiskergalaxy.com, us-west-063.whiskergalaxy.com, us-west-065.whiskergalaxy.com, us-west-066.whiskergalaxy.com, us-west-046.whiskergalaxy.com, us-west-061.whiskergalaxy.com, us-west-048.whiskergalaxy.com, us-west-053.whiskergalaxy.com, us-west-054.whiskergalaxy.com, us-west-052.whiskergalaxy.com, us-west-067.whiskergalaxy.com, us-west-050.whiskergalaxy.com, us-west-051.whiskergalaxy.com, us-west-043.whiskergalaxy.com, us-west-045.whiskergalaxy.com, us-west-056.whiskergalaxy.com, us-west-057.whiskergalaxy.com, us-west-062.whiskergalaxy.com, ua-006.whiskergalaxy.com, ua-007.whiskergalaxy.com, ae-001.whiskergalaxy.com, uk-026.whiskergalaxy.com, uk-007.whiskergalaxy.com, uk-013.whiskergalaxy.com, uk-014.whiskergalaxy.com, uk-015.whiskergalaxy.com, uk-017.whiskergalaxy.com, uk-021.whiskergalaxy.com, uk-022.whiskergalaxy.com, uk-008.whiskergalaxy.com, uk-010.whiskergalaxy.com, uk-025.whiskergalaxy.com, uk-027.whiskergalaxy.com, vn-001.whiskergalaxy.com, vn-002.whiskergalaxy.com, vn-003.whiskergalaxy.com, wf-ca-003.whiskergalaxy.com, wf-ca-004.whiskergalaxy.com, wf-jp-002.whiskergalaxy.com, wf-uk-001.whiskergalaxy.com, wf-uk-006.whiskergalaxy.com, wf-us-010.whiskergalaxy.com, wf-us-011.whiskergalaxy.com, wf-us-012.whiskergalaxy.com, wf-us-013.whiskergalaxy.com, wf-us-014.whiskergalaxy.com, wf-us-015.whiskergalaxy.com
2021-02-11T09:15:38.985-0700    INFO    Shutdown successful

Additional Information

I am able to get gluetun up and running if I manually specify SERVER_HOSTNAME in the docker-compose file as follows.

- SERVER_HOSTNAME=us-central-015.whiskergalaxy.com,us-central-016.whiskergalaxy.com

I tried setting only a REGION, only a CITY, and setting both a REGION and CITY together. They all resulted in the same SERVER_HOSTNAME issue logged above.

Thank you for all of the hard work that goes in to gluetun!

qdm12 commented 3 years ago

Thanks for creating the issue, I would had never found it otherwise πŸ˜„

It was because the old environment variable was HOSTNAME and I wanted to maintain retro-compatibility... But that was using the actual Alpine OS hostname of the container (try docker run --rm alpine:3.12 echo $HOSTNAME). Anyway, I removed it as it's worth breaking the retro-compat with that kind of instability. It's only available in :latest for now, so you might have to re-pull the image (once it's built)

qdm12 commented 3 years ago

I'm encountering cross platform build issues on Github Actions because of Alpine it seems, although it works on my machine, I'll try again in a few hours and comment here once it's built. Sorry for the delay!

qdm12 commented 3 years ago

It finally built πŸ˜‰

garrettcorn commented 3 years ago

Thank you @qdm12!

I will pull down the latest and test it out