Rafficer / linux-cli-community

Linux command-line client for ProtonVPN. Written in Python.
https://protonvpn.com
GNU General Public License v3.0
1.31k stars 198 forks source link

[BUG] Connection fails for every attempt #335

Open rjb752 opened 2 years ago

rjb752 commented 2 years ago

Describe the bug Whatever I try, I can't connect. I have deleted and reinitiated the profile several times. I have used the OpenVPN user and pass displayed in my ProtonVPN account and I have resetted those credentials and tried again. I tried UDP and TCP and I made sure no second connection is active since I have the free plan (which I defined correctly). I can't use the official tool because it is a headless system (Ubuntu docker container). I don't live in a location that blocks any VPN, after all I can connect using the Linux desktop client on another PC in the same network.

To Reproduce Steps to reproduce the behavior:

  1. protonvpn init, enter all data
  2. protonvpn c -f
  3. Wait for "Connection failed" message or "[!] Authentication failed. [!] Please make sure that your Username and Password is correct."

Expected behavior Should connect.

Error Messages/Program Output/Log Messages (~/.pvpn-cli/pvpn-cli.log)

2022-03-12 16:48:52,825    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:89    ^`^t ###########################
2022-03-12 16:48:52,826    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:90    ^`^t ### NEW PROCESS STARTED ###
2022-03-12 16:48:52,826    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:91    ^`^t ###########################
2022-03-12 16:48:52,826    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:92    ^`^t ['/usr/local/bin/protonvpn', 'c', '-f']
2022-03-12 16:48:52,827    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:93    ^`^t USER: root
2022-03-12 16:48:52,827    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:94    ^`^t CONFIG_DIR: /root/.pvpn-cli
2022-03-12 16:48:52,834    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:97    ^`^t Arguments
{'--cc': None, '--fastest': True, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': True, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': False, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False}
2022-03-12 16:48:52,861    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t fastest:145    ^`^t Starting fastest connect
2022-03-12 16:48:52,862    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t disconnect:307    ^`^t Initiating disconnect
2022-03-12 16:48:52,872    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t is_connected:197    ^`^t Checking connection Status. OpenVPN processes: 0
2022-03-12 16:48:52,872    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_dns:608    ^`^t Restoring DNS
2022-03-12 16:48:52,872    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_dns:625    ^`^t No Backupfile found
2022-03-12 16:48:52,872    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_ipv6:688    ^`^t Restoring ip6tables
2022-03-12 16:48:52,873    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_ipv6:703    ^`^t No Backupfile found
2022-03-12 16:48:52,873    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_killswitch:778    ^`^t Restoring iptables
2022-03-12 16:48:52,873    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_killswitch:787    ^`^t No Backupfile found
2022-03-12 16:48:52,873    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t disconnect:347    ^`^t No connection found
2022-03-12 16:48:52,886    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t call_api:38    ^`^t Initiating API Call: https://api.protonvpn.ch/vpn/logicals
2022-03-12 16:48:53,477    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t call_api:67    ^`^t Successful json response
2022-03-12 16:48:53,754    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t pull_server_data:89    ^`^t SERVER_INFO_FILE written
2022-03-12 16:48:53,772    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t pull_server_data:96    ^`^t last_api_call updated
2022-03-12 16:48:53,778    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t get_servers:103    ^`^t Reading servers from file
2022-03-12 16:48:53,812    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t get_fastest_server:172    ^`^t Returning fastest server with pool size 1
2022-03-12 16:48:53,812    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t openvpn_connect:442    ^`^t Initiating OpenVPN connection
2022-03-12 16:48:53,813    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t openvpn_connect:443    ^`^t Connecting to NL-FREE#11 via UDP
2022-03-12 16:48:53,813    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t get_servers:103    ^`^t Reading servers from file
2022-03-12 16:48:53,863    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t render_j2_template:257    ^`^t Rendered /root/.pvpn-cli/connect.ovpn from openvpn_template.j2
2022-03-12 16:48:53,882    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t disconnect:307    ^`^t Initiating disconnect
2022-03-12 16:48:53,889    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t is_connected:197    ^`^t Checking connection Status. OpenVPN processes: 0
2022-03-12 16:48:53,890    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_dns:608    ^`^t Restoring DNS
2022-03-12 16:48:53,890    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_dns:625    ^`^t No Backupfile found
2022-03-12 16:48:53,891    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_ipv6:688    ^`^t Restoring ip6tables
2022-03-12 16:48:53,891    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_ipv6:703    ^`^t No Backupfile found
2022-03-12 16:48:53,891    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_killswitch:778    ^`^t Restoring iptables
2022-03-12 16:48:53,891    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_killswitch:787    ^`^t No Backupfile found
2022-03-12 16:48:53,891    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t disconnect:347    ^`^t No connection found
2022-03-12 16:48:53,892    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t get_ip_info:145    ^`^t Getting IP Information
2022-03-12 16:48:53,893    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t call_api:38    ^`^t Initiating API Call: https://api.protonvpn.ch/vpn/location
2022-03-12 16:48:54,027    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t call_api:67    ^`^t Successful json response
2022-03-12 16:48:54,033    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t openvpn_connect:476    ^`^t OpenVPN process started
2022-03-12 16:49:39,058    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t openvpn_connect:524    ^`^t Connection failed after 45 Seconds
2022-03-12 16:49:41,601    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:89    ^`^t ###########################
2022-03-12 16:49:41,601    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:90    ^`^t ### NEW PROCESS STARTED ###
2022-03-12 16:49:41,601    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:91    ^`^t ###########################
2022-03-12 16:49:41,602    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:92    ^`^t ['/usr/local/bin/protonvpn', 'c', '-f']
2022-03-12 16:49:41,602    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:93    ^`^t USER: root
2022-03-12 16:49:41,602    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:94    ^`^t CONFIG_DIR: /root/.pvpn-cli
2022-03-12 16:49:41,610    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t cli:97    ^`^t Arguments
{'--cc': None, '--fastest': True, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': True, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': False, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False}
2022-03-12 16:49:41,638    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t fastest:145    ^`^t Starting fastest connect
2022-03-12 16:49:41,639    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t disconnect:307    ^`^t Initiating disconnect
2022-03-12 16:49:41,645    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t is_connected:197    ^`^t Checking connection Status. OpenVPN processes: 0
2022-03-12 16:49:41,646    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_dns:608    ^`^t Restoring DNS
2022-03-12 16:49:41,646    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_dns:625    ^`^t No Backupfile found
2022-03-12 16:49:41,646    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_ipv6:688    ^`^t Restoring ip6tables
2022-03-12 16:49:41,646    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_ipv6:703    ^`^t No Backupfile found
2022-03-12 16:49:41,646    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_killswitch:778    ^`^t Restoring iptables
2022-03-12 16:49:41,646    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_killswitch:787    ^`^t No Backupfile found
2022-03-12 16:49:41,646    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t disconnect:347    ^`^t No connection found
2022-03-12 16:49:41,658    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t call_api:38    ^`^t Initiating API Call: https://api.protonvpn.ch/vpn/logicals
2022-03-12 16:49:42,160    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t call_api:67    ^`^t Successful json response
2022-03-12 16:49:42,371    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t pull_server_data:89    ^`^t SERVER_INFO_FILE written
2022-03-12 16:49:42,389    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t pull_server_data:96    ^`^t last_api_call updated
2022-03-12 16:49:42,395    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t get_servers:103    ^`^t Reading servers from file
2022-03-12 16:49:42,429    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t get_fastest_server:172    ^`^t Returning fastest server with pool size 1
2022-03-12 16:49:42,429    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t openvpn_connect:442    ^`^t Initiating OpenVPN connection
2022-03-12 16:49:42,429    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t openvpn_connect:443    ^`^t Connecting to NL-FREE#11 via UDP
2022-03-12 16:49:42,429    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t get_servers:103    ^`^t Reading servers from file
2022-03-12 16:49:42,478    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t render_j2_template:257    ^`^t Rendered /root/.pvpn-cli/connect.ovpn from openvpn_template.j2
2022-03-12 16:49:42,493    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t disconnect:307    ^`^t Initiating disconnect
2022-03-12 16:49:42,500    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t is_connected:197    ^`^t Checking connection Status. OpenVPN processes: 0
2022-03-12 16:49:42,500    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_dns:608    ^`^t Restoring DNS
2022-03-12 16:49:42,500    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_dns:625    ^`^t No Backupfile found
2022-03-12 16:49:42,500    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_ipv6:688    ^`^t Restoring ip6tables
2022-03-12 16:49:42,501    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_ipv6:703    ^`^t No Backupfile found
2022-03-12 16:49:42,501    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_killswitch:778    ^`^t Restoring iptables
2022-03-12 16:49:42,501    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t manage_killswitch:787    ^`^t No Backupfile found
2022-03-12 16:49:42,501    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t disconnect:347    ^`^t No connection found
2022-03-12 16:49:42,501    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t get_ip_info:145    ^`^t Getting IP Information
2022-03-12 16:49:42,502    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t call_api:38    ^`^t Initiating API Call: https://api.protonvpn.ch/vpn/location
2022-03-12 16:49:42,632    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t call_api:67    ^`^t Successful json response
2022-03-12 16:49:42,638    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t openvpn_connect:476    ^`^t OpenVPN process started
2022-03-12 16:49:49,060    ^`^t protonvpn-cli    ^`^t DEBUG    ^`^t openvpn_connect:519    ^`^t Authentication failure

Desktop (please complete the following information):