[GH-ISSUE #1930] Connection in most cases occurs on the second attempt #834

Open
opened 2026-10-13 20:29:26 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @Korb on GitHub (Oct 13, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1930

Originally assigned to: @Mitternacht822 on GitHub.

Describe the bug
Subj.

To Reproduce
Steps to reproduce the behavior:

  1. Add live server conf.
  2. Click 'Connect'
  3. See Preparing…
  4. See Connecting…
  5. See Connect
  6. Click 'Connect'
  7. See Connecting…
  8. See Connected

Expected behavior

  1. Add live server conf.
  2. Click 'Connect'
  3. See Connected

Log files

[2025-10-13 06:43:53.073Z] [DEBUG] Amnezia  : IpcClient::init succeed
[2025-10-13 06:43:58.051Z] [DEBUG] Amnezia  : XrayProtocol::~XrayProtocol()
[2025-10-13 06:43:58.051Z] [DEBUG] Amnezia  : XrayProtocol::stop()
[2025-10-13 06:43:58.092Z] [WARNING] Amnezia  : QWinEventNotifier: Event notifiers cannot be enabled or disabled from another thread
[2025-10-13 06:44:19.551Z] [DEBUG] Amnezia  : IpcClient::init succeed
[2025-10-13 06:44:19.552Z] [INFO] Amnezia  : Started AmneziaVPN version 4.8.10.0 3ac5d7bd
[2025-10-13 06:44:19.552Z] [INFO] Amnezia  : Windows 10 Version 22H2 (x86_64)
[2025-10-13 06:44:19.793Z] [INFO] Amnezia  : SSL backend: OpenSSL 3.0.16 11 Feb 2025
[2025-10-13 06:44:23.017Z] [DEBUG] Amnezia  : VpnConfigurator::getDnsForConfig "1.1.1.2" "1.0.0.2"
[2025-10-13 06:44:23.033Z] [DEBUG] Amnezia  : "ConnectToVpn, Server index is 3, container is amnezia-xray, route mode is" Settings::VpnAllExceptSites
[2025-10-13 06:44:23.036Z] [DEBUG] Amnezia  : IpcClient::init succeed
[2025-10-13 06:44:27.146Z] [DEBUG] Amnezia  : gateway IPV4: "188.243.196.1"
[2025-10-13 06:44:27.146Z] [DEBUG] Amnezia  : this is true v4 !
[2025-10-13 06:44:27.147Z] [DEBUG] Amnezia  : XrayProtocol xrayExecPath(): C:/Program Files/AmneziaVPN/xray/xray.exe
[2025-10-13 06:44:27.148Z] [DEBUG] Amnezia  : XrayProtocol::start() C:/Program Files/AmneziaVPN/xray/xray.exe -c C:/Temp/AmneziaVPN.GbzfRE -format=json
[2025-10-13 06:44:27.169Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Connecting..."
[2025-10-13 06:44:27.169Z] [DEBUG] Amnezia  : Connection state: 'Connecting...'
[2025-10-13 06:44:28.175Z] [DEBUG] Amnezia  : Getting Current Internet Adapter that routes to "172.252.162.231"
[2025-10-13 06:44:28.194Z] [DEBUG] Amnezia  : Internet Adapter: "wireless_32773"
[2025-10-13 06:44:28.198Z] [DEBUG] Amnezia  : PrivilegedProcess stateChanged QProcess::Starting
[2025-10-13 06:44:28.201Z] [DEBUG] Amnezia  : PrivilegedProcess stateChanged QProcess::Running
[2025-10-13 06:44:43.919Z] [DEBUG] Amnezia  : PrivilegedProcess stateChanged QProcess::NotRunning
[2025-10-13 06:44:43.919Z] [DEBUG] Amnezia  : PrivilegedProcess setConnectionState  1
[2025-10-13 06:44:43.919Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Disconnected"
[2025-10-13 06:44:43.919Z] [DEBUG] Amnezia  : Connection state: 'Disconnected'
[2025-10-13 06:44:43.934Z] [DEBUG] Amnezia  : PrivilegedProcess setConnectionState  7
[2025-10-13 06:44:45.832Z] [DEBUG] Amnezia  : VpnConfigurator::getDnsForConfig "1.1.1.2" "1.0.0.2"
[2025-10-13 06:44:45.845Z] [DEBUG] Amnezia  : "ConnectToVpn, Server index is 3, container is amnezia-xray, route mode is" Settings::VpnAllExceptSites
[2025-10-13 06:44:45.846Z] [DEBUG] Amnezia  : IpcClient::init succeed
[2025-10-13 06:44:45.847Z] [DEBUG] Amnezia  : XrayProtocol::stop()
[2025-10-13 06:44:45.855Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Disconnected"
[2025-10-13 06:44:45.855Z] [DEBUG] Amnezia  : XrayProtocol::~XrayProtocol()
[2025-10-13 06:44:45.855Z] [DEBUG] Amnezia  : XrayProtocol::stop()
[2025-10-13 06:44:45.855Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Disconnected"
[2025-10-13 06:44:45.879Z] [DEBUG] Amnezia  : gateway IPV4: "188.243.196.1"
[2025-10-13 06:44:45.879Z] [DEBUG] Amnezia  : this is true v4 !
[2025-10-13 06:44:45.880Z] [DEBUG] Amnezia  : XrayProtocol xrayExecPath(): C:/Program Files/AmneziaVPN/xray/xray.exe
[2025-10-13 06:44:45.881Z] [DEBUG] Amnezia  : XrayProtocol::start() C:/Program Files/AmneziaVPN/xray/xray.exe -c C:/Temp/AmneziaVPN.unXHRE -format=json
[2025-10-13 06:44:45.900Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Connecting..."
[2025-10-13 06:44:45.901Z] [DEBUG] Amnezia  : Connection state: 'Connecting...'
[2025-10-13 06:44:46.909Z] [DEBUG] Amnezia  : Getting Current Internet Adapter that routes to "172.252.162.231"
[2025-10-13 06:44:46.929Z] [DEBUG] Amnezia  : Internet Adapter: "wireless_32773"
[2025-10-13 06:44:46.930Z] [DEBUG] Amnezia  : PrivilegedProcess stateChanged QProcess::Starting
[2025-10-13 06:44:46.934Z] [DEBUG] Amnezia  : PrivilegedProcess stateChanged QProcess::Running
[2025-10-13 06:44:47.890Z] [DEBUG] Amnezia  : PrivilegedProcess setConnectionState  4
[2025-10-13 06:44:47.890Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Connecting..."
[2025-10-13 06:44:55.918Z] [DEBUG] Amnezia  : VpnProtocol::setConnectionState "Connected"
[2025-10-13 06:44:55.918Z] [DEBUG] Amnezia  : Connection state: 'Connected'

Screenshots
https://github.com/user-attachments/assets/390e02df-cc9b-445c-ad48-936de3042178

Desktop (please complete the following information):

  • OS: Microsoft Windows 10.0.19045.6396
  • Version: 4.8.10.0 (Aug 27 2025, 3ac5d7bd)

Additional context
Server — by IEDN Privatinstitut zur Förderung und Entwicklung öffentlicher digitaler Netze gGmbH
The desktop is directly connected to the ISP w/o router.

~ #956

Originally created by @Korb on GitHub (Oct 13, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1930 Originally assigned to: @Mitternacht822 on GitHub. **Describe the bug** Subj. **To Reproduce** Steps to reproduce the behavior: 1. Add live server conf. 2. **Click 'Connect'** 3. See `Preparing…` 4. See `Connecting…` 5. See `Connect` 6. **Click 'Connect'** 7. See `Connecting…` 8. See `Connected` **Expected behavior** 1. Add live server conf. 2. **Click 'Connect'** 3. See `Connected` **Log files** ``` [2025-10-13 06:43:53.073Z] [DEBUG] Amnezia : IpcClient::init succeed [2025-10-13 06:43:58.051Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2025-10-13 06:43:58.051Z] [DEBUG] Amnezia : XrayProtocol::stop() [2025-10-13 06:43:58.092Z] [WARNING] Amnezia : QWinEventNotifier: Event notifiers cannot be enabled or disabled from another thread [2025-10-13 06:44:19.551Z] [DEBUG] Amnezia : IpcClient::init succeed [2025-10-13 06:44:19.552Z] [INFO] Amnezia : Started AmneziaVPN version 4.8.10.0 3ac5d7bd [2025-10-13 06:44:19.552Z] [INFO] Amnezia : Windows 10 Version 22H2 (x86_64) [2025-10-13 06:44:19.793Z] [INFO] Amnezia : SSL backend: OpenSSL 3.0.16 11 Feb 2025 [2025-10-13 06:44:23.017Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "1.1.1.2" "1.0.0.2" [2025-10-13 06:44:23.033Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 3, container is amnezia-xray, route mode is" Settings::VpnAllExceptSites [2025-10-13 06:44:23.036Z] [DEBUG] Amnezia : IpcClient::init succeed [2025-10-13 06:44:27.146Z] [DEBUG] Amnezia : gateway IPV4: "188.243.196.1" [2025-10-13 06:44:27.146Z] [DEBUG] Amnezia : this is true v4 ! [2025-10-13 06:44:27.147Z] [DEBUG] Amnezia : XrayProtocol xrayExecPath(): C:/Program Files/AmneziaVPN/xray/xray.exe [2025-10-13 06:44:27.148Z] [DEBUG] Amnezia : XrayProtocol::start() C:/Program Files/AmneziaVPN/xray/xray.exe -c C:/Temp/AmneziaVPN.GbzfRE -format=json [2025-10-13 06:44:27.169Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2025-10-13 06:44:27.169Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2025-10-13 06:44:28.175Z] [DEBUG] Amnezia : Getting Current Internet Adapter that routes to "172.252.162.231" [2025-10-13 06:44:28.194Z] [DEBUG] Amnezia : Internet Adapter: "wireless_32773" [2025-10-13 06:44:28.198Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting [2025-10-13 06:44:28.201Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running [2025-10-13 06:44:43.919Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::NotRunning [2025-10-13 06:44:43.919Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 1 [2025-10-13 06:44:43.919Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2025-10-13 06:44:43.919Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2025-10-13 06:44:43.934Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 7 [2025-10-13 06:44:45.832Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "1.1.1.2" "1.0.0.2" [2025-10-13 06:44:45.845Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 3, container is amnezia-xray, route mode is" Settings::VpnAllExceptSites [2025-10-13 06:44:45.846Z] [DEBUG] Amnezia : IpcClient::init succeed [2025-10-13 06:44:45.847Z] [DEBUG] Amnezia : XrayProtocol::stop() [2025-10-13 06:44:45.855Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2025-10-13 06:44:45.855Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2025-10-13 06:44:45.855Z] [DEBUG] Amnezia : XrayProtocol::stop() [2025-10-13 06:44:45.855Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2025-10-13 06:44:45.879Z] [DEBUG] Amnezia : gateway IPV4: "188.243.196.1" [2025-10-13 06:44:45.879Z] [DEBUG] Amnezia : this is true v4 ! [2025-10-13 06:44:45.880Z] [DEBUG] Amnezia : XrayProtocol xrayExecPath(): C:/Program Files/AmneziaVPN/xray/xray.exe [2025-10-13 06:44:45.881Z] [DEBUG] Amnezia : XrayProtocol::start() C:/Program Files/AmneziaVPN/xray/xray.exe -c C:/Temp/AmneziaVPN.unXHRE -format=json [2025-10-13 06:44:45.900Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2025-10-13 06:44:45.901Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2025-10-13 06:44:46.909Z] [DEBUG] Amnezia : Getting Current Internet Adapter that routes to "172.252.162.231" [2025-10-13 06:44:46.929Z] [DEBUG] Amnezia : Internet Adapter: "wireless_32773" [2025-10-13 06:44:46.930Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting [2025-10-13 06:44:46.934Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running [2025-10-13 06:44:47.890Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 4 [2025-10-13 06:44:47.890Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2025-10-13 06:44:55.918Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connected" [2025-10-13 06:44:55.918Z] [DEBUG] Amnezia : Connection state: 'Connected' ``` **Screenshots** https://github.com/user-attachments/assets/390e02df-cc9b-445c-ad48-936de3042178 **Desktop (please complete the following information):** - OS: Microsoft Windows 10.0.19045.6396 - Version: 4.8.10.0 (Aug 27 2025, 3ac5d7bd) **Additional context** Server — by IEDN Privatinstitut zur Förderung und Entwicklung öffentlicher digitaler Netze gGmbH The desktop is directly connected to the ISP w/o router. ~ #956
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#834
No description provided.