mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5788] [Bug]: x-ui update command issue #4025
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#4025
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 @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
@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. Forruntime.GOARCH == "arm"(Go has no separate GOARCH for armv5/6/7 — they're all justarm), it remaps toarm32and looks forxray-linux-arm32.install.sh(line 1464) andupdate.sh(line 1048) both do the opposite: after extracting the release tarball, they rename the downloaded Xray-core binary forarmv5/armv6/armv7toxray-linux-arm(notarm32). The tarball itself ships that file asxray-linux-armv7(or armv5/armv6) — see.github/workflows/release.ymlline 158 — so the scripts' rename is the step that produces the mismatched name.So every time
update.shruns 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 launchesbin/xray-linux-arm32. Nothing inupdate.shremoves or touches a pre-existingxray-linux-arm32(it only explicitly deletes a stalebin/xray-linux-amd64), so your old, correctly-named 26.6.22 binary just keeps being the one that runs, and the newly downloadedxray-linux-armsits 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 usesmtg-linux-armon 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.goonmain, and in thev3.4.2release 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.shwould leave onlybin/xray-linux-armon 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
updateyou can point the panel at the freshly downloaded binary yourself:Then check the running core version from the panel (Xray Configs page) or
x-ui statusto confirm it picked up the new binary.This reply was generated automatically; a maintainer may follow up.