NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.41k stars 13.63k forks source link

Remove end-of-life mongodb versions #195448

Open mweinelt opened 1 year ago

mweinelt commented 1 year ago

https://endoflife.date/mongodb

all of the above should be remove before branch-off.

@bluescreen303 @offlinehacker @cstrahan @pacien

mweinelt commented 1 year ago

@pacien Do you plan to work on this before the branch-off?

pacien commented 1 year ago

Quoting Martin Weinelt (2022-10-23 00:32:35)

@pacien Do you plan to work on this before the branch-off?

Not personally. Also this depends on https://github.com/NixOS/nixpkgs/pull/172009.

bryanasdev000 commented 1 year ago

Related https://github.com/NixOS/nixpkgs/issues/155121

mweinelt commented 1 year ago

I want the following gone before the 23.05 branch-off:

All of these have reached their end of life, and we cannot keep them around

mweinelt commented 1 year ago

Can we bump the mongodb version on unifi and unifi-video to 4.4 at the minimum, ideally 5.0 or 6.0?

cc @wegank @gador

gador commented 1 year ago

I'll have a look at it later on 👍

gador commented 1 year ago

@mweinelt I can only speak for unifi. The update and restore from mongodb-3_4 to mongodb-4_2 can run without issues. Unfortunately it cannot run from 3_4 to 4_4. So the upgrade from 22.11 to 23.05 will be very bumpy for the users of unifi. (See https://github.com/NixOS/nixpkgs/pull/207382#issuecomment-1371303817) . We'll need 3_4 -> 4_2 -> 4_4 I'll prepare something for the release notes, but when we remove mongodb-4_2 there will be a second migration step necessary.
EDIT: Also, unifi (even the newest version 7) is officially build and tested against mongodb version 3.6, even though it is EOL for some time now

RaitoBezarius commented 10 months ago

Here we are again, MongoDB 4.4 will go EOL in NixOS 23.11 release. According to this post, https://community.ui.com/questions/Which-MongoDB-versions-are-supported-by-Unifi-controller/0dd633e5-85d3-44a2-ac16-6fa478b1dcfb — I don't see any hope.

Please inline the MongoDB versions 4.4 inside your expressions if you want to keep using UniFi in nixpkgs.

nbdd0121 commented 8 months ago

I tested Unifi Controller 7 and 8 with different MongoDB versions, and:

For Unifi 7:

For Unifi 8:

This means that it should be possible for us to remove MongoDB 4.4. We probably also want to remove unifiLTS, unifi5, unifi6 as well.

Disclaimer: When I say "it works", it means that I tested basic functionalities, I can't guarantee full compatibility.

qubitnano commented 5 months ago

I've been running unifi 8.1.113 with mongodb 6 for a few weeks now with no issues. Upgraded mongodb 4.4 -> 5.0 -> 6.0 and the database as well in each step.

wegank commented 5 months ago

MongoDB 4.4 has been dropped on master. Existing UniFi 7 and 8 users on the unstable branches, who do not have expressions inlined, will have MongoDB upgraded to 5.0 in the next bumps. Please consult the official upgrade instructions if necessary.

MongoDB 5.0 will go EOL in NixOS 24.05 release, so the same instructions in https://github.com/NixOS/nixpkgs/issues/195448#issuecomment-1785337014 still apply.

june128 commented 2 months ago

UniFi Network Application 8.1 and newer now officially support MongoDB up to 7.0. https://community.ui.com/releases/UniFi-Network-Application-8-1-113/af46fd38-8afe-4cef-8de1-89636b02b52c

mweinelt commented 1 month ago

Support for mongodb 5.0 ends after 2024-10-31 and must be removed for the NixOS 24.11 release.

@bluescreen303 @offlinehacker