mullvad / mullvadvpn-app

The Mullvad VPN client app for desktop and mobile
https://mullvad.net/
GNU General Public License v3.0
4.88k stars 335 forks source link

App keeps disconnecting then reconnecting itself #6496

Open nit27 opened 1 month ago

nit27 commented 1 month ago

Is it a bug?

I have checked if others have reported this already

Current Behavior

After a few minutes connected to a server, MullvadVPN continuously disconnected then reconnected by itself. Sometimes, I need to turn off the VPN then manually reconnect. Very annoying since few weeks. I also see some people have the same issue posted on Reddit.

Screenshot 2024-07-24 at 14 22 16

Expected Behavior

It should keep the connection stable.

Steps to Reproduce

  1. Auto launch on startup
  2. Auto connected to the specific server (also change to others but same issue)
  3. After few minutes, it automacally disconnects and reconnects. Sometimes it successfully reconnects to the server, or I have to manually disconnect then reconnect.
  4. Also after few minutes, step 3. happens again.

Failure Logs

[2024-07-24 11:04:42.472][verbose] Tunnel state: connected
[2024-07-24 11:04:42.632][verbose] Map canvas scale factor: 2, using: 2
[2024-07-24 11:04:52.324][verbose] Map canvas scale factor: 2, using: 2
[2024-07-24 11:07:05.022][verbose] Map canvas scale factor: 2, using: 2
[2024-07-24 13:06:30.940][verbose] Tunnel state: connected
[2024-07-24 13:06:31.051][verbose] Map canvas scale factor: 2, using: 2
[2024-07-24 14:15:47.888][verbose] Tunnel state: error
[2024-07-24 14:15:48.355][verbose] Map canvas scale factor: 2, using: 2
[2024-07-24 14:15:49.301][verbose] Tunnel state: connecting
[2024-07-24 14:15:49.480][verbose] Tunnel state: connected
[2024-07-24 14:15:55.901][verbose] Tunnel state: connected
[2024-07-24 14:15:56.060][verbose] Map canvas scale factor: 2, using: 2
[2024-07-24 14:20:41.947][verbose] Tunnel state: disconnecting
[2024-07-24 14:20:42.016][verbose] Tunnel state: error
[2024-07-24 14:20:42.956][verbose] Tunnel state: connecting
[2024-07-24 14:20:43.329][verbose] Tunnel state: connected
[2024-07-24 14:20:45.710][verbose] Tunnel state: connected
[2024-07-24 14:20:46.555][verbose] Tunnel state: disconnecting
[2024-07-24 14:20:46.627][verbose] Tunnel state: error
[2024-07-24 14:20:47.670][verbose] Tunnel state: connecting
[2024-07-24 14:20:47.806][verbose] Tunnel state: connected
[2024-07-24 14:20:49.619][verbose] Tunnel state: connected
[2024-07-24 14:21:52.443][verbose] Tunnel state: disconnecting
[2024-07-24 14:21:52.553][verbose] Tunnel state: error
[2024-07-24 14:21:53.466][verbose] Tunnel state: connecting
[2024-07-24 14:21:53.756][verbose] Tunnel state: connected
[2024-07-24 14:21:56.253][verbose] Tunnel state: connected
[2024-07-24 14:21:56.756][verbose] Tunnel state: disconnecting
[2024-07-24 14:21:56.841][verbose] Tunnel state: error
[2024-07-24 14:21:57.896][verbose] Tunnel state: connecting
[2024-07-24 14:21:58.164][verbose] Tunnel state: connected
[2024-07-24 14:22:00.530][verbose] Tunnel state: connected
[2024-07-24 14:25:33.526][verbose] Tunnel state: disconnecting
[2024-07-24 14:25:33.614][verbose] Tunnel state: error
[2024-07-24 14:25:34.531][verbose] Tunnel state: connecting
[2024-07-24 14:25:34.845][verbose] Tunnel state: connected
[2024-07-24 14:25:37.327][verbose] Tunnel state: connected
[2024-07-24 14:25:38.140][verbose] Tunnel state: disconnecting
[2024-07-24 14:25:38.312][verbose] Tunnel state: error
[2024-07-24 14:25:39.146][verbose] Tunnel state: connecting
[2024-07-24 14:25:39.439][verbose] Tunnel state: connected
[2024-07-24 14:25:41.789][verbose] Tunnel state: connected
[2024-07-24 14:25:42.551][verbose] Tunnel state: disconnecting
[2024-07-24 14:25:42.593][verbose] Tunnel state: disconnecting
[2024-07-24 14:25:42.694][verbose] Tunnel state: disconnected
[2024-07-24 14:25:43.274][verbose] Tunnel state: connecting
[2024-07-24 14:25:43.420][verbose] Tunnel state: connecting
[2024-07-24 14:25:43.870][verbose] Tunnel state: connected
[2024-07-24 14:25:46.117][verbose] Tunnel state: connected
[2024-07-24 14:27:46.807][verbose] Tunnel state: disconnecting
[2024-07-24 14:27:46.916][verbose] Tunnel state: error
[2024-07-24 14:27:47.843][verbose] Tunnel state: connecting
[2024-07-24 14:27:48.143][verbose] Tunnel state: connected
[2024-07-24 14:27:50.150][verbose] Tunnel state: connected
[2024-07-24 14:27:51.077][verbose] Tunnel state: disconnecting
[2024-07-24 14:27:51.257][verbose] Tunnel state: error
[2024-07-24 14:27:52.106][verbose] Tunnel state: connecting
[2024-07-24 14:27:52.378][verbose] Tunnel state: connected
[2024-07-24 14:27:54.937][verbose] Tunnel state: connected
[2024-07-24 14:32:32.631][verbose] Tunnel state: disconnecting
[2024-07-24 14:32:32.799][verbose] Tunnel state: error
[2024-07-24 14:32:33.656][verbose] Tunnel state: connecting
[2024-07-24 14:32:33.965][verbose] Tunnel state: connected
[2024-07-24 14:32:35.824][verbose] Tunnel state: connected
[2024-07-24 14:32:36.050][verbose] Tunnel state: disconnecting
[2024-07-24 14:32:36.068][verbose] Tunnel state: disconnecting
[2024-07-24 14:32:36.265][verbose] Tunnel state: disconnected
[2024-07-24 14:32:38.102][verbose] Tunnel state: disconnected

Operating system version

macOS 13.6.7

Mullvad VPN app version

2024.3

Additional Information

roryhealy commented 1 month ago

Also getting pretty frequent but random disconnects on Linux 6.10 and Mullvad 2024.3. Not sure if related but I've noticed a massive download speed decrease from previous versions (~250 mbps to ~50mbps).

I've tried switching wifi cards, switching to a wired connection, and tried the LTS kernel. Unfortunately none have resolved the issue.

Tunnel protocol: Wireguard

API Access:

MrChocolatine commented 1 month ago

I am also experiencing this. Maybe 1-2 times a day. I also experienced this in the past, same frequency I would say.

I have always thought these were simple network errors so I have never considered this a blocking issue.

nit27 commented 1 month ago

Also getting pretty frequent but random disconnects on Linux 6.10 and Mullvad 2024.3. Not sure if related but I've noticed a massive download speed decrease from previous versions (~250 mbps to ~50mbps).

I've tried switching wifi cards, switching to a wired connection, and tried the LTS kernel. Unfortunately none have resolved the issue.

Tunnel protocol: Wireguard

* Port 443

* Obfuscation on

* Quantum-resistant tunnel on

* IP version auto

* MTU default

API Access:

* Direct: on

* Mullvad Bridges: on

Yeah I am facing with the downgrade of Internet speed. And btw there is also an issue with Homebrew when use brew update with MullvadVPN turned on.

nit27 commented 1 month ago

I am also experiencing this. Maybe 1-2 times a day. I also experienced this in the past, same frequency I would say.

I have always thought these were simple network errors so I have never considered this a blocking issue.

I hope this is not because of APG issue 😅

MrChocolatine commented 1 month ago

I am also experiencing this. Maybe 1-2 times a day. I also experienced this in the past, same frequency I would say. I have always thought these were simple network errors so I have never considered this a blocking issue.

I hope this is not because of APG issue 😅

What is APG ? @nit27

nit27 commented 1 month ago

@MrChocolatine ahh sorry fast typing. It's the fiber optic cable route: Asia Pacific Gateway (AAG). Also we have Asia – America Gateway (AAG) and so on. I hear there are some issues with the optic cable across the world currently, but not sure if they are fixed.

d3kryption commented 1 month ago

I've been getting a disconnect issue for like a week now.

Every 20 - 40 minutes it'll just disconnect and I'll have to reconnect or switch servers to gain internet back manually.

Manjaro Linux Gnome 46 - X11

Tried switching between auto / WireGuard / OpenVPN but they all act the same.

Its very odd!

nit27 commented 1 month ago

I am not sure if I could continue to use MullVadVPN because this is the paid VPN and there were 5 days that there was still no reply from MullVad or their moderators!

nit27 commented 1 month ago

Guys! I just found solution for this issue. I disable GUI app then run the app in CLI. I am not sure how to know when the connection is failed in terminal but at least I could fix the annoying issue.

d3kryption commented 1 month ago

Guys! I just found solution for this issue. I disable GUI app then run the app in CLI. I am not sure how to know when the connection is failed in terminal but at least I could fix the annoying issue.

Hey! I just tried this. I could swear it lasted longer than the GUI but it still failed for me until I reconnected :/ Will keep trying and see if its just less often :)

Edit: Had to reboot it twice via CLI since this post

nit27 commented 1 month ago

Hello @d3kryption, sorry I was in the hurry. Let me tell you how I repoduced it

Disconnect Mullvad VPN with GUI:

Now try to run the app only in CLI,

Mullvad also has many interesting commands to manage the VPN settings. Read here

I feel that it's running in CLI is smoothier than GUI (of course), but lack of convenience in connection and tunnel managements with most of people.

Let me know if you have any better idea.

d3kryption commented 1 month ago

Hello @d3kryption, sorry I was in the hurry. Let me tell you how I repoduced it

Disconnect Mullvad VPN with GUI:

* From menubar, choose Mullvad VPN's icon, find **Disconnect & Quit**

* Make use the app doesn't connect in the background: open Terminal, type: `mullvad status -v`:
Disconnected
Your connection appears to be from: [YOUR LOCAL IP]

(you might need to kill the app in background also, but in my case, I didn't need to kill it)

* If it's still running, try: `mullvad disconnect`

Now try to run the app only in CLI,

* `mullvad connect` to connect to a default configuration VPN.

* `mullvad status` or `mullvad status -v` to check if they established a VPN tunnel.

Mullvad also has many interesting commands to manage the VPN settings. Read here

I feel that it's running in CLI is smoothier than GUI (of course), but lack of convenience in connection and tunnel managements with most of people.

Let me know if you have any better idea.

Hey

Thanks for this!

but sadly its still an issue for me :(

Glad to see it helped you however!

d3kryption commented 1 week ago

@nit27

Hey!

Just an update, I've noticed for the past week mines just started working. Never having to disconnect (its so glorious haha)

Might be worth running any updates and checking again :)

nit27 commented 1 week ago

@d3kryption oh great! Glad to hear good news from you. Unfortunately, it sometime still happens with the GUI version. Therefore, I will keep using mullvad CLI instead 😅