protonvpn-cli icon indicating copy to clipboard operation
protonvpn-cli copied to clipboard

protonvpn API not found with v2.2.1

Open k0dk0de opened this issue 4 years ago • 1 comments

I upgraded the CLI to v2.2.1 this morning and trying to connect with that client fails with the following error:

user@host:~$ sudo protonvpn c -f  
[!] There was an error connecting to the ProtonVPN API.  
[!] Please make sure your connection is working properly!

What I have tested:

  • Flush iptables completely to get rid of the kill switch
  • ping a random host from the CLI - that works w/o a VPN

Here is the pvpn-cli.log file I get when trying to connect:

2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:84 —   #########################
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ###
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:86 —   #########################
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:87 — ['/usr/local/bin/protonvpn', 'c', '-f']
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:88 — USER: user
2020-02-03 07:57:45,037 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/user/.pvpn-cli
2020-02-03 07:57:45,040 — protonvpn-cli — DEBUG — cli:92 — 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}
2020-02-03 07:57:45,048 — protonvpn-cli — DEBUG — fastest:144 — Starting fastest connect
2020-02-03 07:57:45,049 — protonvpn-cli — DEBUG — disconnect:307 — Initiating disconnect
2020-02-03 07:57:45,054 — protonvpn-cli — DEBUG — is_connected:196 — Checking connection Status. OpenVPN processes: 0
2020-02-03 07:57:45,054 — protonvpn-cli — DEBUG — manage_dns:604 — Restoring DNS
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_dns:621 — No Backupfile found
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_ipv6:680 — Restoring ip6tables
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_ipv6:695 — No Backupfile found
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_killswitch:770 — Restoring iptables
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — manage_killswitch:779 — No Backupfile found
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — disconnect:347 — No connection found
2020-02-03 07:57:45,055 — protonvpn-cli — DEBUG — call_api:35 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals
2020-02-03 07:57:45,276 — protonvpn-cli — DEBUG — call_api:50 — Error connecting to ProtonVPN API`

Downgrading back to v2.2.0 and everything works great.

k0dk0de avatar Feb 03 '20 16:02 k0dk0de

You're on the wrong repository.

Rafficer avatar Feb 03 '20 18:02 Rafficer