linux-app icon indicating copy to clipboard operation
linux-app copied to clipboard

Unable to connect wIth ks --on (Manjaro)

Open petrpajdla opened this issue 2 years ago • 9 comments

I have an issue with connecting after enabling kill switch (with kill switch off everything works just fine) on Manjaro.

This seems to be related with #12 ?

ERROR:dbus.connection:Exception in handler for D-Bus signal: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/dbus/connection.py", line 232, in maybe_handle_message self._handler(*args, **kwargs) File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/connection_backend/nm_client/monitor_vpn_connection_start.py", line 58, in on_vpn_state_changed env.killswitch.manage(KillSwitchActionEnum.SOFT) File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/killswitch.py", line 82, in manage actions_dict = { File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/killswitch.py", line 280, in setup_soft_connection self.setup_post_connection_ks(None, activating_soft_connection=True) File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/killswitch.py", line 221, in setup_post_connection_ks self.activate_connection(self.ks_conn_name) File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/killswitch.py", line 404, in activate_connection conn_dict = self.nm_wrapper.search_for_connection( # noqa File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/dbus/dbus_network_manager_wrapper.py", line 56, in search_for_connection all_connection_properties = self.get_settings_from_connection( File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/dbus/dbus_network_manager_wrapper.py", line 418, in get_settings_from_connection return iface.GetSettings() File "/usr/lib/python3.9/site-packages/dbus/proxies.py", line 72, in call return self._proxy_method(*args, **keywords) File "/usr/lib/python3.9/site-packages/dbus/proxies.py", line 141, in call return self._connection.call_blocking(self._named_service, File "/usr/lib/python3.9/site-packages/dbus/connection.py", line 652, in call_blocking reply_message = self.send_message_with_reply_and_block( dbus.exceptions.DBusException: org.freedesktop.NetworkManager.Settings.PermissionDenied: uid 1000 has no permission to perform this operation

petrpajdla avatar Jul 19 '21 10:07 petrpajdla

Can you try the provided solution ?

calexandru2018 avatar Jul 19 '21 10:07 calexandru2018

I followed the instructions in https://github.com/ProtonVPN/linux-app/issues/12#issuecomment-876213262 if this is what you mean, but it did not solve the hang after kill switch is enabled.

The problem is both in the CLI and GUI...

petrpajdla avatar Jul 19 '21 10:07 petrpajdla

So this only happens when you have the KS enabled ?

calexandru2018 avatar Jul 22 '21 08:07 calexandru2018

Yes, only with kill switch enabled, both in GUI app (hangs) and CLI (returns an error message copied in the first post).

petrpajdla avatar Jul 22 '21 08:07 petrpajdla

you may need to allow notifications from nm-applet. See my comment on #12

foxfriday avatar Jul 28 '21 05:07 foxfriday

where u able to fix the killswitch hang?

Excal-rs avatar Jan 03 '22 20:01 Excal-rs

Did a fresh reinstall due to #62, this issue still persists.

@foxfriday nm-applet is run without any flags, so with notifications enabled if I understand it correctly.

petrpajdla avatar Jan 04 '22 08:01 petrpajdla

I too am having this issue after the latest update on one of my three machines running manjaro. Two are kde, the other gnome. The one kde machine having this issue also doesn't display the tray icon, though I don't see why this would have any relation to ks hang whether "on" or "permanent".

loufee avatar Mar 15 '22 05:03 loufee

Hey all, I'm happy to announce that this issue has been fixed with the latest release of the library. Please update to the latest version.

calexandru2018 avatar Apr 29 '22 07:04 calexandru2018