[GH-ISSUE #2316] Have to reconnect multiple times #1025

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

Originally created by @mikhail-mur on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2316

Describe the bug
I have to connect exactly 3 times to be able to connect.

To Reproduce
First time when I click "Connect", it says "Preparing" then "Connecting" for a few seconds, then it disconnects.
Then I click "Connect" again. It says "Connecting" and hangs like that. I can see it doing something in the Task Manager, it's using my CPU and GPU. But it hangs like that forever (at least 10+ minutes). So I have to disconnect it manually.
I then click "Connect" for the third time and after a few seconds of "Connecting" it connects and works.

Expected behavior
I would expect it to connect on the first attempt.

Log files
[2026-03-05 09:03:27.408Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::NotRunning
[2026-03-05 09:03:27.408Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 1
[2026-03-05 09:03:27.408Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:03:27.408Z] [DEBUG] Amnezia : Connection state: 'Disconnected'
[2026-03-05 09:03:30.402Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 7
[2026-03-05 09:03:31.526Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
[2026-03-05 09:03:31.527Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites
[2026-03-05 09:03:31.527Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:03:31.958Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:03:31.958Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol()
[2026-03-05 09:03:31.958Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:03:32.419Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:03:32.436Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1"
[2026-03-05 09:03:32.436Z] [DEBUG] Amnezia : this is true v4 !
[2026-03-05 09:03:32.455Z] [DEBUG] Amnezia : XrayProtocol::start()
[2026-03-05 09:03:32.455Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:03:32.455Z] [DEBUG] Amnezia : Connection state: 'Connecting...'
[2026-03-05 09:04:30.826Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:04:31.262Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:04:31.262Z] [DEBUG] Amnezia : Connection state: 'Disconnected'
[2026-03-05 09:04:31.264Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS
[2026-03-05 09:04:31.265Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes
[2026-03-05 09:04:31.265Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol()
[2026-03-05 09:04:31.265Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:04:31.679Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:04:31.697Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
[2026-03-05 09:04:31.698Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites
[2026-03-05 09:04:31.717Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1"
[2026-03-05 09:04:31.717Z] [DEBUG] Amnezia : this is true v4 !
[2026-03-05 09:04:31.734Z] [DEBUG] Amnezia : XrayProtocol::start()
[2026-03-05 09:04:31.734Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:04:31.734Z] [DEBUG] Amnezia : Connection state: 'Connecting...'
[2026-03-05 09:04:31.792Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting
[2026-03-05 09:04:31.796Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running
[2026-03-05 09:04:45.142Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:04:45.576Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:04:45.576Z] [DEBUG] Amnezia : Connection state: 'Disconnected'
[2026-03-05 09:04:45.578Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS
[2026-03-05 09:04:45.579Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes
[2026-03-05 09:04:45.579Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol()
[2026-03-05 09:04:45.579Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:04:45.996Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:04:51.971Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
[2026-03-05 09:04:51.971Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites
[2026-03-05 09:04:52.028Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1"
[2026-03-05 09:04:52.028Z] [DEBUG] Amnezia : this is true v4 !
[2026-03-05 09:04:52.045Z] [DEBUG] Amnezia : XrayProtocol::start()
[2026-03-05 09:04:52.045Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:04:52.045Z] [DEBUG] Amnezia : Connection state: 'Connecting...'
[2026-03-05 09:04:52.107Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting
[2026-03-05 09:04:52.112Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running
[2026-03-05 09:05:07.364Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::NotRunning
[2026-03-05 09:05:07.365Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 1
[2026-03-05 09:05:07.365Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:05:07.365Z] [DEBUG] Amnezia : Connection state: 'Disconnected'
[2026-03-05 09:05:10.371Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 7
[2026-03-05 09:05:12.206Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
[2026-03-05 09:05:12.206Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites
[2026-03-05 09:05:12.207Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:05:12.629Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:05:12.629Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol()
[2026-03-05 09:05:12.629Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:05:13.093Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:05:13.108Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1"
[2026-03-05 09:05:13.108Z] [DEBUG] Amnezia : this is true v4 !
[2026-03-05 09:05:13.125Z] [DEBUG] Amnezia : XrayProtocol::start()
[2026-03-05 09:05:13.125Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:05:13.126Z] [DEBUG] Amnezia : Connection state: 'Connecting...'
[2026-03-05 09:05:30.721Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:05:31.162Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:05:31.162Z] [DEBUG] Amnezia : Connection state: 'Disconnected'
[2026-03-05 09:05:31.164Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS
[2026-03-05 09:05:31.165Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes
[2026-03-05 09:05:31.165Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol()
[2026-03-05 09:05:31.165Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:05:31.579Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:05:32.795Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
[2026-03-05 09:05:32.795Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites
[2026-03-05 09:05:32.813Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1"
[2026-03-05 09:05:32.813Z] [DEBUG] Amnezia : this is true v4 !
[2026-03-05 09:05:32.830Z] [DEBUG] Amnezia : XrayProtocol::start()
[2026-03-05 09:05:32.830Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:05:32.830Z] [DEBUG] Amnezia : Connection state: 'Connecting...'
[2026-03-05 09:05:32.866Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting
[2026-03-05 09:05:32.870Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running
[2026-03-05 09:05:33.278Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 4
[2026-03-05 09:05:33.279Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:05:41.279Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connected"
[2026-03-05 09:05:41.279Z] [DEBUG] Amnezia : Connection state: 'Connected'
[2026-03-05 09:05:42.274Z] [WARNING] Amnezia : Deferring startNetworkCheck; missing gateway/local address "10.33.0.2" "10.33.0.2"
[2026-03-05 09:05:54.685Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:05:54.685Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:05:54.685Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:05:54.685Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:05:54.686Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:05:54.686Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:24:16.017Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:24:16.467Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:24:16.467Z] [DEBUG] Amnezia : Connection state: 'Disconnected'
[2026-03-05 09:24:16.471Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS
[2026-03-05 09:24:16.641Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes
[2026-03-05 09:24:16.641Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol()
[2026-03-05 09:24:16.641Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:24:17.150Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:24:20.318Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
[2026-03-05 09:24:20.318Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites
[2026-03-05 09:24:20.336Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1"
[2026-03-05 09:24:20.337Z] [DEBUG] Amnezia : this is true v4 !
[2026-03-05 09:24:21.351Z] [ERROR] Amnezia : IpcClient::InterfaceTun2Socks: Failed to initialize replica
[2026-03-05 09:24:22.353Z] [ERROR] Amnezia : IpcClient::Interface(): Failed to initialize replica
[2026-03-05 09:24:22.353Z] [WARNING] Amnezia : QObject::connect(IpcInterfaceReplica, VpnConnection): invalid nullptr parameter
[2026-03-05 09:24:23.350Z] [ERROR] Amnezia : IpcClient::Interface(): Failed to initialize replica
[2026-03-05 09:24:23.350Z] [WARNING] Amnezia : QObject::connect(IpcInterfaceReplica, VpnConnection): invalid nullptr parameter
[2026-03-05 09:24:23.350Z] [DEBUG] Amnezia : XrayProtocol::start()
[2026-03-05 09:24:29.095Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
[2026-03-05 09:24:29.096Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites
[2026-03-05 09:24:29.096Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:24:29.349Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:24:29.349Z] [DEBUG] Amnezia : Connection state: 'Disconnected'
[2026-03-05 09:24:29.350Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol()
[2026-03-05 09:24:29.350Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:24:29.560Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:24:29.575Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1"
[2026-03-05 09:24:29.575Z] [DEBUG] Amnezia : this is true v4 !
[2026-03-05 09:24:29.593Z] [DEBUG] Amnezia : XrayProtocol::start()
[2026-03-05 09:24:29.593Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:24:29.593Z] [DEBUG] Amnezia : Connection state: 'Connecting...'
[2026-03-05 09:24:29.631Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting
[2026-03-05 09:24:29.635Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running
[2026-03-05 09:24:44.916Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::NotRunning
[2026-03-05 09:24:44.916Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 1
[2026-03-05 09:24:44.916Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:24:44.916Z] [DEBUG] Amnezia : Connection state: 'Disconnected'
[2026-03-05 09:24:47.912Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 7
[2026-03-05 09:24:50.372Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
[2026-03-05 09:24:50.372Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites
[2026-03-05 09:24:50.372Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:24:50.794Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:24:50.794Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol()
[2026-03-05 09:24:50.794Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:24:51.242Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:24:51.258Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1"
[2026-03-05 09:24:51.258Z] [DEBUG] Amnezia : this is true v4 !
[2026-03-05 09:24:51.276Z] [DEBUG] Amnezia : XrayProtocol::start()
[2026-03-05 09:24:51.276Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:24:51.276Z] [DEBUG] Amnezia : Connection state: 'Connecting...'
[2026-03-05 09:29:29.264Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:29:29.721Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:29:29.721Z] [DEBUG] Amnezia : Connection state: 'Disconnected'
[2026-03-05 09:29:29.724Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS
[2026-03-05 09:29:29.725Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes
[2026-03-05 09:29:29.725Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol()
[2026-03-05 09:29:29.725Z] [DEBUG] Amnezia : XrayProtocol::stop()
[2026-03-05 09:29:30.151Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected"
[2026-03-05 09:31:20.993Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
[2026-03-05 09:31:20.994Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites
[2026-03-05 09:31:21.013Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1"
[2026-03-05 09:31:21.013Z] [DEBUG] Amnezia : this is true v4 !
[2026-03-05 09:31:21.030Z] [DEBUG] Amnezia : XrayProtocol::start()
[2026-03-05 09:31:21.030Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:31:21.030Z] [DEBUG] Amnezia : Connection state: 'Connecting...'
[2026-03-05 09:31:21.067Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting
[2026-03-05 09:31:21.072Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running
[2026-03-05 09:31:21.555Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 4
[2026-03-05 09:31:21.555Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..."
[2026-03-05 09:31:29.555Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connected"
[2026-03-05 09:31:29.555Z] [DEBUG] Amnezia : Connection state: 'Connected'
[2026-03-05 09:31:30.553Z] [WARNING] Amnezia : Deferring startNetworkCheck; missing gateway/local address "10.33.0.2" "10.33.0.2"
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS
[2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS

Desktop (please complete the following information):

  • OS: Windows 10
  • 22H2 (19045.6465)

Server (please complete the following information):

  • OS: Ubuntu 22.04

Additional context
My internet also regularly stops working while connected to the VPN (works without it) and I try to do stuff on the server (I have no idea what I'm doing) to get it back, eventually "fixing" it somehow. Last time "docker restart amnezia-xray" on the server fixed the issue. Before that I manually removed tun2socks process on my PC while VPN was running and reconnecting got me internet back. And before that I wiped the server entirely and reinstalled everything.

Originally created by @mikhail-mur on GitHub (Mar 5, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2316 **Describe the bug** I have to connect exactly 3 times to be able to connect. **To Reproduce** First time when I click "Connect", it says "Preparing" then "Connecting" for a few seconds, then it disconnects. Then I click "Connect" again. It says "Connecting" and hangs like that. I can see it doing something in the Task Manager, it's using my CPU and GPU. But it hangs like that forever (at least 10+ minutes). So I have to disconnect it manually. I then click "Connect" for the third time and after a few seconds of "Connecting" it connects and works. **Expected behavior** I would expect it to connect on the first attempt. **Log files** [2026-03-05 09:03:27.408Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::NotRunning [2026-03-05 09:03:27.408Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 1 [2026-03-05 09:03:27.408Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:03:27.408Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2026-03-05 09:03:30.402Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 7 [2026-03-05 09:03:31.526Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1" [2026-03-05 09:03:31.527Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites [2026-03-05 09:03:31.527Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:03:31.958Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:03:31.958Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2026-03-05 09:03:31.958Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:03:32.419Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:03:32.436Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1" [2026-03-05 09:03:32.436Z] [DEBUG] Amnezia : this is true v4 ! [2026-03-05 09:03:32.455Z] [DEBUG] Amnezia : XrayProtocol::start() [2026-03-05 09:03:32.455Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:03:32.455Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2026-03-05 09:04:30.826Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:04:31.262Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:04:31.262Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2026-03-05 09:04:31.264Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS [2026-03-05 09:04:31.265Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes [2026-03-05 09:04:31.265Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2026-03-05 09:04:31.265Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:04:31.679Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:04:31.697Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1" [2026-03-05 09:04:31.698Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites [2026-03-05 09:04:31.717Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1" [2026-03-05 09:04:31.717Z] [DEBUG] Amnezia : this is true v4 ! [2026-03-05 09:04:31.734Z] [DEBUG] Amnezia : XrayProtocol::start() [2026-03-05 09:04:31.734Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:04:31.734Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2026-03-05 09:04:31.792Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting [2026-03-05 09:04:31.796Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running [2026-03-05 09:04:45.142Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:04:45.576Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:04:45.576Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2026-03-05 09:04:45.578Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS [2026-03-05 09:04:45.579Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes [2026-03-05 09:04:45.579Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2026-03-05 09:04:45.579Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:04:45.996Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:04:51.971Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1" [2026-03-05 09:04:51.971Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites [2026-03-05 09:04:52.028Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1" [2026-03-05 09:04:52.028Z] [DEBUG] Amnezia : this is true v4 ! [2026-03-05 09:04:52.045Z] [DEBUG] Amnezia : XrayProtocol::start() [2026-03-05 09:04:52.045Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:04:52.045Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2026-03-05 09:04:52.107Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting [2026-03-05 09:04:52.112Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running [2026-03-05 09:05:07.364Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::NotRunning [2026-03-05 09:05:07.365Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 1 [2026-03-05 09:05:07.365Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:05:07.365Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2026-03-05 09:05:10.371Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 7 [2026-03-05 09:05:12.206Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1" [2026-03-05 09:05:12.206Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites [2026-03-05 09:05:12.207Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:05:12.629Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:05:12.629Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2026-03-05 09:05:12.629Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:05:13.093Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:05:13.108Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1" [2026-03-05 09:05:13.108Z] [DEBUG] Amnezia : this is true v4 ! [2026-03-05 09:05:13.125Z] [DEBUG] Amnezia : XrayProtocol::start() [2026-03-05 09:05:13.125Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:05:13.126Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2026-03-05 09:05:30.721Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:05:31.162Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:05:31.162Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2026-03-05 09:05:31.164Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS [2026-03-05 09:05:31.165Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes [2026-03-05 09:05:31.165Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2026-03-05 09:05:31.165Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:05:31.579Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:05:32.795Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1" [2026-03-05 09:05:32.795Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites [2026-03-05 09:05:32.813Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1" [2026-03-05 09:05:32.813Z] [DEBUG] Amnezia : this is true v4 ! [2026-03-05 09:05:32.830Z] [DEBUG] Amnezia : XrayProtocol::start() [2026-03-05 09:05:32.830Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:05:32.830Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2026-03-05 09:05:32.866Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting [2026-03-05 09:05:32.870Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running [2026-03-05 09:05:33.278Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 4 [2026-03-05 09:05:33.279Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:05:41.279Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connected" [2026-03-05 09:05:41.279Z] [DEBUG] Amnezia : Connection state: 'Connected' [2026-03-05 09:05:42.274Z] [WARNING] Amnezia : Deferring startNetworkCheck; missing gateway/local address "10.33.0.2" "10.33.0.2" [2026-03-05 09:05:54.685Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:05:54.685Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:05:54.685Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:05:54.685Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:05:54.686Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:05:54.686Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:24:16.017Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:24:16.467Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:24:16.467Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2026-03-05 09:24:16.471Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS [2026-03-05 09:24:16.641Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes [2026-03-05 09:24:16.641Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2026-03-05 09:24:16.641Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:24:17.150Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:24:20.318Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1" [2026-03-05 09:24:20.318Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites [2026-03-05 09:24:20.336Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1" [2026-03-05 09:24:20.337Z] [DEBUG] Amnezia : this is true v4 ! [2026-03-05 09:24:21.351Z] [ERROR] Amnezia : IpcClient::InterfaceTun2Socks: Failed to initialize replica [2026-03-05 09:24:22.353Z] [ERROR] Amnezia : IpcClient::Interface(): Failed to initialize replica [2026-03-05 09:24:22.353Z] [WARNING] Amnezia : QObject::connect(IpcInterfaceReplica, VpnConnection): invalid nullptr parameter [2026-03-05 09:24:23.350Z] [ERROR] Amnezia : IpcClient::Interface(): Failed to initialize replica [2026-03-05 09:24:23.350Z] [WARNING] Amnezia : QObject::connect(IpcInterfaceReplica, VpnConnection): invalid nullptr parameter [2026-03-05 09:24:23.350Z] [DEBUG] Amnezia : XrayProtocol::start() [2026-03-05 09:24:29.095Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1" [2026-03-05 09:24:29.096Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites [2026-03-05 09:24:29.096Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:24:29.349Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:24:29.349Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2026-03-05 09:24:29.350Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2026-03-05 09:24:29.350Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:24:29.560Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:24:29.575Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1" [2026-03-05 09:24:29.575Z] [DEBUG] Amnezia : this is true v4 ! [2026-03-05 09:24:29.593Z] [DEBUG] Amnezia : XrayProtocol::start() [2026-03-05 09:24:29.593Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:24:29.593Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2026-03-05 09:24:29.631Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting [2026-03-05 09:24:29.635Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running [2026-03-05 09:24:44.916Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::NotRunning [2026-03-05 09:24:44.916Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 1 [2026-03-05 09:24:44.916Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:24:44.916Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2026-03-05 09:24:47.912Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 7 [2026-03-05 09:24:50.372Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1" [2026-03-05 09:24:50.372Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites [2026-03-05 09:24:50.372Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:24:50.794Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:24:50.794Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2026-03-05 09:24:50.794Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:24:51.242Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:24:51.258Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1" [2026-03-05 09:24:51.258Z] [DEBUG] Amnezia : this is true v4 ! [2026-03-05 09:24:51.276Z] [DEBUG] Amnezia : XrayProtocol::start() [2026-03-05 09:24:51.276Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:24:51.276Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2026-03-05 09:29:29.264Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:29:29.721Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:29:29.721Z] [DEBUG] Amnezia : Connection state: 'Disconnected' [2026-03-05 09:29:29.724Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully flushed DNS [2026-03-05 09:29:29.725Z] [DEBUG] Amnezia : VpnConnection::disconnectFromVpn(): Successfully cleared saved routes [2026-03-05 09:29:29.725Z] [DEBUG] Amnezia : XrayProtocol::~XrayProtocol() [2026-03-05 09:29:29.725Z] [DEBUG] Amnezia : XrayProtocol::stop() [2026-03-05 09:29:30.151Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Disconnected" [2026-03-05 09:31:20.993Z] [DEBUG] Amnezia : VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1" [2026-03-05 09:31:20.994Z] [DEBUG] Amnezia : "ConnectToVpn, Server index is 0, container is amnezia-xray, route mode is" Settings::VpnOnlyForwardSites [2026-03-05 09:31:21.013Z] [DEBUG] Amnezia : gateway IPV4: "192.168.1.1" [2026-03-05 09:31:21.013Z] [DEBUG] Amnezia : this is true v4 ! [2026-03-05 09:31:21.030Z] [DEBUG] Amnezia : XrayProtocol::start() [2026-03-05 09:31:21.030Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:31:21.030Z] [DEBUG] Amnezia : Connection state: 'Connecting...' [2026-03-05 09:31:21.067Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Starting [2026-03-05 09:31:21.072Z] [DEBUG] Amnezia : PrivilegedProcess stateChanged QProcess::Running [2026-03-05 09:31:21.555Z] [DEBUG] Amnezia : PrivilegedProcess setConnectionState 4 [2026-03-05 09:31:21.555Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connecting..." [2026-03-05 09:31:29.555Z] [DEBUG] Amnezia : VpnProtocol::setConnectionState "Connected" [2026-03-05 09:31:29.555Z] [DEBUG] Amnezia : Connection state: 'Connected' [2026-03-05 09:31:30.553Z] [WARNING] Amnezia : Deferring startNetworkCheck; missing gateway/local address "10.33.0.2" "10.33.0.2" [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS [2026-03-05 09:31:31.421Z] [WARNING] Amnezia : VpnConnection::flushDns(): Failed to flush DNS **Desktop (please complete the following information):** - OS: Windows 10 - 22H2 (19045.6465) **Server (please complete the following information):** - OS: Ubuntu 22.04 **Additional context** My internet also regularly stops working while connected to the VPN (works without it) and I try to do stuff on the server (I have no idea what I'm doing) to get it back, eventually "fixing" it somehow. Last time "docker restart amnezia-xray" on the server fixed the issue. Before that I manually removed tun2socks process on my PC while VPN was running and reconnecting got me internet back. And before that I wiped the server entirely and reinstalled everything.
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#1025
No description provided.