Bug in 15.0.7 - doublicated Nightscout Profiles causing wrong COB/IOB display #4603
-
|
After several round of root cause checks with help of AI the conclusion is clear, this is a bug in NS 15.0.7. See the following description with the details. What can we do against this right now? For me this is severe issue - my IOB/COB display is always wrong leading to potentially wrong treatment decisions (I am not on a loop, but using classic insulin shots). THANKS for looking into this!! A severe calculation bug has been identified in Nightscout instances running version 15.0.7 deployed via the Navid200 Google Cloud installation environment. The user-facing symptom is that Carbs on Board (COB) and Insulin on Board (IOB) tracking values are heavily multiplied immediately after a treatment is logged (for example, entering an 8g carb treatment instantly displays as 16g COB on the main dashboard). Deep analysis of the database structures reveals that the root cause is the accumulation of duplicate profile records inside the MongoDB profile collection, all sharing the exact same default fallback timestamp: Valid from: 1/1/1970, 1:00:00 AM. This duplication completely breaks Nightscout’s mathematical tracking due to the core Profile API overhauls introduced in the v15 architecture. As documented in the official 15.0.7 release notes, while websocket-path profile deduplication is functional, the v3 REST-path profile-store deduplication was explicitly reverted (commit c927be7a) and remains a "Known Issue / Deferred." Because the web-based Profile Editor relies entirely on this REST path to save and delete records, users are trapped in a loop: any attempt to fix or delete the duplicate records via the browser UI fails to cleanly purge the database, and the conflicting "onion layers" of the 1970 profile simply reappear upon page reload, forcing the server to calculate active decay against multiple documents concurrently. See here: https://github.com/nightscout/cgm-remote-monitor/releases Profile save — replaceOne upsert prevents duplicate-key errors under concurrent saves (nightscout/cgm-remote-monitor#8455). Known Issues / Deferred |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 52 replies
-
|
@tzachi-dar This sounds like a Nightscout issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.

If you have backed up and transferred it to your computer, go ahead and run phase 1.