[GH-ISSUE #358] Can't connect: another VPN connection is active #103

Closed
opened 2026-10-14 03:12:47 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @ADWadmin on GitHub (Oct 1, 2023).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/358

Describe the bug
Cannot connect to the newly created and only VPN.
Error: "Can't connect: another VPN connection is active".

To Reproduce

  1. By VDS
  2. Go to "Set up your own server" and enter the connection data.
  3. Click "Run setup Wizard" and select medium level.
  4. Waiting configuring...
  5. Once the configuration is complete, we are returned to the main screen where we click on the enable button.
  6. We're getting an error.

Expected behavior
The connection should be established.

Log files
AmneziaVPN.log

Screenshots
Untitled

Desktop (please complete the following information):

  • OS: Windows 10 Pro
  • Version: 22H2
  • Build: 19045.3448

Server (please complete the following information):

  • OS: Ubuntu 20.04.6 LTS with 5.4.0-163-generic

Additional context
I don't see a new network adapter in Windows. I assume that it must have been created when installing the application or creating the VPN server.
On the server, I can see the created container:

CONTAINER ID   IMAGE                 COMMAND                  CREATED          STATUS          PORTS                                       NAMES
19cfdf60a1d3   amnezia-shadowsocks   "dumb-init /opt/amne…"   12 minutes ago   Up 12 minutes   0.0.0.0:6789->6789/tcp, :::6789->6789/tcp   amnezia-shadowsocks

UFW does not display new rules for VPNs.
Iptables is very complicated for me..... All I can say is that I don't see anything containing "1194" (OpenVPN port).
But I see one line with "6789" (ShadowSocks port):

Chain DOCKER (2 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             {unknown to me ip}         tcp dpt:6789
Originally created by @ADWadmin on GitHub (Oct 1, 2023). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/358 **Describe the bug** Cannot connect to the newly created and only VPN. Error: "Can't connect: another VPN connection is active". **To Reproduce** 1. By VDS 2. Go to "Set up your own server" and enter the connection data. 3. Click "Run setup Wizard" and select medium level. 4. Waiting configuring... 5. Once the configuration is complete, we are returned to the main screen where we click on the enable button. 6. We're getting an error. **Expected behavior** The connection should be established. **Log files** [AmneziaVPN.log](https://github.com/amnezia-vpn/amnezia-client/files/12778086/AmneziaVPN.log) **Screenshots** ![Untitled](https://github.com/amnezia-vpn/amnezia-client/assets/48478709/01958d08-7f51-45ae-9ece-ec8c1c22f17e) **Desktop (please complete the following information):** - OS: Windows 10 Pro - Version: 22H2 - Build: 19045.3448 **Server (please complete the following information):** - OS: Ubuntu 20.04.6 LTS with 5.4.0-163-generic **Additional context** I don't see a new network adapter in Windows. I assume that it must have been created when installing the application or creating the VPN server. On the server, I can see the created container: ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 19cfdf60a1d3 amnezia-shadowsocks "dumb-init /opt/amne…" 12 minutes ago Up 12 minutes 0.0.0.0:6789->6789/tcp, :::6789->6789/tcp amnezia-shadowsocks ``` UFW does not display new rules for VPNs. Iptables is very complicated for me..... All I can say is that I don't see anything containing "1194" (OpenVPN port). But I see one line with "6789" (ShadowSocks port): ``` Chain DOCKER (2 references) target prot opt source destination ACCEPT tcp -- anywhere {unknown to me ip} tcp dpt:6789 ```
Author
Owner

@ADWadmin commented on GitHub (Oct 1, 2023):

Going to "Server settings" then to "protocols and services" I created two more connection options. "OpenVpn" and "WireGuard".
On the server, they are created:

CONTAINER ID   IMAGE                 COMMAND                  CREATED          STATUS          PORTS                                           NAMES
3d9410357ddf   amnezia-wireguard     "dumb-init /opt/amne…"   4 minutes ago    Up 4 minutes    0.0.0.0:51820->51820/udp, :::51820->51820/udp   amnezia-wireguard
8c8af7f5f947   amnezia-openvpn       "dumb-init /opt/amne…"   5 minutes ago    Up 5 minutes    0.0.0.0:1194->1194/udp, :::1194->1194/udp       amnezia-openvpn
19cfdf60a1d3   amnezia-shadowsocks   "dumb-init /opt/amne…"   48 minutes ago   Up 48 minutes   0.0.0.0:6789->6789/tcp, :::6789->6789/tcp       amnezia-shadowsocks

"OpenVpn" and "OpenVpn over ShadowSocks" have the same error.
"WireGuard" works, but the app won't let me change the mode from "For all connections".
I'm attaching a new log file:
AmneziaVPN.log

<!-- gh-comment-id:1742194085 --> @ADWadmin commented on GitHub (Oct 1, 2023): Going to "Server settings" then to "protocols and services" I created two more connection options. "OpenVpn" and "WireGuard". On the server, they are created: ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3d9410357ddf amnezia-wireguard "dumb-init /opt/amne…" 4 minutes ago Up 4 minutes 0.0.0.0:51820->51820/udp, :::51820->51820/udp amnezia-wireguard 8c8af7f5f947 amnezia-openvpn "dumb-init /opt/amne…" 5 minutes ago Up 5 minutes 0.0.0.0:1194->1194/udp, :::1194->1194/udp amnezia-openvpn 19cfdf60a1d3 amnezia-shadowsocks "dumb-init /opt/amne…" 48 minutes ago Up 48 minutes 0.0.0.0:6789->6789/tcp, :::6789->6789/tcp amnezia-shadowsocks ``` "OpenVpn" and "OpenVpn over ShadowSocks" have the same error. "WireGuard" works, but the app won't let me change the mode from "For all connections". I'm attaching a new log file: [AmneziaVPN.log](https://github.com/amnezia-vpn/amnezia-client/files/12778184/AmneziaVPN.log)
Author
Owner

@ADWadmin commented on GitHub (Oct 1, 2023):

I moved on and installed the remaining protocols.

OpenVpn over Cloak
Have the same error.

IPsec
Windows has seen a new internet adapter "AmneziaVPN IKEv2"
When trying to connect using the app, the connection is activated and immediately disconnected.
When trying to connect using windows tray, I get an error:
image

I am attaching a new log (it has been cleaned up since my last posts)
AmneziaVPN.log

It turns out that out of the whole range of protocols, only WireGuard works for me.
And the one only in the mode for all sites.

Any help would be appreciated. I would like to get a solution that I could recommend to my friends.

<!-- gh-comment-id:1742198961 --> @ADWadmin commented on GitHub (Oct 1, 2023): I moved on and installed the remaining protocols. **OpenVpn over Cloak** Have the same error. **IPsec** Windows has seen a new internet adapter "AmneziaVPN IKEv2" When trying to connect using the app, the connection is activated and immediately disconnected. When trying to connect using windows tray, I get an error: ![image](https://github.com/amnezia-vpn/amnezia-client/assets/48478709/ee9c8418-a6cc-44fd-b8fa-ca7aa031a78b) I am attaching a new log (it has been cleaned up since my last posts) [AmneziaVPN.log](https://github.com/amnezia-vpn/amnezia-client/files/12778203/AmneziaVPN.log) It turns out that out of the whole range of protocols, only WireGuard works for me. And the one only in the mode for all sites. Any help would be appreciated. I would like to get a solution that I could recommend to my friends.
Author
Owner

@ADWadmin commented on GitHub (Oct 4, 2023):

The basic error "Can't connect: another VPN connection is active" was solved by disabling TAP-Windows Adapter V9.
On the next attempt to connect, the adapter enabled and the connection was established.

<!-- gh-comment-id:1747415779 --> @ADWadmin commented on GitHub (Oct 4, 2023): The basic error "Can't connect: another VPN connection is active" was solved by disabling TAP-Windows Adapter V9. On the next attempt to connect, the adapter enabled and the connection was established.
Author
Owner

@ADWadmin commented on GitHub (Oct 6, 2023):

This operation has to be performed every time the OS is rebooted.

The basic error "Can't connect: another VPN connection is active" was solved by disabling TAP-Windows Adapter V9. On the next attempt to connect, the adapter enabled and the connection was established.

<!-- gh-comment-id:1750989509 --> @ADWadmin commented on GitHub (Oct 6, 2023): This operation has to be performed every time the OS is rebooted. > The basic error "Can't connect: another VPN connection is active" was solved by disabling TAP-Windows Adapter V9. On the next attempt to connect, the adapter enabled and the connection was established.
Author
Owner

@pokamest commented on GitHub (Feb 24, 2024):

Please report if issue still exists in AmneziaVPN 4.4

<!-- gh-comment-id:1962322875 --> @pokamest commented on GitHub (Feb 24, 2024): Please report if issue still exists in AmneziaVPN 4.4
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#103
No description provided.