Rafficer / linux-cli-community

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

[BUG] Proton vpn suddenly stopped working #232

Closed amirongit closed 4 years ago

amirongit commented 4 years ago

Describe the bug So a few days I wanted to run proton vpn and use it, what happend was after I ran python -m protonvpn_cli c it just stuck there and did nothing! I was excepting to see the tui interface, so I can connect to a server, but it didn't come up and just stuck there! a few days before it happend, I was using it and it was fine. I don't know what happend ps: proton vpn is blocked in my country, but I asked other people if they have the same problem and they told me their fine with proton vpn. I tried to uninstall it and reinstall it, now when I try to run init, it gives me this error: [!] There was an error connecting to the ProtonVPN API. [!] Please make sure your connection is working properly!

To Reproduce Steps to reproduce the behavior: First problem:

  1. run protonvpn c
  2. the tui menu doesn't come up

Second problem

  1. run protonvpn init
  2. fill out the form
  3. see the error below [!] There was an error connecting to the ProtonVPN API. [!] Please make sure your connection is working properly!

Expected behavior I wan't it to initialize my profile.

Error Messages/Program Output/Log Messages (~/.pvpn-cli/pvpn-cli.log) If applicable, add error messages or output to help explain your problem.

2020-09-17 01:02:14,517 — protonvpn-cli — DEBUG — change_file_owner:325 — Changed owner of /home/amir/.pvpn-cli/pvpn-cli.log to amir 2020-09-17 01:02:14,518 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 01:02:14,518 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 01:02:14,518 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 01:02:14,518 — protonvpn-cli — DEBUG — cli:87 — ['/sbin/protonvpn', 'init'] 2020-09-17 01:02:14,518 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 01:02:14,518 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 01:02:14,522 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': True, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 01:02:14,539 — protonvpn-cli — DEBUG — change_file_owner:325 — Changed owner of /home/amir/.pvpn-cli to amir 2020-09-17 01:02:31,047 — protonvpn-cli — DEBUG — change_file_owner:325 — Changed owner of /home/amir/.pvpn-cli/pvpn-cli.cfg to amir 2020-09-17 01:02:31,047 — protonvpn-cli — DEBUG — init_config_file:175 — pvpn-cli.cfg initialized 2020-09-17 01:02:31,049 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals 2020-09-17 01:02:36,380 — protonvpn-cli — DEBUG — call_api:51 — Error connecting to ProtonVPN API 2020-09-17 01:07:01,141 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 01:07:01,141 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 01:07:01,142 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 01:07:01,142 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py', 'init'] 2020-09-17 01:07:01,142 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 01:07:01,142 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 01:07:01,146 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': True, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 01:07:16,481 — protonvpn-cli — DEBUG — init_config_file:175 — pvpn-cli.cfg initialized 2020-09-17 01:07:16,482 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals 2020-09-17 01:07:26,898 — protonvpn-cli — DEBUG — call_api:51 — Error connecting to ProtonVPN API 2020-09-17 01:07:28,841 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 01:07:28,841 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 01:07:28,841 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 01:07:28,841 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py', 'init'] 2020-09-17 01:07:28,842 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 01:07:28,842 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 01:07:28,846 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': True, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 01:07:41,043 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 01:07:41,043 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 01:07:41,043 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 01:07:41,043 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py', 'init'] 2020-09-17 01:07:41,043 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 01:07:41,043 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 01:07:41,048 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': True, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 01:07:56,174 — protonvpn-cli — DEBUG — init_config_file:175 — pvpn-cli.cfg initialized 2020-09-17 01:07:56,175 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals 2020-09-17 01:08:06,630 — protonvpn-cli — DEBUG — call_api:51 — Error connecting to ProtonVPN API 2020-09-17 01:09:08,682 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 01:09:08,682 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 01:09:08,683 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 01:09:08,683 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py'] 2020-09-17 01:09:08,683 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 01:09:08,683 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 01:09:10,234 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 01:09:10,234 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 01:09:10,234 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 01:09:10,234 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py', 'd'] 2020-09-17 01:09:10,234 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 01:09:10,234 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 01:09:10,238 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': True, 'disconnect': False, 'examples': False, 'init': False, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 01:09:10,249 — protonvpn-cli — DEBUG — check_init:436 — Initialized Profile not found 2020-09-17 01:19:06,188 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 01:19:06,188 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 01:19:06,188 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 01:19:06,188 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py', 'init'] 2020-09-17 01:19:06,188 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 01:19:06,188 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 01:19:06,193 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': True, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 01:19:20,071 — protonvpn-cli — DEBUG — init_config_file:175 — pvpn-cli.cfg initialized 2020-09-17 01:19:20,072 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals 2020-09-17 01:19:38,366 — protonvpn-cli — DEBUG — call_api:51 — Error connecting to ProtonVPN API 2020-09-17 01:23:24,224 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 01:23:24,224 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 01:23:24,224 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 01:23:24,224 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py', 'init'] 2020-09-17 01:23:24,224 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 01:23:24,225 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 01:23:24,229 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': True, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 01:23:37,535 — protonvpn-cli — DEBUG — init_config_file:175 — pvpn-cli.cfg initialized 2020-09-17 01:23:37,537 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals 2020-09-17 01:23:45,461 — protonvpn-cli — DEBUG — call_api:51 — Error connecting to ProtonVPN API 2020-09-17 11:11:27,021 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 11:11:27,039 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 11:11:27,040 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 11:11:27,040 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py', 'init'] 2020-09-17 11:11:27,040 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 11:11:27,040 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 11:11:27,045 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': True, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 11:11:42,382 — protonvpn-cli — DEBUG — init_config_file:175 — pvpn-cli.cfg initialized 2020-09-17 11:11:42,383 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals 2020-09-17 11:11:52,721 — protonvpn-cli — DEBUG — call_api:51 — Error connecting to ProtonVPN API 2020-09-17 11:13:07,523 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 11:13:07,524 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 11:13:07,524 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 11:13:07,524 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py', 'init'] 2020-09-17 11:13:07,524 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 11:13:07,524 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 11:13:07,530 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': True, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 11:13:20,508 — protonvpn-cli — DEBUG — init_config_file:175 — pvpn-cli.cfg initialized 2020-09-17 11:13:20,509 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals 2020-09-17 11:13:30,767 — protonvpn-cli — DEBUG — call_api:51 — Error connecting to ProtonVPN API 2020-09-17 11:14:19,131 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 11:14:19,131 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 11:14:19,131 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 11:14:19,131 — protonvpn-cli — DEBUG — cli:87 — ['/usr/lib/python3.8/site-packages/protonvpn_cli/__main__.py', 'init'] 2020-09-17 11:14:19,131 — protonvpn-cli — DEBUG — cli:88 — USER: amir 2020-09-17 11:14:19,131 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/amir/.pvpn-cli 2020-09-17 11:14:19,136 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '<servername>': None, 'c': False, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': True, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False} 2020-09-17 11:14:27,137 — protonvpn-cli — DEBUG — init_config_file:175 — pvpn-cli.cfg initialized 2020-09-17 11:14:27,138 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals 2020-09-17 11:14:47,405 — protonvpn-cli — DEBUG — call_api:51 — Error connecting to ProtonVPN API

Desktop (please complete the following information):

Additional context I tried changing my IKEV2 creditionals, it didn't make any changes.

amirongit commented 4 years ago

also, I'm using proton vpn on my adnroid phone and it's ok.

ghost commented 4 years ago

i have same issue on my linux pc, the tui menu doesn't come up and i think it's a unexpected problem. same steps @amirongit .

Desktop (please complete the following information):

OS: Arch Linux
Python Version: Python 2.7.17 (runned python --version using sudo)
ProtonVPN-CLI Version: ProtonVPN-CLI v2.2.4

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

2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — change_file_owner:325 — Changed owner of /home/hose/.pvpn-cli/pvpn-cli.log to hose 2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — cli:87 — ['/usr/local/bin/protonvpn', 'c'] 2020-09-17 15:00:45,319 — protonvpn-cli — DEBUG — cli:88 — USER: hose 2020-09-17 15:00:45,319 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/hose/.pvpn-cli 2020-09-17 15:00:45,328 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '': 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-09-17 15:00:45,366 — protonvpn-cli — DEBUG — dialog:46 — Starting dialog connect 2020-09-17 15:00:45,372 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals

calexandru2018 commented 4 years ago

i have same issue on my linux pc, the tui menu doesn't come up and i think it's a unexpected problem. same steps @amirongit .

Desktop (please complete the following information):

OS: Arch Linux
Python Version: Python 2.7.17 (runned python --version using sudo)
ProtonVPN-CLI Version: ProtonVPN-CLI v2.2.4

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

2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — change_file_owner:325 — Changed owner of /home/hose/.pvpn-cli/pvpn-cli.log to hose 2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — cli:84 — ########################### 2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — cli:85 — ### NEW PROCESS STARTED ### 2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — cli:86 — ########################### 2020-09-17 15:00:45,318 — protonvpn-cli — DEBUG — cli:87 — ['/usr/local/bin/protonvpn', 'c'] 2020-09-17 15:00:45,319 — protonvpn-cli — DEBUG — cli:88 — USER: hose 2020-09-17 15:00:45,319 — protonvpn-cli — DEBUG — cli:89 — CONFIG_DIR: /home/hose/.pvpn-cli 2020-09-17 15:00:45,328 — protonvpn-cli — DEBUG — cli:92 — Arguments {'--cc': None, '--fastest': False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': None, '': 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-09-17 15:00:45,366 — protonvpn-cli — DEBUG — dialog:46 — Starting dialog connect 2020-09-17 15:00:45,372 — protonvpn-cli — DEBUG — call_api:36 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals

Min python version is 3.5.

IMIEEET commented 4 years ago

@amirongit same here(iran). is that specific to iran?

Rafficer commented 4 years ago

It may very well be. If https://api.protonvpn.ch is blocked, that's what's causing the issue.

ghost commented 4 years ago

hmmm is there any solutions?

amirongit commented 4 years ago

ok, I'm closing it, a few hours after that I opened this issue, I relized that I can't use proton on my phone! that api url IS blocked, I wonder how it wasn't before it. Hopefully one day everyone will be able to use the internet freely... I don't know if you can solve it or not, if you want me to keep it open, let me know.

calexandru2018 commented 4 years ago

ok, I'm closing it, a few hours after that I opened this issue, I relized that I can't use proton on my phone! that api url IS blocked, I wonder how it wasn't before it. Hopefully one day everyone will be able to use the internet freely... I don't know if you can solve it or not, if you want me to keep it open, let me know.

If it does not work on your phone either, talk to support about it.

ghost commented 4 years ago

keep open it

amirongit commented 4 years ago

@minutesinch

ghost commented 4 years ago

its work on phone

ariyadey commented 4 years ago

ProtonVPN works on my Android phone (Android 10) but stopped working on my Ubuntu 20.04. I'm from Iran too!

sscsa2 commented 4 years ago

same problem here! connecting from Iran ProtonVPN on windows 10 and Android works as expected but protonvpn-CLI in linux (CentOS 8, Ubuntu 18.04) wont connect. purging configurations and reinitializing with sudo protonvpn init (filling with correct username and password) will result :

[!] There was an error connecting to the ProtonVPN API. [!] Please make sure your connection is working properly!

and running command $ curl -I https://api.protonmail.ch/vpn/servers will result in :

HTTP/1.1 200 OK Date: Thursday, 17-Sep-20 23:52:16 +0430 Keep-Alive: timeout=58 Content-Length: 0

HTTP/1.1 200 OK date: Thu, 17 Sep 2020 19:22:16 GMT cache-control: no-store, no-cache, must-revalidate, max-age=0 expires: Fri, 04 May 1984 22:15:00 GMT pragma: no-cache

IMIEEET commented 4 years ago

اقا من تست کردم روی مخابرات مشکل داره روی همراه اول اوکیه. تحریم یا فیلتر نیست. من قراره یه شکایت ثبت کنم(english:this is ISP specific problem for Iran. no problem from Protonvpn)

sscsa2 commented 4 years ago

اقا من تست کردم روی مخابرات مشکل داره روی همراه اول اوکیه. تحریم یا فیلتر نیست. من قراره یه شکایت ثبت کنم(english:this is ISP specific problem for Iran. no problem from Protonvpn)

thanks for the update :100: I'm using the same ISP (TCI) for my home network, protonVPN windows and android are working properly!

VPS ENV

I tested in the VPS environment, got 200 response code on proton API endpoints but still no connections made through protonvpn-cli

what's happening ?!

IMIEEET commented 4 years ago

اقا من تست کردم روی مخابرات مشکل داره روی همراه اول اوکیه. تحریم یا فیلتر نیست. من قراره یه شکایت ثبت کنم(english:this is ISP specific problem for Iran. no problem from Protonvpn)

thanks for the update 100 I'm using the same ISP (TCI) for my home network, protonVPN windows and android are working properly!

VPS ENV

I tested in the VPS environment, got 200 response code on proton API endpoints but still no connections made through protonvpn-cli

what's happening ?!

for me android version was on TCI too. but when you clear cache of app it will stop working. so That's why it stopped working in linux first. bcz it has no cache?

sscsa2 commented 4 years ago

for me android version was on TCI too. but when you clear cache of app it will stop working. so That's why it stopped working in linux first. bcz it has no cache?

if that's the case, then how do you explain the VPS thing?

update :

just tested the freshly installed android version with a clean cache and connects as always so I don't think this problem is related to cache

IMIEEET commented 4 years ago

for me android version was on TCI too. but when you clear cache of app it will stop working. so That's why it stopped working in linux first. bcz it has no cache?

if that's the case, then how do you explain the VPS thing?

update :

just tested the freshly installed android version with a clean cache and connects as always so I don't think this problem is related to cache

idk about vps from where its networking is special. but in your first comment you mentioned api.protonmail.ch? its not right. you should check https://api.protonvpn.ch and about android idk dude. im just angry to my ISP!

parasilius commented 4 years ago

I am also facing the same problem. I reinstalled the packages and reinstalled protonvpn cli from scratch. When I used the command $ sudo protonvpn init I couldn't rewrite my profile, so I tried $ sudo torify protonvpn init and it worked, and then, although not a good idea, I tried running the command $ sudo torify protonvpn c -f. Everytime the connection failed. Please keep us updated. Thanks.

IMIEEET commented 4 years ago

that seems strange but i changed my api to https://api.protonmail.ch and now its working!!!!!!!!! idk what to say if that works for you too do it and close and delete this before they think censor was successful

parasilius commented 4 years ago

that seems strange but i changed my api to https://api.protonmail.ch and now its working!!!!!!!!! idk what to say if that works for you too do it and close and delete this before they think censor was successful

It didn't work for me. Also when I open the link in my browser, the JSON is as follows: {"Code":404,"Error":"Path not found","ErrorDescription":"","Details":{}}

IMIEEET commented 4 years ago

that seems strange but i changed my api to https://api.protonmail.ch and now its working!!!!!!!!! idk what to say if that works for you too do it and close and delete this before they think censor was successful

It didn't work for me. Also when I open the link in my browser, the JSON is as follows: {"Code":404,"Error":"Path not found","ErrorDescription":"","Details":{}}

change api_domain in ~/.pvpn-cli/pvpn-cli.cfg to https://api.protonmail.ch also that json result is correct.

parasilius commented 4 years ago

that seems strange but i changed my api to https://api.protonmail.ch and now its working!!!!!!!!! idk what to say if that works for you too do it and close and delete this before they think censor was successful

It didn't work for me. Also when I open the link in my browser, the JSON is as follows: {"Code":404,"Error":"Path not found","ErrorDescription":"","Details":{}}

change api_domain in ~/.pvpn-cli/pvpn-cli.cfg to https://api.protonmail.ch also that json result is correct.

Thanks, my bad. It worked.

IMIEEET commented 4 years ago

so I guess I'm the only one who can't work with this new api url!

can you open new url?

amirongit commented 4 years ago

so I guess I'm the only one who can't work with this new api url!

can you open new url?

yes, it gives me that json data, but when I put it in pvpn.cfg , it changes to the first one for no reason after I run protonvpn, even I tried putting it in utils.py, doesn't matter still the same issue. I started using tor, since the support guys don't give a shit about this.

IMIEEET commented 4 years ago

so I guess I'm the only one who can't work with this new api url!

can you open new url?

yes, it gives me that json data, but when I put it in pvpn.cfg , it changes to the first one for no reason after I run protonvpn, even I tried putting it in utils.py, doesn't matter still the same issue. I started using tor, since the support guys don't give a shit about this.

in first comment you mentioned you reinstalled it. maybe it changes api it self because you do protonvpn init? i can give you format of manually adding username/pass if you want

amirongit commented 4 years ago

so I guess I'm the only one who can't work with this new api url!

can you open new url?

yes, it gives me that json data, but when I put it in pvpn.cfg , it changes to the first one for no reason after I run protonvpn, even I tried putting it in utils.py, doesn't matter still the same issue. I started using tor, since the support guys don't give a shit about this.

in first comment you mentioned you reinstalled it. maybe it changes api it self because you do protonvpn init? i can give you format of manually adding username/pass if you want

not interested anymore, thank you

sscsa2 commented 4 years ago

that seems strange but i changed my api to https://api.protonmail.ch and now its working!!!!!!!!! idk what to say if that works for you too do it and close and delete this before they think censor was successful

it's working like a charm! thanks a lot, dude! this is a temporary solution to our problem and a permanent solution must be implemented for fetching server lists

calexandru2018 commented 4 years ago

so I guess I'm the only one who can't work with this new api url!

can you open new url?

yes, it gives me that json data, but when I put it in pvpn.cfg , it changes to the first one for no reason after I run protonvpn, even I tried putting it in utils.py, doesn't matter still the same issue. I started using tor, since the support guys don't give a shit about this.

The Linux clients are currently being rewriten.

ariyadey commented 4 years ago

that seems strange but i changed my api to https://api.protonmail.ch and now its working!!!!!!!!! idk what to say if that works for you too do it and close and delete this before they think censor was successful

Thank you, man! You saved my workflow! BTW, those censor boys are too foolish to take a look at here :)

amirongit commented 4 years ago

to solve the problem ( temporary ) 1 - su 2 - (torsocks/torify) python -m protonvpn_cli init 3 - then change the api url to https://api.protonmail.ch/ in ~/.pvpn/pvpn-cli.cfg 4 - enjoy I'm closing this. ( thanks to the community )

amirongit commented 3 years ago

update for some users like me this didn't work, but another solution is to use 2.1.0 version instead of the last one. works well for me (:

jason-matison commented 3 years ago

the new version is out https://protonvpn.com/support/official-linux-client/ same problem "https://api.protonmail.ch/" solution doesn't work with it any idea about it?

calexandru2018 commented 3 years ago

@jason-matison

The official CLI does not support alternative routing as of yet. This though is planned.

jason-matison commented 3 years ago

@jason-matison

The official CLI does not support alternative routing as of yet. This though is planned.

still doesn't?

calexandru2018 commented 3 years ago

@jason-matison

The official CLI does not support alternative routing as of yet. This though is planned.

still doesn't?

Once it does, it will be announced.