[GH-ISSUE #5788] [Bug]: x-ui update command issue #4025

Closed
opened 2026-10-31 20:36:37 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @csiokit on GitHub (Jul 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5788

Describe the bug

The x-ui command (option 2. update) does not update the Xray core to the latest version on armv7.
Currently, the Xray core filename in my x-ui installation is /usr/local/x-ui/bin/xray-linux-arm32, which seems to differ from what the current update script expects.

How to reproduce the problem

1.run x-ui command
2.update

Expected behavior

The update command usually updates the Xray core automatically. However, when I try to update the 3x-ui, I noticed that my system xray core name is xray-linux-arm32.
This is different from the current update script, which expects the name xray-linux-arm.
Is this discrepancy happening because I installed 3x-ui a long time ago?

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.4.2

Xray-core version

26.6.22

How did you install 3x-ui?

install.sh script

Operating system

Armbian Linux

Which parts of the panel are affected?

Install / upgrade script

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @csiokit on GitHub (Jul 4, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5788 ### Describe the bug The x-ui command (option 2. update) does not update the Xray core to the latest version on armv7. Currently, the Xray core filename in my x-ui installation is /usr/local/x-ui/bin/xray-linux-arm32, which seems to differ from what the current update script expects. ### How to reproduce the problem 1.run x-ui command 2.update ### Expected behavior The update command usually updates the Xray core automatically. However, when I try to update the 3x-ui, I noticed that my system xray core name is xray-linux-arm32. This is different from the current update script, which expects the name xray-linux-arm. Is this discrepancy happening because I installed 3x-ui a long time ago? ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.4.2 ### Xray-core version 26.6.22 ### How did you install 3x-ui? install.sh script ### Operating system Armbian Linux ### Which parts of the panel are affected? Install / upgrade script ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:36:37 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jul 4, 2026):

Confirmed: this is a real filename mismatch between the update/install scripts and the compiled panel binary on 32-bit ARM (armv5/armv6/armv7) — it is not specifically caused by installing a long time ago, though your old install happens to mask it.

What's happening, traced through the source:

  • internal/xray/process.go (GetBinaryName) computes the Xray binary the running panel will actually execute. For runtime.GOARCH == "arm" (Go has no separate GOARCH for armv5/6/7 — they're all just arm), it remaps to arm32 and looks for xray-linux-arm32.
  • install.sh (line 1464) and update.sh (line 1048) both do the opposite: after extracting the release tarball, they rename the downloaded Xray-core binary for armv5/armv6/armv7 to xray-linux-arm (not arm32). The tarball itself ships that file as xray-linux-armv7 (or armv5/armv6) — see .github/workflows/release.yml line 158 — so the scripts' rename is the step that produces the mismatched name.

So every time update.sh runs on your box, it correctly downloads the new Xray-core release and writes it to /usr/local/x-ui/bin/xray-linux-arm, but the panel binary only ever launches bin/xray-linux-arm32. Nothing in update.sh removes or touches a pre-existing xray-linux-arm32 (it only explicitly deletes a stale bin/xray-linux-amd64), so your old, correctly-named 26.6.22 binary just keeps being the one that runs, and the newly downloaded xray-linux-arm sits unused. That's why the update appears to do nothing.

For contrast, the analogous mtg (MTProto) binary lookup in internal/mtproto/process.go (GetBinaryName) has no such remap — it uses mtg-linux-arm on both the script and binary side, so it doesn't hit this problem. Xray's is the odd one out.

This is present in the current install.sh/update.sh/internal/xray/process.go on main, and in the v3.4.2 release you're running, so it isn't something already fixed in a later version. Note this also means a brand-new install on armv5/armv6/armv7 today would hit it from the other direction: install.sh would leave only bin/xray-linux-arm on disk, and the panel would fail to find any Xray binary to launch at all.

As a workaround until the scripts/binary naming is reconciled, after running update you can point the panel at the freshly downloaded binary yourself:

cp /usr/local/x-ui/bin/xray-linux-arm /usr/local/x-ui/bin/xray-linux-arm32
chmod +x /usr/local/x-ui/bin/xray-linux-arm32
systemctl restart x-ui

Then check the running core version from the panel (Xray Configs page) or x-ui status to confirm it picked up the new binary.

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

<!-- gh-comment-id:4882606146 --> @github-actions[bot] commented on GitHub (Jul 4, 2026): Confirmed: this is a real filename mismatch between the update/install scripts and the compiled panel binary on 32-bit ARM (armv5/armv6/armv7) — it is not specifically caused by installing a long time ago, though your old install happens to mask it. What's happening, traced through the source: - `internal/xray/process.go` (`GetBinaryName`) computes the Xray binary the running panel will actually execute. For `runtime.GOARCH == "arm"` (Go has no separate GOARCH for armv5/6/7 — they're all just `arm`), it remaps to `arm32` and looks for `xray-linux-arm32`. - `install.sh` (line 1464) and `update.sh` (line 1048) both do the opposite: after extracting the release tarball, they rename the downloaded Xray-core binary for `armv5`/`armv6`/`armv7` to `xray-linux-arm` (not `arm32`). The tarball itself ships that file as `xray-linux-armv7` (or armv5/armv6) — see `.github/workflows/release.yml` line 158 — so the scripts' rename is the step that produces the mismatched name. So every time `update.sh` runs on your box, it correctly downloads the new Xray-core release and writes it to `/usr/local/x-ui/bin/xray-linux-arm`, but the panel binary only ever launches `bin/xray-linux-arm32`. Nothing in `update.sh` removes or touches a pre-existing `xray-linux-arm32` (it only explicitly deletes a stale `bin/xray-linux-amd64`), so your old, correctly-named 26.6.22 binary just keeps being the one that runs, and the newly downloaded `xray-linux-arm` sits unused. That's why the update appears to do nothing. For contrast, the analogous mtg (MTProto) binary lookup in `internal/mtproto/process.go` (`GetBinaryName`) has no such remap — it uses `mtg-linux-arm` on both the script and binary side, so it doesn't hit this problem. Xray's is the odd one out. This is present in the current `install.sh`/`update.sh`/`internal/xray/process.go` on `main`, and in the `v3.4.2` release you're running, so it isn't something already fixed in a later version. Note this also means a brand-new install on armv5/armv6/armv7 today would hit it from the other direction: `install.sh` would leave only `bin/xray-linux-arm` on disk, and the panel would fail to find any Xray binary to launch at all. As a workaround until the scripts/binary naming is reconciled, after running `update` you can point the panel at the freshly downloaded binary yourself: ```bash cp /usr/local/x-ui/bin/xray-linux-arm /usr/local/x-ui/bin/xray-linux-arm32 chmod +x /usr/local/x-ui/bin/xray-linux-arm32 systemctl restart x-ui ``` Then check the running core version from the panel (Xray Configs page) or `x-ui status` to confirm it picked up the new binary. *This reply was generated automatically; a maintainer may follow up.*
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#4025
No description provided.