Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightscout crashes after updating to 3.0.0.1 #1279

Closed
illepidus opened this issue Feb 5, 2022 · 10 comments
Closed

Nightscout crashes after updating to 3.0.0.1 #1279

illepidus opened this issue Feb 5, 2022 · 10 comments

Comments

@illepidus
Copy link

illepidus commented Feb 5, 2022

AAPS Build: 479bfc4
Nightscout version: 14.2.5 (current)

Nighscout hosted on herokku crashes after AAPS tryies to upload treatments to it.
It seems like AAPS is sending some null data:

2022-02-05T19:31:15.632726+00:00 app[web.1]: Got results null
2022-02-05T19:31:15.634857+00:00 app[web.1]: /app/node_modules/mongodb/lib/utils.js:106
2022-02-05T19:31:15.634858+00:00 app[web.1]:       throw err;
2022-02-05T19:31:15.634859+00:00 app[web.1]:       ^
2022-02-05T19:31:15.634859+00:00 app[web.1]: 
2022-02-05T19:31:15.634859+00:00 app[web.1]: TypeError: Cannot read property '_id' of null

Then I disable NS upload in AAPS, crashes never happen. Also AAPS is recieving data from Nightscout without any issues.

androidaps-log.txt
heroku-log.txt

@illepidus
Copy link
Author

After hours of exploring my problem I found out that the Nightscout crashes only if both

  • Upload Data to NS
  • Receive therapy events

options are ON. So it's defenitly therapy sync problem.
Other NSClient synchronization options doesn't cause NS crash.

If someone face the same problem as me, try:

  1. AAPS->NSClient tab->check Paused.
  2. AAPS->NSClient tab->NSClient Preferences->Synchronization->Turn off "Recieve therapy events".
    Other options might be in ON state depending on your needs.
  3. AAPS->Maintenance->Reset Databases
    That would compleatly delete all treatments in AAPS database. Be careful, CoB and IoB will become zero after it. That could lead to insulin overdoze!
  4. AAPS->Exit
  5. https://dashboard.heroku.com/apps/%YOUR_APP_NAME%/ -> More -> Restart all dynos
  6. Launch AAPS
  7. AAPS->NSClient tab->uncheck Paused.

@illepidus
Copy link
Author

illepidus commented Feb 6, 2022

NSClient 3.0.0 causes the same NS crush, but scince NSClient doesn't have NSClient tab->NSClient Preferences->Synchronization settings, it's impossible to turn off "Recieve therapy events".
So the only way to use NSClient for me and people having same issue is sticking with NSClient 2.8.2 [194549a].

@vagtil2005
Copy link

Have exactly the same problem, on 3.0 RC3, 3.0 and 3.0.0.1. Whenever there is a new calibration through xdrip, Nightscout crashes. Sometimes it takes 2 and 3 times to restart dynos in order to come back up. I am attaching the log files from heroku.

heroku-logs-1644241845841.txt

@MilosKozak
Copy link
Contributor

try NS with this PR nightscout/cgm-remote-monitor#7285

@vagtil2005
Copy link

try NS with this PR nightscout/cgm-remote-monitor#7285

I updated to patch-2 but the problem persists.

@timocm
Copy link

timocm commented Feb 11, 2022

AndroidAPS 3.0.0.1

Build: 3bbb57f33-2022.02.04-00:20
Remote: https://github.com/nightscout/AndroidAPS
Flavor: fullrelease
Nightscout version: 14.2.5
xDrip+ G5 lastest night. With calibration in xDrip+ nightscout crashes. https://drive.google.com/file/d/11hoTq3sAGmJOxppT7MmnUkxiHAgHteyH/view?usp=drivesdk

@timocm
Copy link

timocm commented Feb 20, 2022

Did a deploy of NS with MilosZoxak-patch-2 (14.2.6) and an update to 3.0.0.1
Highlighted slow down uploads in settings of he NSClient tab in AAPS. Restarted dynos in heroku when the web socket crashed. It happened about 2 -3 times before there was no more crashing.
Had to repeat the slow down upload setting and the restarting of dynos (2-4 times) each time I installed NSClient on a following phone (2 phones).
After a calibration form xDrip+ (G5) : crash and restarted dynos 3 times
AndroidAPS.log

@timocm
Copy link

timocm commented Feb 21, 2022

NS crashed at 7.14am 22 Feb with calibration in xDrip

Nightscout 14.2.6

AAPS 3.0.0.1
AndroidAPS.log

@adenis76
Copy link

I am also have same problem. When I enter calibration in xdrip ns crashes. I have to reset all dynos in heroku to have ns work again. If I enter calibration in aaps nothing is happening. I have two ns and I am sending all data in same time. Only ns with active aaps is crashing.

@andrzej-aps
Copy link

NSClient 3.0.0 causes the same NS crush, but scince NSClient doesn't have NSClient tab->NSClient Preferences->Synchronization settings, it's impossible to turn off "Recieve therapy events". So the only way to use NSClient for me and people having same issue is sticking with NSClient 2.8.2 [194549a].

There is a way to change synchronisation option also for NSclients take a look here: #1486

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants