[GH-ISSUE #904] ERROR: Failed to create TUN device: invalid argument #248

Closed
opened 2026-10-13 20:16:39 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @Karpich on GitHub (Jul 21, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/904

Describe the bug
Hello everyone.
I can not start VPN server.
after pressing the connect button nothing happens.

To Reproduce
Steps to reproduce the behavior:

  1. Open Amnezia VPN application
  2. Click on 'connect' button

Expected behavior
successfully launched vpn service
Log files

AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Connecting to: /var/run/amneziavpn/daemon.socket"
AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Daemon connected"
AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Check status"
AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Read Data"
AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Command received: status"
JAmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "Daemon" "Status request"
AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Read Data"
AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Command received: activate"
AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "Daemon" "Activating interface"
AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Reading"
AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Parse command: status"
AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "WireguardGo" "ERROR: (amn0) 2024/07/20 16:54:19 Failed to create TUN device: invalid argument"
AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "WireguardUtilsLinux" "Unable to read tunnel interface name"
AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "Daemon" "Interface creation failed."
AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Failed to activate the interface"
AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Reading"
AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Parse command: disconnected"

Server (please complete the following information):

cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian

Originally created by @Karpich on GitHub (Jul 21, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/904 **Describe the bug** Hello everyone. I can not start VPN server. after pressing the connect button nothing happens. **To Reproduce** Steps to reproduce the behavior: 1. Open Amnezia VPN application 2. Click on 'connect' button **Expected behavior** successfully launched vpn service **Log files** ``` AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Connecting to: /var/run/amneziavpn/daemon.socket" AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Daemon connected" AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Check status" AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Read Data" AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Command received: status" JAmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "Daemon" "Status request" AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Read Data" AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Command received: activate" AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "Daemon" "Activating interface" AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Reading" AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Parse command: status" AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "WireguardGo" "ERROR: (amn0) 2024/07/20 16:54:19 Failed to create TUN device: invalid argument" AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "WireguardUtilsLinux" "Unable to read tunnel interface name" AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "Daemon" "Interface creation failed." AmneziaVPN-service.sh[5274]: 2024-07-20 16:54:19 debug Amnezia "DaemonLocalServerConnection" "Failed to activate the interface" AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Reading" AmneziaVPN.desktop[5502]: 2024-07-20 16:54:19 debug Amnezia "LocalSocketController" "Parse command: disconnected" ``` **Server (please complete the following information):** ``` cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.4 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian ```
Author
Owner

@Nethius commented on GitHub (Feb 21, 2025):

Thank you for your report. Please note that GitHub is not a support channel. For assistance, please contact our support team via chat at https://t.me/amnezia_support_bot or via email at support@amnezia.org.

Our team will review the details and help resolve the issue.

<!-- gh-comment-id:2674743688 --> @Nethius commented on GitHub (Feb 21, 2025): Thank you for your report. Please note that GitHub is not a support channel. For assistance, please contact our support team via chat at https://t.me/amnezia_support_bot or via email at [support@amnezia.org](mailto:support@amnezia.org). Our team will review the details and help resolve the issue.
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#248
No description provided.