linux-cli-community icon indicating copy to clipboard operation
linux-cli-community copied to clipboard

[BUG] Arch Empty Server Pool

Open HowToCount opened this issue 1 year ago • 9 comments

I have this error on my Arch Linux after fresh install: Traceback (most recent call last): File "/usr/bin/protonvpn", line 33, in sys.exit(load_entry_point('protonvpn-cli==2.2.12', 'console_scripts', 'protonvpn')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/protonvpn_cli/cli.py", line 72, in main cli() File "/usr/lib/python3.12/site-packages/protonvpn_cli/cli.py", line 121, in cli connection.fastest(protocol) File "/usr/lib/python3.12/site-packages/protonvpn_cli/connection.py", line 180, in fastest fastest_server = get_fastest_server(server_pool) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/protonvpn_cli/utils.py", line 180, in get_fastest_server fastest_server = random.choice(fastest_pool[:pool_size])["Name"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/random.py", line 347, in choice raise IndexError('Cannot choose from an empty sequence') IndexError: Cannot choose from an empty sequence

HowToCount avatar Dec 08 '24 19:12 HowToCount

Exact same issue in void linux I've been using protonvpn-cli for some time, Today I tried to connect to any server and I get the exact errors above.

ACR-Jeff avatar Dec 09 '24 23:12 ACR-Jeff

Same Problem

Phoenix-999 avatar Dec 15 '24 09:12 Phoenix-999

Well I solved all of my problems with the help of one comment in Reddit, https://old.reddit.com/r/ProtonVPN/comments/1bd1o4e/protonvpn_cli_api_not_working/kumk5x6/ open terminal and execute this command sudo protonvpn init Type in your password, It will then follow through with some steps I followed the instructions on protonvpn's website 2. Your OpenVPN username and password https://protonvpn.com/support/linux-openvpn#preparation Then follow through with your other options such as free vpn or paid service, Etc. After that everything works as expected on my end.

ACR-Jeff avatar Jan 13 '25 21:01 ACR-Jeff

Well shoot, It worked right after configuring, Now it's throwing errors on protonvpn status Going to have to check the errors.

ProtonVPN now offers an official Linux app which includes a graphical user interface. Visit https://protonvpn.com/support/official-linux-client to upgrade. Traceback (most recent call last): File "/usr/bin/protonvpn", line 33, in <module> sys.exit(load_entry_point('protonvpn-cli==2.2.12', 'console_scripts', 'protonvpn')()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/protonvpn_cli/cli.py", line 72, in main cli() ~~~^^ File "/usr/lib/python3.13/site-packages/protonvpn_cli/cli.py", line 144, in cli connection.status() ~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/protonvpn_cli/connection.py", line 444, in status + "Features: {0}\n".format(all_features[feature]) ~~~~~~~~~~~~^^^^^^^^^ KeyError: 16

ACR-Jeff avatar Jan 13 '25 21:01 ACR-Jeff

Well apparently protonvpn-cli still works with the above instructions, The only time I've gotten an error is while using protonvpn status I will continue to test.

ACR-Jeff avatar Jan 14 '25 00:01 ACR-Jeff

Ah yes, it works again. No need to reconfigure in my case, so the problem must have been with the upstream data format. protonvpn status also fails for me.

Tamaranch avatar Jan 14 '25 12:01 Tamaranch

And... broken again :confused:

Tamaranch avatar Jan 16 '25 07:01 Tamaranch

Yep seems like proton is trying to go all out and lose customers

ACR-Jeff avatar Jan 16 '25 08:01 ACR-Jeff

Strange, Without doing anything now today I try it and it works again. Roller coaster ride?

ACR-Jeff avatar Jan 16 '25 19:01 ACR-Jeff