[GH-ISSUE #4709] [Bug]: Client IP logs are missing for remote nodes (Nodes feature) #3254

Closed
opened 2026-10-31 20:31:09 +07:00 by bsakaguchi · 5 comments
Owner

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

Describe the bug

When I use my main panel (a US node), I can see the client IP logs normally. However, when I check the logs for clients connected to other servers via the 3XUI "Nodes" feature,

the panel actually shows "No IP record!" in the client settings, despite the user clearly being "Online" and generating traffic on the remote node.

but I expected it to successfully sync and display the IP logs from those remote servers, just like it does perfectly for my main US node.

This is a bug.

How to reproduce the problem

Add a remote server to your main panel using the "Nodes" feature.

Create an inbound (e.g., Hysteria) on this remote node and add a client.

Connect a device to this remote client and generate some network traffic.

Go to the main panel's client list, and verify that this user is marked as "Online" and has active traffic data.

Click the "Edit" button for this client.

Observe the "IP Logs" section at the bottom, which incorrectly shows "No IP record!".

(Contrast): If you repeat these steps for a client on the main panel's local node, the IP logs are recorded and displayed correctly.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

Image Image

3x-ui version

3.2.0

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

  • 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 @airenruni01 on GitHub (May 31, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4709 ### Describe the bug When I use my main panel (a US node), I can see the client IP logs normally. However, when I check the logs for clients connected to other servers via the 3XUI "Nodes" feature, the panel actually shows "No IP record!" in the client settings, despite the user clearly being "Online" and generating traffic on the remote node. but I expected it to successfully sync and display the IP logs from those remote servers, just like it does perfectly for my main US node. This is a bug. ### How to reproduce the problem Add a remote server to your main panel using the "Nodes" feature. Create an inbound (e.g., Hysteria) on this remote node and add a client. Connect a device to this remote client and generate some network traffic. Go to the main panel's client list, and verify that this user is marked as "Online" and has active traffic data. Click the "Edit" button for this client. Observe the "IP Logs" section at the bottom, which incorrectly shows "No IP record!". (Contrast): If you repeat these steps for a client on the main panel's local node, the IP logs are recorded and displayed correctly. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots <img width="539" height="669" alt="Image" src="https://github.com/user-attachments/assets/e1433d6b-59da-4a69-8970-d7c862b7735b" /> <img width="1077" height="51" alt="Image" src="https://github.com/user-attachments/assets/ece12032-81c7-478d-9dda-f11a1911840a" /> ### 3x-ui version 3.2.0 ### 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 - [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:31:09 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Dimferon commented on GitHub (May 31, 2026):

Hi, I would like to add information to this bug.
When creating a user through a remote node and trying to get information on the remote node to connect the user via a QR code, an error is returned.

Bug image Image
<!-- gh-comment-id:4586296411 --> @Dimferon commented on GitHub (May 31, 2026): Hi, I would like to add information to this bug. When creating a user through a remote node and trying to get information on the remote node to connect the user via a QR code, an error is returned. <details> <summary>Bug image</summary> <img width="993" height="510" alt="Image" src="https://github.com/user-attachments/assets/e87f7e52-ebde-400f-a93e-6083336178c8" /> </details>
Author
Owner

@mitrios-hub commented on GitHub (May 31, 2026):

Also, if new client created on master node and it has attached connections from remote nodes:

  • clients shown as offline
  • its last time connected shows none
  • its traffic shows 0
    but client really use the inbound and online.
<!-- gh-comment-id:4586376862 --> @mitrios-hub commented on GitHub (May 31, 2026): Also, if new client created on master node and it has attached connections from remote nodes: - clients shown as offline - its last time connected shows none - its traffic shows 0 but client really use the inbound and online.
Author
Owner

@Dimferon commented on GitHub (May 31, 2026):

There may be a user error related to this, the user's entry in the clients and client_inbounds tables of the database is stuck.

In client_inbounds there is a non-existent inbound_id, inbound_id was previously deleted.

The idea was to trigger the disconnection between client and inbounds, but this did not happen.

log x-ui
X-UI: Web server running HTTPS on [::]:13548
X-UI: custom geo startup: no custom geofiles configured
X-UI: Sub server running HTTPS on [::]:2096
XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json}
May 31 13:09:45 - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
May 31 13:09:46 - XRAY: core: Xray 26.5.9 started
May 31 13:09:50 - X-UI: Что-то пошло не так Сбой:  record not found
May 31 13:16:25 - X-UI: node traffic sync: merge for 'external_server' failed: sql: database is closed
May 31 13:16:25 - X-UI: Error in renew clients: sql: database is closed
May 31 13:16:25 - X-UI: Error in disabling invalid clients: sql: database is closed
May 31 13:16:25 - X-UI: Error in disabling invalid inbounds: sql: database is closed
May 31 13:16:25 - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json}
May 31 13:16:25 - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
May 31 13:16:25 - XRAY: core: Xray 26.5.9 started
May 31 13:16:28 - X-UI: Received SIGHUP signal. Restarting servers...
May 31 13:16:28 - X-UI: WebSocket hub stopped
May 31 13:16:28 - X-UI: Web server running HTTPS on [::]:13548
May 31 13:16:28 - X-UI: custom geo startup: no custom geofiles configured
May 31 13:16:28
May 31 13:16:28 - X-UI: Sub server running HTTPS on [::]:2096
May 31 13:16:28
May 31 13:26:01 - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json}
May 31 13:26:02 - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
May 31 13:26:02 - XRAY: core: Xray 26.5.9 started
May 31 13:26:07 - X-UI: Received SIGHUP signal. Restarting servers...
May 31 13:26:07 - X-UI: WebSocket hub stopped
May 31 13:26:07 - X-UI: Web server running HTTPS on [::]:13548
May 31 13:26:07 - X-UI: custom geo startup: no custom geofiles configured
May 31 13:26:07
May 31 13:26:07 - X-UI: Sub server running HTTPS on [::]:2096
May 31 13:26:07
May 31 14:01:47 - X-UI: Что-то пошло не так Сбой:  record not found
May 31 14:07:13 - X-UI: Что-то пошло не так Сбой:  record not found
May 31 14:07:14 - X-UI: Что-то пошло не так Сбой:  record not found

UPD

References to database entries and web UI

Image Image Image
<!-- gh-comment-id:4586585063 --> @Dimferon commented on GitHub (May 31, 2026): There may be a user error related to this, the user's entry in the `clients` and `client_inbounds` tables of the database is stuck. In `client_inbounds` there is a non-existent `inbound_id`, `inbound_id` was previously deleted. The idea was to trigger the disconnection between `client` and `inbounds`, but this did not happen. <details><summary> log x-ui </summary> ``` X-UI: Web server running HTTPS on [::]:13548 X-UI: custom geo startup: no custom geofiles configured X-UI: Sub server running HTTPS on [::]:2096 XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json} May 31 13:09:45 - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW May 31 13:09:46 - XRAY: core: Xray 26.5.9 started May 31 13:09:50 - X-UI: Что-то пошло не так Сбой: record not found May 31 13:16:25 - X-UI: node traffic sync: merge for 'external_server' failed: sql: database is closed May 31 13:16:25 - X-UI: Error in renew clients: sql: database is closed May 31 13:16:25 - X-UI: Error in disabling invalid clients: sql: database is closed May 31 13:16:25 - X-UI: Error in disabling invalid inbounds: sql: database is closed May 31 13:16:25 - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json} May 31 13:16:25 - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW May 31 13:16:25 - XRAY: core: Xray 26.5.9 started May 31 13:16:28 - X-UI: Received SIGHUP signal. Restarting servers... May 31 13:16:28 - X-UI: WebSocket hub stopped May 31 13:16:28 - X-UI: Web server running HTTPS on [::]:13548 May 31 13:16:28 - X-UI: custom geo startup: no custom geofiles configured May 31 13:16:28 May 31 13:16:28 - X-UI: Sub server running HTTPS on [::]:2096 May 31 13:16:28 May 31 13:26:01 - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json} May 31 13:26:02 - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW May 31 13:26:02 - XRAY: core: Xray 26.5.9 started May 31 13:26:07 - X-UI: Received SIGHUP signal. Restarting servers... May 31 13:26:07 - X-UI: WebSocket hub stopped May 31 13:26:07 - X-UI: Web server running HTTPS on [::]:13548 May 31 13:26:07 - X-UI: custom geo startup: no custom geofiles configured May 31 13:26:07 May 31 13:26:07 - X-UI: Sub server running HTTPS on [::]:2096 May 31 13:26:07 May 31 14:01:47 - X-UI: Что-то пошло не так Сбой: record not found May 31 14:07:13 - X-UI: Что-то пошло не так Сбой: record not found May 31 14:07:14 - X-UI: Что-то пошло не так Сбой: record not found ``` </details> **UPD** <details><summary> References to database entries and web UI </summary> <img width="392" height="217" alt="Image" src="https://github.com/user-attachments/assets/5628003e-94ae-4ad9-a6ad-b4246a148a41" /> <img width="677" height="167" alt="Image" src="https://github.com/user-attachments/assets/1e594272-d3af-4cbb-ab2f-89d5fa0f0128" /> <img width="1108" height="263" alt="Image" src="https://github.com/user-attachments/assets/9afb5f30-beca-4527-b3e2-2844b77aa965" /> </details>
Author
Owner

@airenruni01 commented on GitHub (May 31, 2026):

@MHSanaei

<!-- gh-comment-id:4586834946 --> @airenruni01 commented on GitHub (May 31, 2026): @MHSanaei
Author
Owner

@Dimferon commented on GitHub (Jun 1, 2026):

A temporary way to fix clients until an update is released.

x-ui stop
x-ui disable 

sqllite3 x-ui.db <<EOF
DELETE FROM client_inbounds WHERE not inbound_id in (SELECT inbounds.id FROM inbounds)
OR not client_id in (SELECT clients.id FROM clients);
EOF

x-ui start
x-ui enable
<!-- gh-comment-id:4590336262 --> @Dimferon commented on GitHub (Jun 1, 2026): A temporary way to fix clients until an update is released. ```bash x-ui stop x-ui disable sqllite3 x-ui.db <<EOF DELETE FROM client_inbounds WHERE not inbound_id in (SELECT inbounds.id FROM inbounds) OR not client_id in (SELECT clients.id FROM clients); EOF x-ui start x-ui enable ```
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#3254
No description provided.