[GH-ISSUE #5456] [Bug]: Node restart re-adds the node's full cumulative per-client traffic to master counters (double-counting) #3816

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

Originally created by @Mohamad82Bz on GitHub (Jun 20, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5456

Describe the bug

When a sub-node goes offline and reconnects, the master panel adds the node's entire cumulative per-client traffic counter onto each client's master total a second time, instead of applying only the delta since the last successful sync. Many clients jumped by roughly their full lifetime usage, pushing them over quota and auto-disabling them.

One of my two sub-nodes (iran-1) rebooted. In the same ~5-minute sync window that the node came back online, 50 clients' counters spiked by a combined ~2,560 GB. For nearly every affected client, the amount added equals that node's stored cumulative up+down for the same client (node_client_traffics) — the tell that the node's full counter was folded in as new usage.

All panels run the main build from commit 37c5e0b ("feat(node): node hardening — mTLS, hashed+zstd reconcile transport"), so the reconcile transport is a likely suspect.

How to reproduce the problem

  1. Set up a master with at least one sub-node that has accumulated meaningful per-client traffic (non-zero node counters).
  2. Confirm client totals on the master are stable and correct.
  3. Power off the sub-node's VPS (or stop the node service) for a while, then power it back on so it re-registers.
  4. Wait for the next node traffic sync/reconcile cycle after the node reconnects.
  5. Observe each client's traffic on the master jump upward by approximately that node's cumulative up+down for the client.

Expected behavior

On reconnect, the master should reconcile against the last-known baseline for that node and add only the delta (new - last-seen) to each client total. A node restart should never increase a client's total by more than the traffic actually used.

Actual behavior

The master added the node's full cumulative per-client counter again, in one step, in the sync window right after the node reconnected.

Evidence (per-client traffic sampled every 5 min; times IRST/UTC+3:30):

  • Spike window: 2026-06-20 22:37:54 -> 22:42:54 (single 5-min interval).
  • System-wide jump: ~2,560 GB vs a normal ~3-5 GB/interval.
  • 50 clients affected; 49 have records on the rebooted node (iran-1).
  • iran-1 uptime at backup was only 5,185 s (~86 min) => booted ~22:40, inside the spike window. The other node (iran-2, ~8 days uptime) was not involved.

Phantom amount added vs the rebooted node's stored cumulative up+down (names redacted):

client added at spike (GB) iran-1 stored up+down (GB)
reverse-A 868.29 868.30
reverse-B 426.36 426.36
client-C 167.71 167.71
client-D 135.82 135.81
client-E 48.00 48.00
client-F 45.05 45.05
client-G 20.01 20.01

Both up and down counters were inflated (not just total), consistent with the node's full up/down being re-applied.

Relevant logs


Screenshots

No response

3x-ui version

main build 37c5e0b (CI run 27610742946, 2026-06-16) - after 3.3.1

Xray-core version

26.6.1

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)

N/A (not a UI bug)

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 @Mohamad82Bz on GitHub (Jun 20, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5456 ### Describe the bug When a sub-node goes offline and reconnects, the master panel adds the node's **entire cumulative per-client traffic counter** onto each client's master total a second time, instead of applying only the delta since the last successful sync. Many clients jumped by roughly their full lifetime usage, pushing them over quota and auto-disabling them. One of my two sub-nodes (`iran-1`) rebooted. In the same ~5-minute sync window that the node came back online, 50 clients' counters spiked by a combined ~2,560 GB. For nearly every affected client, the amount added equals that node's stored cumulative `up+down` for the same client (`node_client_traffics`) — the tell that the node's full counter was folded in as new usage. All panels run the `main` build from commit 37c5e0b ("feat(node): node hardening — mTLS, hashed+zstd reconcile transport"), so the reconcile transport is a likely suspect. ### How to reproduce the problem 1. Set up a master with at least one sub-node that has accumulated meaningful per-client traffic (non-zero node counters). 2. Confirm client totals on the master are stable and correct. 3. Power off the sub-node's VPS (or stop the node service) for a while, then power it back on so it re-registers. 4. Wait for the next node traffic sync/reconcile cycle after the node reconnects. 5. Observe each client's traffic on the master jump upward by approximately that node's cumulative up+down for the client. ### Expected behavior On reconnect, the master should reconcile against the last-known baseline for that node and add only the delta (new - last-seen) to each client total. A node restart should never increase a client's total by more than the traffic actually used. ### Actual behavior The master added the node's full cumulative per-client counter again, in one step, in the sync window right after the node reconnected. Evidence (per-client traffic sampled every 5 min; times IRST/UTC+3:30): - Spike window: 2026-06-20 22:37:54 -> 22:42:54 (single 5-min interval). - System-wide jump: ~2,560 GB vs a normal ~3-5 GB/interval. - 50 clients affected; 49 have records on the rebooted node (iran-1). - iran-1 uptime at backup was only 5,185 s (~86 min) => booted ~22:40, inside the spike window. The other node (iran-2, ~8 days uptime) was not involved. Phantom amount added vs the rebooted node's stored cumulative up+down (names redacted): | client | added at spike (GB) | iran-1 stored up+down (GB) | |---|---|---| | reverse-A | 868.29 | 868.30 | | reverse-B | 426.36 | 426.36 | | client-C | 167.71 | 167.71 | | client-D | 135.82 | 135.81 | | client-E | 48.00 | 48.00 | | client-F | 45.05 | 45.05 | | client-G | 20.01 | 20.01 | Both up and down counters were inflated (not just total), consistent with the node's full up/down being re-applied. ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version main build 37c5e0b (CI run 27610742946, 2026-06-16) - after 3.3.1 ### Xray-core version 26.6.1 ### 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) N/A (not a UI bug) ### 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:35:09 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jun 20, 2026):

The report is well-evidenced and the data points to a concrete accounting bug. Here is what the source shows and what additional information is needed to reproduce and fix it.

How the delta accounting works

setRemoteTrafficLocked (internal/web/service/inbound_node.go) maintains a per-(node, email) baseline in the node_client_traffics table. On every sync it computes:

delta = canon.Up - baseline.Up

where canon.Up is the maximum reported by any inbound on that node for that email (the nodeEmailTotals max-fold added for #5274). The baseline is then immediately updated to canon.Up so the next cycle starts fresh.

A "reset clamp" guards against counter resets: if delta < 0 (the node counter went down, e.g. because the node's Xray or DB was wiped), the code substitutes canon.Up as the delta instead of a negative number.

What the evidence implies

Your table shows that, for every affected client, the amount added equals node_client_traffics.up + node_client_traffics.down. After a sync, node_client_traffics is always overwritten with the current node counter, so the "stored up+down" you are reading is the new baseline written during the buggy sync — which equals canon.Up + canon.Down at that moment.

For the delta to equal the full current counter:

delta = canon.Up - baseline.Up = canon.Up    →    baseline.Up = 0

The old baseline must have been zero (a row existed in node_client_traffics with up = 0, down = 0). A missing baseline (\!seen) would yield delta = 0, so the row was present but held zero.

When does a baseline become zero

upsertNodeBaseline (inbound_node.go:172) is the only path that writes node_client_traffics values. It always writes the current canon.Up / canon.Down. A baseline of zero therefore requires that the master successfully synced this node while the node was reporting 0 for those clients. This can happen in at least two ways:

  1. Traffic-reset while node is online: A "Reset traffic" action for the client is propagated to the node via rt.ResetClientTraffic (inbound_traffic.go:617-619), setting the node's client_traffics.up = 0. If the master's next 5-second sync runs before the node has re-accumulated meaningful traffic, it writes baseline = 0. If the node then goes offline (reboot), it may accumulate hundreds of GB before reconnecting — the master sees that full amount against a zero baseline.

  2. Fresh install or DB wipe on the node during a brief reachable window: If the node's client_traffics table was empty (e.g. a fresh panel install overwrote the DB), the /panel/api/inbounds/list response will have ClientStats with up = 0 (or no stats at all, which enrichClientStats synthesizes as zero). A sync at this moment writes baseline = 0. If the node then reboots again with the old database restored (or the old database was preserved but the DB migration reset the counter rows), the next sync sees the historical value against the zero baseline.

The reset-clamp is meant to handle counter decreases, but it only adds the current counter as new traffic (deltaUp = canon.Up) — so a zero baseline plus a large current counter produces exactly the reported spike.

Why the reconcile transport may be involved

The mTLS / zstd reconcile transport (internal/web/middleware/config_envelope.go, internal/web/runtime/remote.go:do) does not alter traffic or baseline logic. However, a node freshly reconnecting with ConfigDirty = true runs ReconcileNode before the first traffic snapshot. ReconcileNode calls UpdateInbound on the node (remote.go:457), which triggers updateClientTraffics on the node side. For clients in the current inbound settings but not yet in client_traffics on the node (e.g. after a DB wipe or fresh install), AddClientStat inserts a row with up = 0, down = 0. The immediately-following FetchTrafficSnapshot would then show those rows as zero — triggering upsertNodeBaseline(0, 0) if the master has a node_client_traffics row with any non-zero value from a previous run (race direction can reverse). This is speculative; logs would confirm or eliminate it.

Diagnostic steps

Please collect the following from the master panel around 22:37–22:43 IRST on 2026-06-20:

  1. Master panel log (enable debug level if not already set via XUI_LOG_LEVEL=debug in /etc/default/x-ui). Look for lines containing "node traffic sync" and the name iran-1 from roughly 21:00 onward. In particular:

    • Did the master log "node traffic sync: fetch from iran-1 failed" or "merge for iran-1 failed" repeatedly before the spike?
    • Was there any "node traffic sync: reconcile for iran-1 failed" or "node traffic sync: reconcile for iran-1" just before the spike?
  2. Immediately after discovering the spike, run on the master:

    sqlite3 /etc/x-ui/x-ui.db \
      "SELECT email, up, down FROM node_client_traffics WHERE node_id = <iran-1-node-id> LIMIT 20;"
    

    This shows the current (post-spike) baselines. They should now equal the node's counter. Also check:

    sqlite3 /etc/x-ui/x-ui.db \
      "SELECT up, down FROM node_client_traffics WHERE node_id = <iran-1-node-id> AND email = 'reverse-A';"
    
  3. On the node (iran-1), check whether the panel's database was ever at zero for these clients:

    sqlite3 /etc/x-ui/x-ui.db \
      "SELECT email, up, down FROM client_traffics WHERE email = 'reverse-A';"
    

    And confirm the node's current Xray uptime vs. its client_traffics accumulation to determine whether the traffic is from before or after the most recent reboot.

  4. Confirm: was a "Reset traffic" action performed for any of the affected clients (reverse-A, reverse-B, etc.) within the past few days or weeks while iran-1 was online?

  5. Confirm: did iran-1 undergo a fresh install or DB migration at any point recently, or was this purely a power-cycle reboot with no software changes?

Relationship to prior issues

This is not a duplicate of #5202 (which is about new clients whose baseline commit fails due to network timeouts causing repeated compounding while the client is online) or of #5190 (PostgreSQL node-replacement data inconsistency). The failure mode here — one large spike on reconnect — is distinct and occurs for established clients, not just new ones. It belongs to the same general category of delta-accounting failures.


This reply was generated automatically by an issue-triage assistant; a maintainer may follow up with additional context or a fix.

<!-- gh-comment-id:4760138551 --> @github-actions[bot] commented on GitHub (Jun 20, 2026): The report is well-evidenced and the data points to a concrete accounting bug. Here is what the source shows and what additional information is needed to reproduce and fix it. **How the delta accounting works** `setRemoteTrafficLocked` (`internal/web/service/inbound_node.go`) maintains a per-(node, email) baseline in the `node_client_traffics` table. On every sync it computes: ``` delta = canon.Up - baseline.Up ``` where `canon.Up` is the maximum reported by any inbound on that node for that email (the `nodeEmailTotals` max-fold added for #5274). The baseline is then immediately updated to `canon.Up` so the next cycle starts fresh. A "reset clamp" guards against counter resets: if `delta < 0` (the node counter went down, e.g. because the node's Xray or DB was wiped), the code substitutes `canon.Up` as the delta instead of a negative number. **What the evidence implies** Your table shows that, for every affected client, the **amount added equals `node_client_traffics.up + node_client_traffics.down`**. After a sync, `node_client_traffics` is always overwritten with the current node counter, so the "stored up+down" you are reading is the *new* baseline written during the buggy sync — which equals `canon.Up + canon.Down` at that moment. For the delta to equal the full current counter: ``` delta = canon.Up - baseline.Up = canon.Up → baseline.Up = 0 ``` The old baseline must have been **zero** (a row existed in `node_client_traffics` with `up = 0, down = 0`). A missing baseline (`\!seen`) would yield `delta = 0`, so the row was present but held zero. **When does a baseline become zero** `upsertNodeBaseline` (`inbound_node.go:172`) is the only path that writes `node_client_traffics` values. It always writes the current `canon.Up / canon.Down`. A baseline of zero therefore requires that the master successfully synced this node *while the node was reporting 0* for those clients. This can happen in at least two ways: 1. **Traffic-reset while node is online**: A "Reset traffic" action for the client is propagated to the node via `rt.ResetClientTraffic` (`inbound_traffic.go:617-619`), setting the node's `client_traffics.up = 0`. If the master's next 5-second sync runs before the node has re-accumulated meaningful traffic, it writes `baseline = 0`. If the node then goes offline (reboot), it may accumulate hundreds of GB before reconnecting — the master sees that full amount against a zero baseline. 2. **Fresh install or DB wipe on the node during a brief reachable window**: If the node's `client_traffics` table was empty (e.g. a fresh panel install overwrote the DB), the `/panel/api/inbounds/list` response will have `ClientStats` with `up = 0` (or no stats at all, which `enrichClientStats` synthesizes as zero). A sync at this moment writes `baseline = 0`. If the node then reboots again with the *old* database restored (or the old database was preserved but the DB migration reset the counter rows), the next sync sees the historical value against the zero baseline. The reset-clamp is meant to handle counter decreases, but it only adds the *current* counter as new traffic (`deltaUp = canon.Up`) — so a zero baseline plus a large current counter produces exactly the reported spike. **Why the reconcile transport may be involved** The mTLS / zstd reconcile transport (`internal/web/middleware/config_envelope.go`, `internal/web/runtime/remote.go:do`) does not alter traffic or baseline logic. However, a node freshly reconnecting with `ConfigDirty = true` runs `ReconcileNode` before the first traffic snapshot. `ReconcileNode` calls `UpdateInbound` on the node (`remote.go:457`), which triggers `updateClientTraffics` on the node side. For clients in the *current* inbound settings but not yet in `client_traffics` on the node (e.g. after a DB wipe or fresh install), `AddClientStat` inserts a row with `up = 0, down = 0`. The immediately-following `FetchTrafficSnapshot` would then show those rows as zero — triggering `upsertNodeBaseline(0, 0)` if the master has a `node_client_traffics` row with any non-zero value from a previous run (race direction can reverse). This is speculative; logs would confirm or eliminate it. **Diagnostic steps** Please collect the following from the master panel around 22:37–22:43 IRST on 2026-06-20: 1. Master panel log (enable debug level if not already set via `XUI_LOG_LEVEL=debug` in `/etc/default/x-ui`). Look for lines containing `"node traffic sync"` and the name iran-1 from roughly 21:00 onward. In particular: - Did the master log `"node traffic sync: fetch from iran-1 failed"` or `"merge for iran-1 failed"` repeatedly before the spike? - Was there any `"node traffic sync: reconcile for iran-1 failed"` or `"node traffic sync: reconcile for iran-1"` just before the spike? 2. Immediately after discovering the spike, run on the **master**: ```bash sqlite3 /etc/x-ui/x-ui.db \ "SELECT email, up, down FROM node_client_traffics WHERE node_id = <iran-1-node-id> LIMIT 20;" ``` This shows the current (post-spike) baselines. They should now equal the node's counter. Also check: ```bash sqlite3 /etc/x-ui/x-ui.db \ "SELECT up, down FROM node_client_traffics WHERE node_id = <iran-1-node-id> AND email = 'reverse-A';" ``` 3. On the **node** (iran-1), check whether the panel's database was ever at zero for these clients: ```bash sqlite3 /etc/x-ui/x-ui.db \ "SELECT email, up, down FROM client_traffics WHERE email = 'reverse-A';" ``` And confirm the node's current Xray uptime vs. its `client_traffics` accumulation to determine whether the traffic is from before or after the most recent reboot. 4. Confirm: was a **"Reset traffic"** action performed for any of the affected clients (reverse-A, reverse-B, etc.) within the past few days or weeks while iran-1 was online? 5. Confirm: did iran-1 undergo a **fresh install** or **DB migration** at any point recently, or was this purely a power-cycle reboot with no software changes? **Relationship to prior issues** This is not a duplicate of #5202 (which is about new clients whose baseline commit fails due to network timeouts causing repeated compounding *while the client is online*) or of #5190 (PostgreSQL node-replacement data inconsistency). The failure mode here — one large spike on reconnect — is distinct and occurs for established clients, not just new ones. It belongs to the same general category of delta-accounting failures. --- *This reply was generated automatically by an issue-triage assistant; a maintainer may follow up with additional context or a fix.*
Author
Owner

@Mohamad82Bz commented on GitHub (Jun 21, 2026):

<html> <html><head></head>

Thanks for the detailed analysis — it matches what I can reconstruct from the data, and I can confirm several of your points directly.

Logs: Unfortunately I don't have them for the event. Debug logging was not enabled at the time (I've enabled it now for any recurrence), and there were no relevant journalctl lines retained either. So I can't supply the master sync/reconcile log lines. Everything below is reconstructed from a master DB backup taken ~01.5h after the spike plus a per-client traffic time-series sampled every 5 minutes.


1. The prior baseline was effectively zero — confirmed.

You noted that for delta = canon.Up - baseline.Up to equal the full current counter, the old baseline must have been ~0, and that the "stored up+down" in my original table is the new baseline written during the buggy sync. Correct on both counts — my backup is post-spike.

I computed the implied old baseline per field as canon(post-spike node_client_traffics) − delta(applied at spike):

  • Upload: implied old baseline ≈ 0 for 44 / 50 affected clients
  • Download: implied old baseline ≈ 0 for 49 / 50 affected clients

So the baseline used in the delta was effectively zero, exactly as your reasoning requires.

2. The zeroing was per-field, not a clean whole-row wipe.

A few clients had only one component zeroed. Example (redacted):

client Δup applied (GB) Δdown applied (GB) implied old base up (GB) implied old base down (GB)
reverse-A 801.9 66.4 0.01 0.01
reverse-B (iran-1) 0.0 214.0 2789.70 0.00

For reverse-B the upload baseline was intact (2,789.7 GB, nothing added) while only the download baseline went to zero. This looks like a snapshot-timing effect rather than a single row being cleared.

3. Evidence points away from a per-client "Reset traffic" (your Scenario 1).

  • The 50 affected clients span 5 distinct inbounds, all on iran-1, all zeroed within the same 5-minute sync window. Fifty independent reset actions firing simultaneously is implausible — this reads as one node-wide event.
  • No affected client shows a traffic-reset drop anywhere in the 24h series before the spike.
  • Only iran-1 clients are affected; iran-2 (~8 days uptime) is completely untouched.

This is most consistent with your "speculative" reconcile path — a ConfigDirty node running ReconcileNode / UpdateInbound before the first traffic snapshot, zeroing baselines node-wide on reconnect.

4. Timing lines up exactly.

iran-1's uptime at backup was 5,185 s, placing its boot at ~22:40 IRST. The spike interval is 22:37:54 → 22:42:54 IRST. The first post-reboot sync is the spike.

5. Honest limitation.

From totals alone I can't distinguish "the node_client_traffics row literally held 0" from the reset-clamp firing on a negative delta — both yield added = current counter and both compute back to an implied-zero baseline. Only the master logs would separate these, and I don't have them for this event.


Answers to your diagnostic questions:

  • Q4 (was "Reset traffic" performed on any affected client?): None visible in the 24h window for any of them — no, as far as the data shows.
  • Q5 (fresh install / DB wipe vs. power-cycle?): This was a pure power-cycle of the iran-1 VPS (powered off, then back on). No reinstall, no DB wipe, no migration on the node.

So: established clients, pure reboot, node-wide simultaneous baseline-zeroing on reconnect, applied as one large delta. If it recurs I now have debug logging enabled and will attach the node traffic sync / reconcile for iran-1 lines.

</html> </html>
<!-- gh-comment-id:4761717767 --> @Mohamad82Bz commented on GitHub (Jun 21, 2026): <html> <body> <!--StartFragment--><html><head></head><body><p>Thanks for the detailed analysis — it matches what I can reconstruct from the data, and I can confirm several of your points directly.</p> <p><strong>Logs:</strong> Unfortunately I don't have them for the event. Debug logging was not enabled at the time (I've enabled it now for any recurrence), and there were no relevant <code>journalctl</code> lines retained either. So I can't supply the master sync/reconcile log lines. Everything below is reconstructed from a master DB backup taken ~01.5h after the spike plus a per-client traffic time-series sampled every 5 minutes.</p> <hr> <p><strong>1. The prior baseline was effectively zero — confirmed.</strong></p> <p>You noted that for <code>delta = canon.Up - baseline.Up</code> to equal the full current counter, the old baseline must have been ~0, and that the "stored up+down" in my original table is the <em>new</em> baseline written during the buggy sync. Correct on both counts — my backup is post-spike.</p> <p>I computed the implied old baseline per field as <code>canon(post-spike node_client_traffics) − delta(applied at spike)</code>:</p> <ul> <li>Upload: implied old baseline ≈ 0 for <strong>44 / 50</strong> affected clients</li> <li>Download: implied old baseline ≈ 0 for <strong>49 / 50</strong> affected clients</li> </ul> <p>So the baseline used in the delta was effectively zero, exactly as your reasoning requires.</p> <p><strong>2. The zeroing was per-field, not a clean whole-row wipe.</strong></p> <p>A few clients had only one component zeroed. Example (redacted):</p> client | Δup applied (GB) | Δdown applied (GB) | implied old base up (GB) | implied old base down (GB) -- | -- | -- | -- | -- reverse-A | 801.9 | 66.4 | 0.01 | 0.01 reverse-B (iran-1) | 0.0 | 214.0 | 2789.70 | 0.00 <p>For <code>reverse-B</code> the upload baseline was intact (2,789.7 GB, nothing added) while only the download baseline went to zero. This looks like a snapshot-timing effect rather than a single row being cleared.</p> <p><strong>3. Evidence points away from a per-client "Reset traffic" (your Scenario 1).</strong></p> <ul> <li>The 50 affected clients span <strong>5 distinct inbounds, all on iran-1, all zeroed within the same 5-minute sync window</strong>. Fifty independent reset actions firing simultaneously is implausible — this reads as one node-wide event.</li> <li><strong>No affected client shows a traffic-reset drop anywhere in the 24h series before the spike.</strong></li> <li>Only iran-1 clients are affected; iran-2 (~8 days uptime) is completely untouched.</li> </ul> <p>This is most consistent with your "speculative" reconcile path — a <code>ConfigDirty</code> node running <code>ReconcileNode</code> / <code>UpdateInbound</code> before the first traffic snapshot, zeroing baselines node-wide on reconnect.</p> <p><strong>4. Timing lines up exactly.</strong></p> <p>iran-1's uptime at backup was 5,185 s, placing its boot at <strong>~22:40 IRST</strong>. The spike interval is <strong>22:37:54 → 22:42:54 IRST</strong>. The first post-reboot sync is the spike.</p> <p><strong>5. Honest limitation.</strong></p> <p>From totals alone I can't distinguish "the <code>node_client_traffics</code> row literally held 0" from the <strong>reset-clamp</strong> firing on a negative delta — both yield <code>added = current counter</code> and both compute back to an implied-zero baseline. Only the master logs would separate these, and I don't have them for this event.</p> <hr> <p><strong>Answers to your diagnostic questions:</strong></p> <ul> <li><strong>Q4 (was "Reset traffic" performed on any affected client?):</strong> None visible in the 24h window for any of them — no, as far as the data shows.</li> <li><strong>Q5 (fresh install / DB wipe vs. power-cycle?):</strong> This was a <strong>pure power-cycle</strong> of the iran-1 VPS (powered off, then back on). No reinstall, no DB wipe, no migration on the node.</li> </ul> <p>So: established clients, pure reboot, node-wide simultaneous baseline-zeroing on reconnect, applied as one large delta. If it recurs I now have debug logging enabled and will attach the <code>node traffic sync</code> / <code>reconcile for iran-1</code> lines.</p></body></html><!--EndFragment--> </body> </html>
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#3816
No description provided.