ProtonVPN / proton-vpn-gtk-app

Official ProtonVPN Linux app
https://protonvpn.com/download-linux
GNU General Public License v3.0
152 stars 20 forks source link

Issue: Authentication Denied on `proton-vpn-gtk-app` in *Arch Linux* #29

Closed BIGBEASTISHANK closed 4 months ago

BIGBEASTISHANK commented 4 months ago

We are happy to answer your questions about the code or discuss technical ideas.

Please complete the following checklist (by adding [x]):


2024-02-14_22-35

I am trying to login to my server but not working, it is showing authentication denied

Things I have tried

When i manually removed proton then their was a problem with cache, with was fixed by #25 but took awfully long time on arch linux.

GERJanB commented 4 months ago

Same problem here.

Was never able to connect using the this app.

Tried both the aur package and the flatpak.

I tried it in a Linux Mint VM with the Flatpak and there it worked.

In the comments on the AUR it is said that you have to install "network-manager-applet" as it is a optional dependency of "python-proton-vpn-network-manager" and is needed for this app to work, yet i tried to install it, but it dows not work

BIGBEASTISHANK commented 4 months ago

Tried both the aur package and the flatpak.

Same here, do you have any alternative for proton vpn on Arch?

GERJanB commented 4 months ago

Same here, do you have any alternative for proton vpn on Arch?

The only thing I use right now is the Firefox Extension for ProtonVPN. But that is pretty much just a workarround and no actual fix

BIGBEASTISHANK commented 4 months ago

Firefox Extension for ProtonVPN

Thanks, I will see for Brave browser

BIGBEASTISHANK commented 4 months ago

Same here, do you have any alternative for proton vpn on Arch?

The only thing I use right now is the Firefox Extension for ProtonVPN. But that is pretty much just a workarround and no actual fix

Is it not free?

GERJanB commented 4 months ago

Is it not free?

The Extension?? Do you mean if you can use it with the Freeplan? That I don't know as I have Unlimited but it is free as in installing it

BIGBEASTISHANK commented 4 months ago

I have Unlimited

Yep I use free plan and I installed it on browser and it asked me to upgrade so yaa, can you suggest any free VPN for my entire system as I use proton vpn with block connection without vpn on my android

GERJanB commented 4 months ago

can you suggest any free VPN

I am not going to start promoting any other VPN on Proton's Github

BIGBEASTISHANK commented 4 months ago

can you suggest any free VPN

I am not going to start promoting any other VPN on Proton's Github

LOL! I understand, lets seee if anyone can fix this authentication error

calexandru2018 commented 4 months ago

You'll have to look at NM logs and go from there, it seems mostly a NM/Keyring issue to me.

BIGBEASTISHANK commented 4 months ago

NM logs

I run sudo journalctl -fu NetworkManager then opened protonvpn tried connecing then closed because of same issue, here are the logs

Output:

ishank@ArchBeast ~> sudo journalctl -fu NetworkManager
Feb 17 00:01:16 ArchBeast NetworkManager[563]: <info>  [1708108276.9925] device (ipv6leakintrf0): Activation: successful, device activated.
Feb 17 00:01:18 ArchBeast NetworkManager[563]: <info>  [1708108278.6833] audit: op="connection-add" uuid="c55fd218-c7fc-45ce-8d13-f0454cbfda70" name="ProtonVPN NL-FREE#206071" pid=88923 uid=1000 result="success"
Feb 17 00:01:18 ArchBeast NetworkManager[563]: <info>  [1708108278.6929] vpn[0x643cb5858d10,c55fd218-c7fc-45ce-8d13-f0454cbfda70,"ProtonVPN NL-FREE#206071"]: starting openvpn
Feb 17 00:01:18 ArchBeast NetworkManager[563]: <info>  [1708108278.6932] audit: op="connection-activate" uuid="c55fd218-c7fc-45ce-8d13-f0454cbfda70" name="ProtonVPN NL-FREE#206071" pid=88923 uid=1000 result="success"
Feb 17 00:01:18 ArchBeast NetworkManager[563]: <warn>  [1708108278.7058] vpn[0x643cb5858d10,c55fd218-c7fc-45ce-8d13-f0454cbfda70,"ProtonVPN NL-FREE#206071"]: secrets: failed to request VPN secrets #3: No agents were available for this request.
Feb 17 00:01:18 ArchBeast NetworkManager[563]: <info>  [1708108278.7118] audit: op="connection-delete" uuid="c55fd218-c7fc-45ce-8d13-f0454cbfda70" name="ProtonVPN NL-FREE#206071" pid=88923 uid=1000 result="success"
Feb 17 00:01:20 ArchBeast NetworkManager[563]: <info>  [1708108280.8205] device (ipv6leakintrf0): state change: activated -> deactivating (reason 'connection-removed', sys-iface-state: 'managed')
Feb 17 00:01:20 ArchBeast NetworkManager[563]: <info>  [1708108280.8240] audit: op="connection-delete" uuid="9fb9f33a-0e1d-4d93-a41d-065616935f89" name="pvpn-killswitch-ipv6" pid=88923 uid=1000 result="success"
Feb 17 00:01:20 ArchBeast NetworkManager[563]: <info>  [1708108280.9760] device (ipv6leakintrf0): state change: deactivating -> disconnected (reason 'connection-removed', sys-iface-state: 'managed')
Feb 17 00:01:21 ArchBeast NetworkManager[563]: <info>  [1708108281.0808] device (ipv6leakintrf0): state change: disconnected -> unmanaged (reason 'user-requested', sys-iface-state: 'managed')
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5451] manager: (ipv6leakintrf0): new Dummy device (/org/freedesktop/NetworkManager/Devices/7)
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5464] device (ipv6leakintrf0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5478] audit: op="connection-add" uuid="4c826b29-9100-4c9e-b1ec-b672a1e411e7" name="pvpn-killswitch-ipv6" pid=88923 uid=1000 result="success"
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5489] device (ipv6leakintrf0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5496] policy: auto-activating connection 'pvpn-killswitch-ipv6' (4c826b29-9100-4c9e-b1ec-b672a1e411e7)
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5503] device (ipv6leakintrf0): Activation: starting connection 'pvpn-killswitch-ipv6' (4c826b29-9100-4c9e-b1ec-b672a1e411e7)
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5504] device (ipv6leakintrf0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5507] device (ipv6leakintrf0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5510] device (ipv6leakintrf0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Feb 17 00:03:00 ArchBeast NetworkManager[563]: <info>  [1708108380.5516] policy: set 'pvpn-killswitch-ipv6' (ipv6leakintrf0) as default for IPv6 routing and DNS
Feb 17 00:03:01 ArchBeast NetworkManager[563]: <info>  [1708108381.0380] device (ipv6leakintrf0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Feb 17 00:03:01 ArchBeast NetworkManager[563]: <info>  [1708108381.1063] device (ipv6leakintrf0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Feb 17 00:03:01 ArchBeast NetworkManager[563]: <info>  [1708108381.1070] device (ipv6leakintrf0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Feb 17 00:03:01 ArchBeast NetworkManager[563]: <info>  [1708108381.1088] device (ipv6leakintrf0): Activation: successful, device activated.
Feb 17 00:03:02 ArchBeast NetworkManager[563]: <info>  [1708108382.8158] audit: op="connection-add" uuid="6d0ec794-623f-4938-8683-a6f10f301c0a" name="ProtonVPN NL-FREE#206071" pid=88923 uid=1000 result="success"
Feb 17 00:03:02 ArchBeast NetworkManager[563]: <info>  [1708108382.8252] vpn[0x643cb58333e0,6d0ec794-623f-4938-8683-a6f10f301c0a,"ProtonVPN NL-FREE#206071"]: starting openvpn
Feb 17 00:03:02 ArchBeast NetworkManager[563]: <info>  [1708108382.8256] audit: op="connection-activate" uuid="6d0ec794-623f-4938-8683-a6f10f301c0a" name="ProtonVPN NL-FREE#206071" pid=88923 uid=1000 result="success"
Feb 17 00:03:02 ArchBeast NetworkManager[563]: <warn>  [1708108382.8424] vpn[0x643cb58333e0,6d0ec794-623f-4938-8683-a6f10f301c0a,"ProtonVPN NL-FREE#206071"]: secrets: failed to request VPN secrets #3: No agents were available for this request.
Feb 17 00:03:02 ArchBeast NetworkManager[563]: <info>  [1708108382.8530] audit: op="connection-delete" uuid="6d0ec794-623f-4938-8683-a6f10f301c0a" name="ProtonVPN NL-FREE#206071" pid=88923 uid=1000 result="success"
Feb 17 00:03:05 ArchBeast NetworkManager[563]: <info>  [1708108385.8228] device (ipv6leakintrf0): state change: activated -> deactivating (reason 'connection-removed', sys-iface-state: 'managed')
Feb 17 00:03:05 ArchBeast NetworkManager[563]: <info>  [1708108385.8264] audit: op="connection-delete" uuid="4c826b29-9100-4c9e-b1ec-b672a1e411e7" name="pvpn-killswitch-ipv6" pid=88923 uid=1000 result="success"
Feb 17 00:03:06 ArchBeast NetworkManager[563]: <info>  [1708108386.3893] device (ipv6leakintrf0): state change: deactivating -> disconnected (reason 'connection-removed', sys-iface-state: 'managed')
Feb 17 00:03:06 ArchBeast NetworkManager[563]: <info>  [1708108386.9506] device (ipv6leakintrf0): state change: disconnected -> unmanaged (reason 'user-requested', sys-iface-state: 'managed')
GERJanB commented 4 months ago

OK I found a Solution:

you have to install "network-manager-applet" and then start it via nm-applet

When trying to connect to to the VPN now, the Connection works just fine.

Found the Solution here: https://forum.manjaro.org/t/protonvpn-connection-fails-due-to-failure-to-get-secrets/80804/17

The Problem is, that "network-manager-applet" is an optional dependency for "python-proton-vpn-network-manager" and is there for not installed with the AUR Package and is also not started when starting the VPN App. So it has to be started manually or rather has to be added to autostart.

This Comment from the AUR Package explains why it was not set as a hard dependency:

network-manager-applet is an optional dependency for python-proton-vpn-network-manager which is a dependency for this package, I cannot force the applet to all users, some DEs and WMs will not force you to have that

Source: https://aur.archlinux.org/packages/proton-vpn-gtk-app

BIGBEASTISHANK commented 4 months ago

network-manager-applet

Yep got it working, it was asking for openvpn password which is located in account.protonvpn.com and for that popup i need network-manager-applet