mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4803] [Bug]: Something went wrong (UNIQUE constraint failed: clients.email) #3339
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#3339
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 @alighaffari3000 on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4803
Describe the bug
Bug Description
After updating to the latest version of Panel, I am unable to assign a single client to more than one inbound.
When I try to add an existing client to a second inbound, the operation fails with the following error:
"Something went wrong (UNIQUE constraint failed: clients.email)"
How to reproduce the problem
Result
The operation fails with the following error:
Expected Result
The client should be created successfully and assigned to all selected inbounds.
Additional Information
This issue started after upgrading to version 3.2.6. I was attempting to create a new client and assign multiple inbounds during the initial creation process.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.6
Xray-core version
26.5.9
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
No response
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 (Jun 2, 2026):
Thank you for the detailed report!
This appears to be a duplicate of #4508 (and related issues #4489, #4540), which tracks the same
UNIQUE constraint failed: clients.emailerror introduced around v3.1.0.What's known so far:
Suggested workaround for old inbounds:
If the issue persists even with fresh inbounds on a clean v3.2.6 installation (not an upgrade), please share the relevant logs and your database setup, as that would indicate the fix is incomplete.
Closing this as a duplicate of #4508. Please follow that issue for updates.