[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

Open
opened 2026-10-31 20:40:33 +07:00 by bsakaguchi · 2 comments
Owner

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 permitted and exit status 23.

How to repeat the problem?

  1. Use 3x-ui v3.10.0 or v3.10.2 on Debian 12 with a working Xray configuration.
  2. Click the Xray-core "Update" button in the web panel.
  3. Observe that Xray fails to start with the errors below.

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.

WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports will increase the likelihood of your server's IP being blocked by the GFW
WARNING - XRAY: infra/conf: REALITY: Choosing "icloud.com" as the target will increase the likelihood of your server's IP being blocked by the GFW
WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports will increase the likelihood of your server's IP being blocked by the GFW
WARNING - XRAY: infra/conf: REALITY: Choosing "www.icloud.com" as the target will increase the likelihood of your server's IP being blocked by the GFW
WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports will increase the likelihood of your server's IP being blocked by the GFW
WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible.
WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible.
ERROR - XRAY: Failed to start: main: failed to create server > operation not permitted
ERROR - Failure in running xray-core: exit status 23

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

  • OS: Debian 12
  • Update method: Xray-core "Update" button in the 3x-ui web panel

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.

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 permitted` and exit status 23. ### How to repeat the problem? 1. Use 3x-ui v3.10.0 or v3.10.2 on Debian 12 with a working Xray configuration. 2. Click the Xray-core "Update" button in the web panel. 3. Observe that Xray fails to start with the errors below. ### 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. ```text WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports will increase the likelihood of your server's IP being blocked by the GFW WARNING - XRAY: infra/conf: REALITY: Choosing "icloud.com" as the target will increase the likelihood of your server's IP being blocked by the GFW WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports will increase the likelihood of your server's IP being blocked by the GFW WARNING - XRAY: infra/conf: REALITY: Choosing "www.icloud.com" as the target will increase the likelihood of your server's IP being blocked by the GFW WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports will increase the likelihood of your server's IP being blocked by the GFW WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible. WARNING - XRAY: common/errors: The feature Shadowsocks (with no Forward Secrecy, etc.) is deprecated, not recommended for using and might be removed. Please migrate to VLESS Encryption as soon as possible. ERROR - XRAY: Failed to start: main: failed to create server > operation not permitted ERROR - Failure in running xray-core: exit status 23 ``` ### 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 - OS: Debian 12 - Update method: Xray-core "Update" button in the 3x-ui web panel ### 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.
Author
Owner

@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 mode 0755. 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:86 limits capabilities:

CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW

install.sh:1590-1596 / update.sh:431 also write a seccomp filter into /etc/systemd/system/x-ui.service.d/10-xui-sandbox.conf whenever systemd is 239 or newer (Debian 12 ships 252):

SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM

Xray runs as a child of the panel (internal/xray/process.go:641), so it inherits both limits. A blocked syscall returns a bare EPERM, which Go prints as operation 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 in 1f2738ed. That error named a path; yours doesn't, so it is a different block.

Please reply with:

  1. The Xray version now installed, as shown on the panel dashboard. This shows whether you are on v26.10.17.
  2. Whether the config uses a WireGuard outbound, a TUN inbound, or sockopt options (tproxy, mark, interface). These are the parts of Xray that make privileged network calls.
  3. The output of these two commands, run as root. -test builds the server the same way startup does, then exits without listening on anything:
    # 1) outside the sandbox
    /usr/local/x-ui/bin/xray-linux-amd64 run -test -c /usr/local/x-ui/bin/config.json
    # 2) under only the seccomp filter the drop-in applies
    systemd-run --wait --pipe -p SystemCallFilter=@system-service -p SystemCallErrorNumber=EPERM \
      /usr/local/x-ui/bin/xray-linux-amd64 run -test -c /usr/local/x-ui/bin/config.json
    
    (Adjust xray-linux-amd64 if your server isn't amd64.) If (1) prints Configuration OK. and (2) fails with operation 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.

Verdict:        Insufficient information
Severity:       N/A
Confidence:     Medium
Root cause:     Not established. Likely the newer Xray (probably v26.10.17) hits the unit's seccomp filter (install.sh:1594-1595, update.sh:431) or CapabilityBoundingSet (x-ui.service.debian:86), both inherited by the child started at internal/xray/process.go:641; inference only.
Same class:     None found yet. The same sandbox blocks every Xray child and the mtg-multi/tuic sidecars once the cause is identified.
Already fixed:  Not applicable
Duplicate of:   Related: #6796 (same sandbox, different block: read-only /proc/sys/net, fixed in 1f2738ed)
Evidence:       server.go:1087-1174 updater only swaps the binary; DockerInit.sh:36 bundles v26.10.10; XTLS/Xray-core v26.10.17 released 2026-10-17
Not determined: Which syscall/capability returns EPERM; settled by the two `run -test` commands above and the installed Xray version

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:6254984910 --> @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 mode `0755`. 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:86` limits capabilities: ```ini CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW ``` `install.sh:1590-1596` / `update.sh:431` also write a seccomp filter into `/etc/systemd/system/x-ui.service.d/10-xui-sandbox.conf` whenever systemd is 239 or newer (Debian 12 ships 252): ```ini SystemCallFilter=@system-service SystemCallErrorNumber=EPERM ``` Xray runs as a child of the panel (`internal/xray/process.go:641`), so it inherits both limits. A blocked syscall returns a bare `EPERM`, which Go prints as `operation 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 in 1f2738ed. That error named a path; yours doesn't, so it is a different block. **Please reply with:** 1. **The Xray version now installed**, as shown on the panel dashboard. This shows whether you are on v26.10.17. 2. **Whether the config uses** a WireGuard outbound, a TUN inbound, or `sockopt` options (`tproxy`, `mark`, `interface`). These are the parts of Xray that make privileged network calls. 3. **The output of these two commands, run as root.** `-test` builds the server the same way startup does, then exits without listening on anything: ```bash # 1) outside the sandbox /usr/local/x-ui/bin/xray-linux-amd64 run -test -c /usr/local/x-ui/bin/config.json # 2) under only the seccomp filter the drop-in applies systemd-run --wait --pipe -p SystemCallFilter=@system-service -p SystemCallErrorNumber=EPERM \ /usr/local/x-ui/bin/xray-linux-amd64 run -test -c /usr/local/x-ui/bin/config.json ``` (Adjust `xray-linux-amd64` if your server isn't amd64.) If (1) prints `Configuration OK.` and (2) fails with `operation 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. ``` Verdict: Insufficient information Severity: N/A Confidence: Medium Root cause: Not established. Likely the newer Xray (probably v26.10.17) hits the unit's seccomp filter (install.sh:1594-1595, update.sh:431) or CapabilityBoundingSet (x-ui.service.debian:86), both inherited by the child started at internal/xray/process.go:641; inference only. Same class: None found yet. The same sandbox blocks every Xray child and the mtg-multi/tuic sidecars once the cause is identified. Already fixed: Not applicable Duplicate of: Related: #6796 (same sandbox, different block: read-only /proc/sys/net, fixed in 1f2738ed) Evidence: server.go:1087-1174 updater only swaps the binary; DockerInit.sh:36 bundles v26.10.10; XTLS/Xray-core v26.10.17 released 2026-10-17 Not determined: Which syscall/capability returns EPERM; settled by the two `run -test` commands above and the installed Xray version ``` *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
Author
Owner

@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 original
report needs correcting. I verified that this is the host from the original logs.

Its current versions are:

3x-ui: 3.9.0
Xray: 26.9.30, commit b26a91d, go1.27.1 linux/amd64

The installed Xray file is executable (0755), and its hash/version match the
running 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 running
and 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

  • Eight WireGuard inbounds; no tun inbound.
  • Three WireGuard outbounds: one has explicit noKernelTun: false, one omits
    noKernelTun, and one has noKernelTun: true.
  • No sockopt.tproxy, nonzero sockopt.mark, or sockopt.interface.
    The only configured sockopt key is dialerProxy.

The current service still has SystemCallFilter=@system-service and
SystemCallErrorNumber=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:

Test Result Exit status
run -test, without adding a syscall filter Configuration OK. 0
run -test, with SystemCallFilter=@system-service and SystemCallErrorNumber=EPERM Configuration OK. 0

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-masked
to /dev/null inside a private mount namespace. Each wrapper verified its network
namespace and log masks before executing Xray. No configuration content was
edited for the tests.

This precaution matters because run -test constructs 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.

<!-- gh-comment-id:6277336504 --> @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 original report needs correcting. I verified that this is the host from the original logs. Its **current** versions are: ```text 3x-ui: 3.9.0 Xray: 26.9.30, commit b26a91d, go1.27.1 linux/amd64 ``` The installed Xray file is executable (`0755`), and its hash/version match the running 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 running and 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 - Eight WireGuard inbounds; no `tun` inbound. - Three WireGuard outbounds: one has explicit `noKernelTun: false`, one omits `noKernelTun`, and one has `noKernelTun: true`. - No `sockopt.tproxy`, nonzero `sockopt.mark`, or `sockopt.interface`. The only configured `sockopt` key is `dialerProxy`. The current service still has `SystemCallFilter=@system-service` and `SystemCallErrorNumber=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**: | Test | Result | Exit status | | --- | --- | --- | | `run -test`, without adding a syscall filter | `Configuration OK.` | 0 | | `run -test`, with `SystemCallFilter=@system-service` and `SystemCallErrorNumber=EPERM` | `Configuration OK.` | 0 | 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-masked to `/dev/null` inside a private mount namespace. Each wrapper verified its network namespace and log masks before executing Xray. No configuration content was edited for the tests. This precaution matters because `run -test` constructs 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](https://github.com/XTLS/Xray-core/blob/v26.9.30/main/run.go) and [kernel WireGuard constructor](https://github.com/XTLS/Xray-core/blob/v26.9.30/proxy/wireguard/tun_linux.go). 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.
Sign in to join this conversation.
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
MHSanaei/3x-ui#4566
No description provided.