mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6871] [Bug] v3.10.0 / v3.10.2: Xray fails to start with "operation not permitted" after updating through the web panel #4566
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#4566
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 @Farelkin on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6871
Describe the bug
On Debian 12, Xray-core fails to start after updating it by clicking the Xray-core "Update" button in the 3x-ui web panel. The problem occurs with both 3x-ui v3.10.0 and v3.10.2.
Xray was working before the core update. After the update, startup fails with
operation not permittedand exit status 23.How to repeat the problem?
Expected action
Xray-core updates successfully and continues working.
Received action
Xray-core fails to start, interrupting VPN connectivity.
Logs
Hostname, timestamps, process path and PID have been removed. Diagnostic messages are otherwise unchanged.
3x-ui Version
v3.10.0 and v3.10.2
Xray-core Version
Exact versions before and after the update have not been recorded.
Environment
Additional context
The v3.10.0 release notes mention systemd sandboxing and restricted capabilities:
https://github.com/MHSanaei/3x-ui/releases/tag/v3.10.0
Could these restrictions be related to the startup failure? The root cause has not been confirmed.
@github-actions[bot] commented on GitHub (Oct 18, 2026):
I can't confirm this as a 3x-ui bug yet. Your hunch about the v3.10 systemd sandbox is plausible, but I can't settle it without the Xray version you updated to and two short test commands from your server (listed below).
What the code shows
The panel's Xray updater doesn't touch the sandbox.
UpdateXray(internal/web/service/server.go:1087) only accepts a tag from the GitHub release list, checks the SHA-256 and swaps the binary in with mode0755. So the new behaviour has to come from the new Xray binary running inside the sandbox it already had.That sandbox is strict on Debian 12.
x-ui.service.debian:86limits capabilities:install.sh:1590-1596/update.sh:431also write a seccomp filter into/etc/systemd/system/x-ui.service.d/10-xui-sandbox.confwhenever systemd is 239 or newer (Debian 12 ships 252):Xray runs as a child of the panel (
internal/xray/process.go:641), so it inherits both limits. A blocked syscall returns a bareEPERM, which Go prints asoperation not permitted, with no file or path attached. That matches your log exactly. Xray-core published v26.10.17 yesterday, the 17th; the panel bundles v26.10.10 (DockerInit.sh:36). If the new build makes a syscall or needs a capability outside these limits, you would see this error. That is my inference, not something I verified: I couldn't find the exact call.A closely related case is #6796. A WireGuard kernel-TUN outbound under the same sandbox failed on
rp_filter, fixed in1f2738ed. That error named a path; yours doesn't, so it is a different block.Please reply with:
sockoptoptions (tproxy,mark,interface). These are the parts of Xray that make privileged network calls.-testbuilds the server the same way startup does, then exits without listening on anything: (Adjustxray-linux-amd64if your server isn't amd64.) If (1) printsConfiguration OK.and (2) fails withoperation not permitted, the seccomp filter is the cause. If both pass, the capability limit is the next suspect.Workaround in the meantime: in the same Xray-core update dialog, choose v26.10.10, the version the panel ships with, and apply it.
This reply was generated automatically; a maintainer may follow up.
@Farelkin commented on GitHub (Oct 19, 2026):
I checked the affected host and collected the following diagnostics.
Environment correction and current versions
The affected host is Ubuntu 22.04.5 LTS, kernel
5.15.0-191-generic,systemd
249.11-0ubuntu3.23, amd64. The Debian 12 statement in my originalreport needs correcting. I verified that this is the host from the original logs.
Its current versions are:
The installed Xray file is executable (
0755), and its hash/version match therunning process. The service is currently active. I did not change either binary
or the installed panel/core versions during these checks.
I also checked five other running nodes: all currently have 3x-ui 3.10.2 and
Xray 26.10.10, commit
701af60,go1.27.2 linux/amd64. On each, the runningand on-disk core match. This does not establish which Xray version was
installed on the affected host when the original update failed; that version
remains unconfirmed. I cannot confirm the suggested v26.10.17 hypothesis.
Configuration features
tuninbound.noKernelTun: false, one omitsnoKernelTun, and one hasnoKernelTun: true.sockopt.tproxy, nonzerosockopt.mark, orsockopt.interface.The only configured
sockoptkey isdialerProxy.The current service still has
SystemCallFilter=@system-serviceandSystemCallErrorNumber=EPERM. Its current capability bounding set is broad;the reduced four-capability set from 3.10.x is not currently in effect.
Requested test comparison
Both cases used the current 26.9.30 binary and unchanged configuration content:
run -test, without adding a syscall filterConfiguration OK.run -test, withSystemCallFilter=@system-serviceandSystemCallErrorNumber=EPERMConfiguration OK.For safety, I adjusted both tests identically: they ran as root in fresh transient
units with
PrivateNetwork=yes, with the configured file-log paths bind-maskedto
/dev/nullinside a private mount namespace. Each wrapper verified its networknamespace and log masks before executing Xray. No configuration content was
edited for the tests.
This precaution matters because
run -testconstructs the core before exiting.Kernel WireGuard constructors can create interfaces and change network sysctls;
it is not only a JSON validation step. Relevant current-version source:
run command and
kernel WireGuard constructor.
The configuration hash was stable across the successful pair. Production
panel/core processes, binary and unit-file hashes, host interfaces, routes,
rules and checked network sysctls were unchanged. No service restart, reload,
upgrade or persistent settings change was performed.
Limits of this result
These tests do not reproduce the original failure with the updated core or the
complete 3.10.x sandbox. They only show that the requested syscall filter alone
does not fail this configuration on the currently installed 26.9.30 core.
I do not have a valid result for the reduced capability set. The original
failing syscall/capability and exact failing core version remain undetermined.