nightscout / cgm-remote-monitor

nightscout web monitor
GNU Affero General Public License v3.0
2.42k stars 71.79k forks source link

mongodb version compatibility #8305

Open mxsrm opened 1 month ago

mxsrm commented 1 month ago

Nightscout recommends running very old versions of mongodb (4.2 or 4.4) which are no longer receiving security support (4.4 ended 29.02.2024).

5.0 security support is ending 31.10.2024.

Does the software support 6.0 (EOS: 31.07.2025), 7.0 (EOS: 31.08.2026) or 8.0 (EOS: not yet determined; newest stable version) versions of mongodb?

sulkaharo commented 1 month ago

AFAIK the reason for this is the codebase still uses Mongo API that requires old drivers, which don't work with newer Mongo versions. I refactored the code to support the new drivers, which got merged, but there was a bug so the change was reverted and sadly in a way that causes a lot of work to re-apply the patch, but guess I'll have to find the time to do this. See here for the changes needed (minus one additional persistence call) https://github.com/nightscout/cgm-remote-monitor/pull/8026/files

ChanceHarrison commented 3 weeks ago

Running Nightscout 15.0.3 ("nightscout/cgm-remote-monitor:latest_dev", @sha256:9b50be982ff51fb53eaeb64537c386b321b7e510e035c38451338d10435bd493) with Mongo 7.0.9 (docker.io/library/mongo:7, sha256:4c8c4201f105329a913671cc3e8cf78999367e2cb1c6321b5c99fd993c6f81ee) seems to work fine for me?

Philoul commented 3 weeks ago

Hi, I just received this mail today Screenshot_20241031-154838_Email.jpg

-->It looks like I will have no choice very soon 😥... (I have a free account in Azure / Atlas).

Any idea when you will be able to provide a fix? (I suppose I'll not be the only one in this situation...).

OpossumGit commented 2 weeks ago

Received the same mail as Atlas user. Are we afraid that MongoDB 8.0 will not be compatible with current code base?

bewest commented 2 weeks ago

Apologies, Sulka, I'll look at restoring your prior work on this.

thedewi commented 7 hours ago

That bug hasn't been completely reverted, since the last GitHub Release still has it, as per #8208.

This might be further confusing issues reported by users around mongo compatibility.

thedewi commented 7 hours ago

@sulkaharo I'm pretty good with git patch wrangling and am happy to raise a mergeable branch, but where is the fix?