[GH-ISSUE #4555] [Bug]: All clients of an inbound get deleted automatically #3122

Closed
opened 2026-10-31 20:30:14 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @far1dghaderi on GitHub (May 25, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4555

Describe the bug

When I check the panel logs, I can see that the system attempts to automatically remove expired clients. However, it seems to also delete active clients unexpectedly.

This issue has happened multiple times after updating to v3.0.2.

How to reproduce the problem

I’m not sure what specifically triggers this issue, so I don’t currently have reliable reproduction steps. The only observable behavior is that all clients suddenly disappear.

  • Started happening after updating to v3.0.2
  • Observed in panel logs during automatic expired-client cleanup
  • Happens multiple times, not just once

Expected behavior

No response

Actual behavior

No response

Relevant logs

2026/05/25 05:12:18 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.
2026/05/25 05:12:18 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible.
2026/05/25 05:12:18 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible.
2026/05/25 05:12:18 INFO - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json}
2026/05/25 05:12:18 INFO - X-UI: Remove Inbound User Am-2gb due to expiration or traffic limit
2026/05/25 05:12:18 INFO - X-UI: Remove Inbound User Am-1gb due to expiration or traffic limit

Screenshots

No response

3x-ui version

3.0.2

Xray-core version

26.4.25

How did you install 3x-ui?

Manual build from source

Operating system

Ubuntu 24

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

  • 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 @far1dghaderi on GitHub (May 25, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4555 ### Describe the bug When I check the panel logs, I can see that the system attempts to automatically remove expired clients. However, it seems to also delete active clients unexpectedly. This issue has happened multiple times after updating to v3.0.2. ### How to reproduce the problem I’m not sure what specifically triggers this issue, so I don’t currently have reliable reproduction steps. The only observable behavior is that all clients suddenly disappear. - Started happening after updating to v3.0.2 - Observed in panel logs during automatic expired-client cleanup - Happens multiple times, not just once ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell 2026/05/25 05:12:18 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. 2026/05/25 05:12:18 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible. 2026/05/25 05:12:18 WARNING - XRAY: common/errors: The feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated, not recommended for using and might be removed. Please migrate to XHTTP H2 & H3 as soon as possible. 2026/05/25 05:12:18 INFO - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json} 2026/05/25 05:12:18 INFO - X-UI: Remove Inbound User Am-2gb due to expiration or traffic limit 2026/05/25 05:12:18 INFO - X-UI: Remove Inbound User Am-1gb due to expiration or traffic limit ``` ### Screenshots _No response_ ### 3x-ui version 3.0.2 ### Xray-core version 26.4.25 ### How did you install 3x-ui? Manual build from source ### Operating system Ubuntu 24 ### 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 - [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:30:14 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@amirhkarimifar commented on GitHub (May 25, 2026):

@far1dghaderi This is not bug, Client's has been moved to new view "Clients" as they can be attached to multiple inbounds

<!-- gh-comment-id:4534977593 --> @amirhkarimifar commented on GitHub (May 25, 2026): @far1dghaderi This is not bug, Client's has been moved to new view "Clients" as they can be attached to multiple inbounds
Author
Owner

@far1dghaderi commented on GitHub (May 28, 2026):

@amirhkarimifar I believ it's a bug since I can't find them anywhere in the db itself and I also can't see the "Clients" section that you're refering to. I'm pretty sure they got deleted.

<!-- gh-comment-id:4563474166 --> @far1dghaderi commented on GitHub (May 28, 2026): @amirhkarimifar I believ it's a bug since I can't find them anywhere in the db itself and I also can't see the "Clients" section that you're refering to. I'm pretty sure they got deleted.
Author
Owner

@george-domin commented on GitHub (Aug 3, 2026):

I may be experiencing a related issue, but with different symptoms.

Environment:

  • 3X-UI v3.6.0
  • SQLite
  • Main server + 4 remote nodes

In my case, expired clients are automatically removed about one hour after expiration.

The client is not only removed from the UI — the record is actually deleted from the SQLite database (clients table). Related traffic records are also removed.

I have already verified:

  • identical x-ui binary SHA256 on another server;
  • same 3X-UI version;
  • same database schema;
  • same settings;
  • no SQLite triggers;
  • no cron jobs deleting clients;
  • no custom scripts responsible for deletion.

Another server with exactly the same binary does NOT reproduce this issue.

Has anyone identified which background task performs automatic expired-client cleanup? This may be related to the same cleanup mechanism described in this issue.

<!-- gh-comment-id:5167297554 --> @george-domin commented on GitHub (Aug 3, 2026): I may be experiencing a related issue, but with different symptoms. Environment: - 3X-UI v3.6.0 - SQLite - Main server + 4 remote nodes In my case, expired clients are automatically removed about one hour after expiration. The client is not only removed from the UI — the record is actually deleted from the SQLite database (`clients` table). Related traffic records are also removed. I have already verified: - identical x-ui binary SHA256 on another server; - same 3X-UI version; - same database schema; - same settings; - no SQLite triggers; - no cron jobs deleting clients; - no custom scripts responsible for deletion. Another server with exactly the same binary does NOT reproduce this issue. Has anyone identified which background task performs automatic expired-client cleanup? This may be related to the same cleanup mechanism described in this issue.
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#3122
No description provided.