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

asyncio.exceptions.TimeoutError on Connect to VPN #57

Open
divSelector opened this issue Jun 28, 2024 · 13 comments
Open

asyncio.exceptions.TimeoutError on Connect to VPN #57

divSelector opened this issue Jun 28, 2024 · 13 comments

Comments

@divSelector
Copy link

divSelector commented Jun 28, 2024

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

  • [X ] I have searched open and closed issues for duplicates
  • [ X] This isn't a feature request
  • [ :)] This is not a report about my app not working as expected

 2024-06-22T21:42:11.904459 | proton.vpn.app.gtk.widgets.main.exception_handler:175 | CRITICAL | APP:CRASH | Unexpected error.
Traceback (most recent call last):
 File "/usr/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
   return fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
 File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
   return self.__get_result()
 File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
   raise self._exception
 File "/usr/lib/python3/dist-packages/proton/vpn/core/connection.py", line 165, in connect
   await self._connector.connect(
 File "/usr/lib/python3/dist-packages/proton/vpn/connection/vpnconnector.py", line 198, in connect
   await self._on_connection_event(
 File "/usr/lib/python3/dist-packages/proton/vpn/connection/vpnconnector.py", line 230, in _on_connection_event
   event = await self._update_state(new_state)
 File "/usr/lib/python3/dist-packages/proton/vpn/connection/vpnconnector.py", line 250, in _update_state
   new_event = await state_tasks
 File "/usr/lib/python3/dist-packages/proton/vpn/connection/states.py", line 225, in run_tasks
   await self.context.kill_switch.enable(
 File "/usr/lib/python3/dist-packages/proton/vpn/killswitch/backend/linux/networkmanager/nmkillswitch.py", line 59, in enable
   await self._ks_handler.add_full_killswitch_connection(permanent)
 File "/usr/lib/python3/dist-packages/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection_handler.py", line 136, in add_full_killswitch_connection
   await _wrap_future(
 File "/usr/lib/python3/dist-packages/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection_handler.py", line 51, in _wrap_future
   return await asyncio.wait_for(
 File "/usr/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
   raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError 

After attempting to connect there will be a dummy killswitch left in the network manager that you have to remove before your connection will resume.

@divSelector
Copy link
Author

Description: Ubuntu 22.04.4 LTS

Proton VPN Linux Client 4.3.2

@calexandru2018
Copy link
Contributor

Hey @divSelector , do you have IPv6 disabled ?

@divSelector
Copy link
Author

divSelector commented Jul 4, 2024

I'll give you some more information about how I've disabled ipv6 @calexandru2018

In /etc/default/grub, the following is added to the bottom:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
GRUB_CMDLINE_LINUX="ipv6.disable=1"

Then you apply these to the kernel with update-grub

I suspected while talking to the other user that we must have something in common and I was trying to think of what it could be. I suspected it was this, but I was too lazy to try undoing it until you asked.

This is indeed the cause.

@Giger22
Copy link

Giger22 commented Jul 5, 2024

I have disabled IPv6 but the app worked before and now it does not connect to a server.

@divSelector
Copy link
Author

I have disabled IPv6 but the app worked before and now it does not connect to a server.

It looks like that is pretty much where we are at right now. I'm not sure if they plan to fix it or if it's a wont fix.

We'll find out :P

@calexandru2018
Copy link
Contributor

@Giger22 and @divSelector, do you mind providing me the output of the following command:

cat /sys/module/ipv6/parameters/disable

We're working on how to detect if this is disabled at kernel level and would appreciate some help in trying to detect this.

@divSelector
Copy link
Author

cat /sys/module/ipv6/parameters/disable
1

This is while it's disabled at kernel level.

It was 0 before I disabled it again.

@calexandru2018

@Giger22
Copy link

Giger22 commented Jul 5, 2024

Same.

cat /sys/module/ipv6/parameters/disable
1

@jflaflamme
Copy link

same, unusable, stable or beta. DATEANDTIMEREOVED | proton.vpn.core.connection:168 | INFO | CONN.CONNECT:START | Server: HIDDEN / Domain: HIDDEN / OpenVPN Ports: ProtocolPorts(udp=[80, 51820, 4569, 1194, 5060], tcp=[443, 7770, 8443]) / WireGuard Ports: ProtocolPorts(udp=[443, 88, 1224, 51820, 500, 4500], tcp=[443]) / Protocol: openvpn-udp / Backend: None 2024-07-26T12:48:48.870092 | proton.vpn.connection.vpnconnector:238 | INFO | CONN:STATE_CHANGED | Connecting 2024-07-26T12:48:53.883186 | proton.vpn.app.gtk.widgets.main.exception_handler:175 | CRITICAL | APP:CRASH | Unexpected error. Traceback (most recent call last): File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result return self.__get_result() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result raise self._exception TimeoutError``

@nlflint
Copy link

nlflint commented Jul 30, 2024

Been running into this for a month or two. I've been using an openvpn profile to workaround it, but I'd like to get the official desktop app working.

OS: Ubuntu 22.04
ProtonVPN client: 4.4.2
IPv6 status: enabled

@jflaflamme
Copy link

I guess there's no interest from the proton team. I am a paid user and app broken for weeks. Break the mac and windows one for weeks to see how it will be perceived?

@divSelector
Copy link
Author

Been running into this for a month or two. I've been using an openvpn profile to workaround it, but I'd like to get the official desktop app working.

OS: Ubuntu 22.04 ProtonVPN client: 4.4.2 IPv6 status: enabled

So you're having issues and your IPv6 is enabled?

I was considering building a VM to use the VPN inside so I don't have to change my system for one application. But maybe I should look into a command line work around. What does yours look like exactly?

@nlflint
Copy link

nlflint commented Aug 20, 2024

Been running into this for a month or two. I've been using an openvpn profile to workaround it, but I'd like to get the official desktop app working.

OS: Ubuntu 22.04 ProtonVPN client: 4.4.2 IPv6 status: enabled

So you're having issues and your IPv6 is enabled?

I was considering building a VM to use the VPN inside so I don't have to change my system for one application. But maybe I should look into a command line work around. What does yours look like exactly?

Check out their guide: https://protonvpn.com/support/linux-openvpn/

There are lots of customization options and other GUIs available for OpenVPN. I tried Network Manager and another OpenVPN client from the app store, but got mysterious errors from both. I just stick to openvpn CLI for now since it works.

Once I got it setup, I just open a new terminal, run sudo openvpn ~/Downloads/my-open-vpn-filename.protonvpn.udp.ovpn. Press CTRL+C to disconnect. I edited the *.opvn file to automatically enter my user/pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants