[GH-ISSUE #3068] [iOS] VLESS/Xray tunnel plugin dies unexpectedly after some time connected (NEVPNConnectionErrorDomain 12, "The VPN plugin died unexpectedly") #1417

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

Originally created by @hayderi on GitHub (Aug 27, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3068

Describe the bug

On iOS 26.6.1 (iPhone), AmneziaVPN 5.0.1.5 with self-hosted VLESS/Xray (container amnezia-xray), the VPN connects but disconnects after ~10-25 min, then crash-loops (reconnect dies in ~0.5s). Server is healthy (0 restarts, no errors).

To Reproduce

  1. Self-hosted VLESS/Xray server (works fine from Karing/Happ)
  2. Connect via AmneziaVPN iOS 5.0.1.5
  3. Use 10-25 min
  4. Drops; "plugin died"; auto-reconnect dies again in 0.5s

Log (AmneziaVPN.log)

13:07:54 Disconnect error NEVPNConnectionErrorDomain 12 "The VPN session failed because an internal error occurred."
13:07:54 Disconnect error info "The VPN plugin died unexpectedly."
13:07:55 Trying to connect to VPN, container is amnezia-xray
13:07:56 Vpn::Connected
13:07:56 Vpn::Disconnecting
13:07:57 Vpn::Disconnected

Smartphone

  • Device: iPhone
  • OS: iOS 26.6.1
  • Version: AmneziaVPN 5.0.1.5

Server

  • OS: Ubuntu 24.04 LTS
  • Xray: v26.6.27, 0 restarts during disconnect (server healthy)

Additional context

  • Same server works flawlessly via Karing and Happ.
  • AmneziaWG to same server is stable — issue is specific to the Xray/VLESS path.
  • Related: #3042, #2791, #2933 (client-side Xray stability bugs).
Originally created by @hayderi on GitHub (Aug 27, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3068 ## Describe the bug On iOS 26.6.1 (iPhone), AmneziaVPN 5.0.1.5 with self-hosted VLESS/Xray (container amnezia-xray), the VPN connects but disconnects after ~10-25 min, then crash-loops (reconnect dies in ~0.5s). Server is healthy (0 restarts, no errors). ## To Reproduce 1. Self-hosted VLESS/Xray server (works fine from Karing/Happ) 2. Connect via AmneziaVPN iOS 5.0.1.5 3. Use 10-25 min 4. Drops; "plugin died"; auto-reconnect dies again in 0.5s ## Log (AmneziaVPN.log) 13:07:54 Disconnect error NEVPNConnectionErrorDomain 12 "The VPN session failed because an internal error occurred." 13:07:54 Disconnect error info "The VPN plugin died unexpectedly." 13:07:55 Trying to connect to VPN, container is amnezia-xray 13:07:56 Vpn::Connected 13:07:56 Vpn::Disconnecting 13:07:57 Vpn::Disconnected ## Smartphone - Device: iPhone - OS: iOS 26.6.1 - Version: AmneziaVPN 5.0.1.5 ## Server - OS: Ubuntu 24.04 LTS - Xray: v26.6.27, 0 restarts during disconnect (server healthy) ## Additional context - Same server works flawlessly via Karing and Happ. - AmneziaWG to same server is stable — issue is specific to the Xray/VLESS path. - Related: #3042, #2791, #2933 (client-side Xray stability bugs).
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#1417
No description provided.