Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protonvpn-cli don't connect #178563

Closed
ajmasia opened this issue Jun 22, 2022 · 7 comments
Closed

Protonvpn-cli don't connect #178563

ajmasia opened this issue Jun 22, 2022 · 7 comments

Comments

@ajmasia
Copy link

ajmasia commented Jun 22, 2022

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`
@WolfangAukang
Copy link
Contributor

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.

@andreystepanov
Copy link

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
Copy link

Adding user to networkmanager group fixed the issue for me.

Here’s NixOS documentation.

@ajmasia give it a try!

@WolfangAukang
Copy link
Contributor

@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.

@ajmasia
Copy link
Author

ajmasia commented Jun 13, 2023

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

@WolfangAukang
Copy link
Contributor

WolfangAukang commented Aug 22, 2023

FYI, there is an issue on the official repo regarding this ProtonVPN/linux-app#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.

@Atemu
Copy link
Member

Atemu commented Apr 28, 2024

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

@Atemu Atemu closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants