mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5582] [Bug]: Xray 26.6.22 fails to start #3903
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3903
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yarik2720 on GitHub (Jun 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5582
Describe the bug
After update panel from version v3.3.1 to v3.4.1 auto-updated xray to version 26.6.22 which fails to run with error if you have warp settings. Rolling back xray to version 26.6.1 runs fine.
Removing warp and switching to version 26.6.22 makes xray works again.
How to reproduce the problem
Expected behavior
xray starts successful
Actual behavior
xray fails with error
Relevant logs
Screenshots
No response
3x-ui version
3.4.1
Xray-core version
26.6.22
How did you install 3x-ui?
Docker / Docker Compose
Operating system
Ubuntu Server 24.04
Which parts of the panel are affected?
Xray config generation
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@github-actions[bot] commented on GitHub (Jun 26, 2026):
Xray-core 26.6.22 introduced a change where, at startup, it attempts to write
0to/proc/sys/net/ipv4/conf/all/rp_filterwhenever a WireGuard outbound is present withnoKernelTunleft at its default value offalse. Docker containers do not permit writing to/proc/sys/unless that specific sysctl is explicitly granted, which is why the error appears only in the Docker install and why rolling back to 26.6.1 (which did not make this attempt) resolves it.There are two independent workarounds; either one is sufficient.
Option 1 — enable
noKernelTunon the WARP outbound (recommended)In the panel UI, open the outbound (or xray config template) that uses the WARP WireGuard configuration and set
noKernelTuntotrue. This instructs xray-core to use a userspace TUN implementation instead of the kernel one, so it never tries to touch/proc/sys/. The field is present in the WireGuard outbound form as confirmed infrontend/src/lib/xray/outbound-defaults.tsandfrontend/src/schemas/protocols/outbound/wireguard.ts.If the WARP outbound lives in the xray config template rather than as a named panel outbound, edit the template JSON directly and add
"noKernelTun": trueinside thesettingsobject of thewarpoutbound entry.Option 2 — grant the sysctl in the container
Add a
sysctlsblock to the3xuiservice in yourdocker-compose.yml:Then restart:
If you use a bare
docker runcommand instead of Compose, add--sysctl net.ipv4.conf.all.rp_filter=0.Note that
sysctlsrequires the host kernel to allow namespace-scoped sysctl overrides for this key. On most Linux distributions (including Ubuntu 24.04) it works without--privileged. If it is rejected, the alternative is to set the value on the host directly:and persist it in
/etc/sysctl.d/99-xray-warp.conf.Root cause summary
The change is in xray-core, not in 3x-ui. The panel generates the outbound config with
noKernelTun: false(the library default, confirmed ininternal/web/service/xray_setting.go), which was harmless before 26.6.22. Thedocker-compose.ymlin this repository grantsNET_ADMINandNET_RAWfor fail2ban but does not set therp_filtersysctl, which is a separate requirement surfaced by this xray-core version.This reply was generated automatically; a maintainer may follow up.
@Anderhar commented on GitHub (Aug 1, 2026):
For those who interested: workarounds for both Podman and Docker are described here and here. A real fix apparently is not expected.