tprasadtp / protonvpn-docker

ProtonVPN Wireguard Docker Image. Supports ARMv8 (64-bit ) and x86 (64-Bit).
GNU General Public License v3.0
278 stars 25 forks source link

Unable to login - authentication failed #67

Closed wbt11a closed 3 years ago

wbt11a commented 3 years ago

I am running the following:

docker run --rm --detach --name=protonvpn --privileged --device=/dev/net/tun --cap-add=NET_ADMIN --env PROTONVPN_USERNAME="mylogin@protonmail.com" --env PROTONVPN_PASSWORD="mypassword" --env PROTONVPN_TIER=2 --env PROTONVPN_SERVER=P2P --env PROTONVPN_EXCLUDE_CIDRS=192.168.0.0/32 --env PROTONVPN_CHECK_URL="https://ipinfo.prasadt.workers.dev" ghcr.io/tprasadtp/protonvpn:latest

and getting the following error message no matter what I do:

[Service - RCON] Trying with a fresh connection!

00:23:51 | [Service - CONN] Using Fastest P2P Server 00:24:01 | Connecting to US-FL#35 via UDP... 00:24:01 | [!] Authentication failed. 00:24:01 | [!] Please make sure that your Username and Password is correct. 00:25:01 | [Service - CHCK] Is Service Disconnecting: 0 00:25:01 | [Service - CHCK] Error!! There is no OpenVPN Process!! 00:25:01 | [Service - RCON] Attempting... 00:25:02 | [!] Couldn't find a previous connection 00:25:02 | [!] Please connect normally first 00:25:02 | [Service - RCON] Failure! 00:25:02 | [Service - RCON] Trying with a fresh connection! 00:25:02 | [Service - CONN] Using Fastest P2P Server 00:25:11 | Connecting to US-NY#28 via UDP... 00:25:11 | [!] Authentication failed. 00:25:11 | [!] Please make sure that your Username and Password is correct. 00:26:12 | [Service - CHCK] Is Service Disconnecting: 0 00:26:12 | [Service - CHCK] Error!! There is no OpenVPN Process!! 00:26:12 | [Service - RCON] Attempting... 00:26:12 | [!] Couldn't find a previous connection 00:26:12 | [!] Please connect normally first 00:26:13 | [Service - RCON] Failure! 00:26:13 | [Service - RCON] Trying with a fresh connection! 00:26:13 | [Service - CONN] Using Fastest P2P Server 00:26:23 | Connecting to US-NY#20 via UDP... 00:26:23 | [!] Authentication failed. 00:26:23 | [!] Please make sure that your Username and Password is correct.

I can login with my credentials exactly as typed with no issues otherwise.

Docker is being run with a Terramaster F4-210 NAS. Docker Version: 17.05.6

Had the same results with Docker version 20.10.7, build f0df350 in Ubuntu.

wbt11a commented 3 years ago

Figured it out. Needed to use the OpenVPN credentials found at https://account.protonvpn.com/account#openvpn as opposed to the ProtonVPN credentials.