Closed IndrekHaav closed 9 months ago
Rollback to 14.2.6 seemed to work for me without any issues/loss of data. After the rollback i did a backfill (under advanced settings in the nightscout settings in xdrip+)
How are you hosting Nightscout? Curious if you made a full redeploy of the dependencies.
I'm selfhosting via the docker container, so currently on nightscout/cgm-remote-monitor:14.2.6
. My mongo uses the :latest tag and i did not change anything there.
Right. You need to figure out how to update the node dependencies inside the container. That error basically implies the Mongo driver Nightscout is trying to load doesn't match the expected version.
How are you hosting Nightscout? Curious if you made a full redeploy of the dependencies.
I have Nightscout running in a Debian 12 LXC container. I also updated Node.js to v16, MongoDB is at v4.4. I did run npm install
after pulling the v15.0.0 code from Github.
Edit: just to be safe, I nuked the node_modules
directory and re-ran npm install
. Still the same error when uploading treatments.
Not sure. I did update to v15.0.1 but that didn't solve my issue. Editing profiles seemed to work, but I didn't try it on v15.0.0 before updating.
To investigate potential issues, I've deleted package-lock.json
and node_modules/
and issued npm install
. The difference in package-lock doesn't indicate any differences in the mongo dependency chain. Not sure what the issue is here, but I'm confident we removed the troublesome patches from 15.0.0 in 15.0.1, and it should behave identical to the dev branch before the merge of #8026. I recently tested on node 14, 16, and 18.
I may have spoken too soon. Some treatments did show up after I manually sent older data from xDrip+ (as @WesSec mentioned in their first comment), perhaps I just didn't wait long enough.
I'll see how it behaves during normal use.
Okay, looks like it's working with v15.0.1 after all. Sorry for the confusion.
This is still an issue because:
Describe the bug After upgrading Nightscout to v15.0.0, treatments entered in xDrip+ no longer appear in Nightscout. The following error shows up in system logs:
Other data like BG readings get uploaded without issue.
To Reproduce Steps to reproduce the behavior:
Expected behavior Treatments are uploaded to Nightscout and visible in the web UI as in previous versions.
Your setup information