nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Protonvpn-cli don't connect

Open ajmasia opened this issue 2 years ago • 2 comments

Describe the bug

Imposible connect to vpn

Steps To Reproduce

Steps to reproduce the behavior:

  1. install the package with home-manager
  2. log in your proton account
  3. try to connect

Expected behavior

Connect to a vpn

Additional context

Version: Proton VPN CLI v3.12.0 (protonvpn-nm-lib v3.10.0; proton-client v0.7.1) Log error:

Traceback (most recent call last):
  File "/nix/store/asmmczxwib8fkmnhyidrl7wfl0dzk57g-protonvpn-cli-3.12.0/lib/python3.9/site-packages/protonvpn_cli/cli_wrapper.py", line 277, in connect
    self.protonvpn.setup_connection(
  File "/nix/store/5scz60rbyq5zazgb8476wxvcw7s5q49i-python3.9-protonvpn-nm-lib-3.10.0/lib/python3.9/site-packages/protonvpn_nm_lib/api.py", line 158, in setup_connection
    self._env.connection_backend.setup(**data)
  File "/nix/store/5scz60rbyq5zazgb8476wxvcw7s5q49i-python3.9-protonvpn-nm-lib-3.10.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/connection_backend/nm_client/nm_client.py", line 81, in setup
    self._pre_setup_connection(kwargs.get("entry_ip"))
  File "/nix/store/5scz60rbyq5zazgb8476wxvcw7s5q49i-python3.9-protonvpn-nm-lib-3.10.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/connection_backend/nm_client/nm_client.py", line 233, in _pre_setup_connection
    ipv6_lp.manage(KillSwitchActionEnum.ENABLE)
  File "/nix/store/5scz60rbyq5zazgb8476wxvcw7s5q49i-python3.9-protonvpn-nm-lib-3.10.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/ipv6_leak_protection.py", line 62, in manage
    self.add_leak_protection()
  File "/nix/store/5scz60rbyq5zazgb8476wxvcw7s5q49i-python3.9-protonvpn-nm-lib-3.10.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/ipv6_leak_protection.py", line 100, in add_leak_protection
    self.run_subprocess(
  File "/nix/store/5scz60rbyq5zazgb8476wxvcw7s5q49i-python3.9-protonvpn-nm-lib-3.10.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/ipv6_leak_protection.py", line 178, in run_subprocess
    raise exception(exception_msg)
protonvpn_nm_lib.exceptions.EnableIPv6LeakProtectionError: Unable to add IPv6 leak protection connection/interface

Notify maintainers

@wolfangaukang

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.93, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.16`
 - channels(ajmasia): `"home-manager-21.11, unstable-22.11pre386147.e0a42267f73"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

ajmasia avatar Jun 22 '22 11:06 ajmasia

I cannot reproduce this and AFAIK it doesn't look related to the packaging, I'd rather open a ticket with protonvpn-nm-lib to see the reason why this is getting triggered.

WolfangAukang avatar Jun 22 '22 12:06 WolfangAukang

Having the same issue on NixOS.

I can't figure out if it's related to specific user network configuration in NixOS or lack of some dependencies needed for protonvpn to work properly.

@ajmasia Have you found a solution?

andreystepanov avatar Aug 13 '22 12:08 andreystepanov

Adding user to networkmanager group fixed the issue for me.

Here’s NixOS documentation.

@ajmasia give it a try!

andreystepanov avatar Aug 14 '22 11:08 andreystepanov

@andreystepanov that makes sense. I already insert my user on that group (although the reason is unrelated to protonvpn), that's why I was not able to reproduce this. Unfortunately, I'm not sure if adding this kind of option is possible on the packaging.

WolfangAukang avatar Aug 16 '22 14:08 WolfangAukang

Sorry @andreystepanov but I stopped using protonvpn and have not tried it again :blush:

ajmasia avatar Jun 13 '23 14:06 ajmasia

FYI, there is an issue on the official repo regarding this https://github.com/ProtonVPN/linux-app/issues/46. Honestly, it looks like a very random issue, because I remember having it after upgrading protonvpn once, but it started working a few days later.

WolfangAukang avatar Aug 22 '23 13:08 WolfangAukang

The upstream projects have been abandoned, this is no longer applicable.

Atemu avatar Apr 28 '24 13:04 Atemu