AdguardTeam / AdGuardVPNForWindows

AdGuard VPN Windows app open bug tracker
https://adguard-vpn.com/
86 stars 6 forks source link

Random disconnection issue: Can't connect to server #671

Closed mahara closed 4 months ago

mahara commented 4 months ago

Please answer the following questions for yourself before submitting an issue.

AdGuard VPN version

2.3.0 (1400)

Operating mode

VPN

Environment

- OS: Windows 11 23H2
- Other network-level software: AdGuard (7.17.1 (4709)), ESET Internet Security (17.1.11.0)

Issue Details

Steps to reproduce:

  1. Just connect to any nearest VPN server
  2. After several hours, the VPN connection got randomly disrupted with error message "Can't connect to server"

Expected Behavior

A robust and stable VPN connection without random disconnection issue, as there's no underlying internet connection issue.

Even if any internet connection issue occurs, the AdGuard VPN service should automatically reconnect.

Actual Behavior

Random disconnection issue occurs with just "Can't connect to server" error message.

And there's no clear message in the UI describing why the VPN connection got disconnected.

This additionally also causes DNS resolving issue.

Screenshots

Screenshot 1: ![Screenshot 2024-05-09 190251](https://github.com/AdguardTeam/AdGuardVPNForWindows/assets/238332/a374abb0-0c16-4d9c-b777-339dc4b2e62a) ![Screenshot 2024-05-09 190311](https://github.com/AdguardTeam/AdGuardVPNForWindows/assets/238332/e062bdec-2e8f-4b34-becf-464424c05023)

Additional Information

Settings

mahara commented 4 months ago

I also think this has something to do with robustness of VPN reconnection strategy/algorithm/etc.

Especially in the case when AdGuard VPN fails to reconnect, it should as at least give a clear description in the UI WHY it fails to reconnect.

Vitalik93 commented 4 months ago

После недавнего обновления тоже стал постоянно отваливаться. До этого все было хорошо... Снимок экрана 2024-05-10 094144

mahara commented 4 months ago

Sent the logs from the app.

But this is maybe the interesting and possibly related part:

ERROR, AdGuardVpnSvc.exe, qZKUPJAle4BRgYLMmhm, 57, 10.05.2024 19:00:18.169, Performing request with request code PRODUCTS__LICENSES__VPN(method - GetVpnProductLicenses) failed with an error
WARNING, AdGuardVpnSvc.exe, Logger, 57, 10.05.2024 19:00:18.170, Backend client exception: cannot invoke GetVpnToken
WARNING, AdGuardVpnSvc.exe, Logger, 57, 10.05.2024 19:00:18.172, Backend client exception "Timed out"(SocketError) has been wrapped
WARNING, AdGuardVpnSvc.exe, Logger, 54, 10.05.2024 19:00:18.175, OS_TUNNEL_WIN protect_with_bind: GetBestRoute2(): The network location cannot be reached. For information about network troubleshooting, see Windows Help
ERROR, AdGuardVpnSvc.exe, gNM3VYbB9YjkM8p5GF4t, 57, 10.05.2024 19:00:18.179, Cannot update vpn token and credential because backend domain is unavailable, error AdGuardVpn.Commons.Backend.Exceptions.BackendDomainUnavailableException: Backend client exception "Timed out"(SocketError) has been wrapped
Source: AdGuardVpn.Service
Stack trace:    at AdGuardVpn.Service.Backend.BackendClientService.sqrbgW4DeDx[Dbfr5xbgEcPiwr71BKWN](Func`1  , String methodName)
   at AdGuardVpn.Service.Backend.BackendClientService.GetVpnToken()
   at AdGuardVpn.Service.Backend.BackendClientService.UpdateVpnToken()
   at AdGuardVpn.Service.Auth.AuthenticationService.xc6FWrDQSf8qkufKGXhO(Object )
   at AdGuardVpn.Service.Auth.AuthenticationService.xeLbHboWfKj()

    Adguard.Vpn.BackendApi.Exceptions.VpnBackendClientException: Timed out
    Source: Adguard.Vpn
    Stack trace:    at Adguard.Vpn.BackendApi.VpnBackendClient.VpnBackendClient.Hhf0vucfl8(RequestCode  , VpnBackendClientResponseStatus  , Object  )
   at Adguard.Vpn.BackendApi.VpnBackendClient.VpnBackendClient.peLSqfZyrCIwmIWpLqx(RequestCode  , VpnBackendClientResponseStatus  , Object )
   at Adguard.Vpn.BackendApi.VpnBackendClient.VpnBackendClient.PerformRequest(RequestCode requestCode, Byte[] request)
   at Adguard.Vpn.BackendApi.Service.BaseApiMediator.R4h0VCy2xk[Xs0Qdb0KA4pj5tM0WN3,v4Xuax0DnlsE8H5t8hU](Xs0Qdb0KA4pj5tM0WN3 qeFvIo03rGURCNHV2yg, String  )
   at Adguard.Vpn.BackendApi.Service.BaseApiMediator.PerformRequestAction[TRequest,TResponse](TRequest request, String methodName)
   at Adguard.Vpn.BackendApi.Service.Impl.ProductsApi.GetVpnProductLicenses()
   at y5DVpBbRyo00o350ONxM.ycEbE69PxTc(Object , y5DVpBbRyo00o350ONxM )
   at AdGuardVpn.Service.Backend.BackendClientService.AbebgPBmhsS()
   at AdGuardVpn.Service.Backend.BackendClientService.sqrbgW4DeDx[Dbfr5xbgEcPiwr71BKWN](Func`1  , String methodName)
Vitalik93 commented 4 months ago

У меня на версии 2.2.5 все хорошо. Похоже все же косяк с последним релизом.

mahara commented 4 months ago

У меня на версии 2.2.5 все хорошо. Похоже все же косяк с последним релизом.

Do you use both QUIC and Wintun options in Advanced Settings?

Actually I'm having much more random disconnection issues along with DNS resolving issue in version 2.2.5.

2.3.0 has been much more stable so far, but maybe there are still some edge cases not handled yet, I presume.

Vitalik93 commented 4 months ago

Do you use both QUIC and Wintun options in Advanced Settings?

Нет, не включал эти опции. Почти все настройки по умолчанию.

Chaos0xff commented 4 months ago

Было тоже самое, после обновления до версии 2.3 на двух PC. Откатил VPN до 2.2.5 пока все OK. Кстати, 2.3 каждый раз долго обновляла список серверов. Из настроек только пользовательский Adguard DNS.

shamarin commented 4 months ago

The same with Wintun on and HTTP/3 and also with out it.

zubrRB commented 4 months ago

У меня тоже не работает релизная 2.3.0. QUIC задан в настройках, Wintun не используется...

adbuker commented 4 months ago

Now we are working hard on it, so we publish a fix as soon it'll be found

zubrRB commented 4 months ago

У меня начал подключаться (перестав отключаться) после отключения в настройках опции Использовать QUIC.

zubrRB commented 4 months ago

При этом практически при каждом запуске запрашивает купить или продолжить использовать бесплатную версию VPN.

vankos commented 4 months ago

Hi! Could you please try this test build: https://uploads.adguard.org/AdGuardVpn-bugfix_monitoring_revert.exe and let me know if it helps?

RU: Здравствуйте! Не могли бы обновиться на тестовый билд: https://uploads.adguard.org/AdGuardVpn-bugfix_monitoring_revert.exe и отписаться помогло ли это или нет?

Chaos0xff commented 4 months ago

Hi! Could you please try this test build: https://uploads.adguard.org/AdGuardVpn-bugfix_monitoring_revert.exe and let me know if it helps?

Не помогло, то же самое, буквально в течении пол часа 01

Chaos0xff commented 4 months ago

Так же долго с глюками обновляется список серверов, и вот в таком стиле

001

mahara commented 4 months ago

Не помогло, то же самое, буквально в течении пол часа

@Chaos0xff and everyone else having the "Unknown error" message, I've encountered that issue as well before.

What I did to solve the issue is by clean uninstalling AdGuard VPN: uninstall AdGuard VPN, tick the checkmark to delete all settings (don't forget to do this), restart Windows, and then install AdGuard VPN back.

A temporary workaround would be by restarting AdGuard VPN service in Service Manager. But I usually have the issue back after restarting Windows.

vankos commented 4 months ago

Thanks for feedback! I have another build with potential fix : https://uploads.adguard.org/AdGuardVpnExpirationFix.exe Could you try it out, please?

Спасибо за обратную связь! Не могли бы вы попробовать еще один билд с потенциальным исправлением: https://uploads.adguard.org/AdGuardVpnExpirationFix.exe ?

Chaos0xff commented 4 months ago

Снова то же самое., Теперь еще стало периодически выскакивать сообщение, Соединение... отключен/подключен, типа переподключается. 2.2.5 все ровно работает. Может логи собрать какие нибудь?

shamarin commented 4 months ago

У меня пока без разрывов, надо только подольше понаблюдать.

vankos commented 4 months ago

@mahara , @Vitalik93 , @Chaos0xff , @shamarin , @zubrRB И снова спасибо за помощь, подготовили еще одно потенциальное исправление: https://uploads.adguard.org/AdGuardVpn-bug_AG-32659_4.exe

Thanks for the help, again, we prepared another potential fix: https://uploads.adguard.org/AdGuardVpn-bug_AG-32659_4.exe

shamarin commented 4 months ago

С предыдущим у меня даже без подключения к VPN выдало через какое то время, что произошла ошибка.

shamarin commented 4 months ago

С новой версией вышибает так же

Chaos0xff commented 4 months ago

Подтверждаю, тоже самое.

mahara commented 4 months ago

Just installed, still testing and observing. No issue yet so far, but let's see later.

mahara commented 4 months ago

OK, now it's not showing any server after I restart Windows.

Screenshot 2024-05-15 013809

mahara commented 4 months ago

@vankos Which version is that: https://uploads.adguard.org/AdGuardVpn-bug_AG-32659_4.exe?

It's showing 2.3.0 nightly 30 (1401) on mine. Does it auto-update to the latest nightly version? I've already disabled auto-update in settings.

shamarin commented 4 months ago

In released version 2.3.1 this issue is fixed???

vankos commented 4 months ago

@mahara This is a special technical build that will not be published on the nightly channel. It will check for updates on the nightly channel and update to the next nightly version when it becomes available.

To return to the release channel, please reinstall the release build. We have published a new version, 2.3.1, with the fix - https://github.com/AdguardTeam/AdGuardVPNForWindows/releases/tag/v2.3.1 . You can install it and check.

Thanks a lot for helping us.

@shamarin Yes, in 2.3.1 it should be fixed.

shamarin commented 4 months ago

Will try today new build.

mahara commented 4 months ago

OK, thanks!

It seems it works more reliable and more robust in 2.3.1 now.