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

Remove end-of-life mongodb versions #195448

Open
mweinelt opened this issue Oct 11, 2022 · 13 comments
Open

Remove end-of-life mongodb versions #195448

mweinelt opened this issue Oct 11, 2022 · 13 comments
Labels
0.kind: bug 6.topic: old-versions Tickets pertaining to ongoing support of outdated versions of packages

Comments

@mweinelt
Copy link
Member

mweinelt commented Oct 11, 2022

https://endoflife.date/mongodb

  • 3.4, 3.6 and 4.0 are EOL
  • 4.0 will go EOL during the 22.11 release

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

@bluescreen303 @offlinehacker @cstrahan @pacien

@mweinelt
Copy link
Member Author

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

@pacien
Copy link
Contributor

pacien commented Oct 22, 2022 via email

@bryanasdev000
Copy link
Member

Related #155121

@mweinelt
Copy link
Member Author

mweinelt commented Feb 21, 2023

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

  • mongodb-3_4
  • mongodb-3_6
  • mongodb-4_0
  • mongodb-4_2 (eol 2023/04/01)

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

@mweinelt
Copy link
Member Author

mweinelt commented Feb 21, 2023

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
Copy link
Member

gador commented Feb 21, 2023

I'll have a look at it later on 👍

@gador
Copy link
Member

gador commented Feb 22, 2023

@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 #207382 (comment)) . 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

@wegank wegank mentioned this issue Jun 6, 2023
12 tasks
@RaitoBezarius
Copy link
Member

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.

@FliegendeWurst FliegendeWurst added the 6.topic: old-versions Tickets pertaining to ongoing support of outdated versions of packages label Oct 30, 2023
@nbdd0121
Copy link
Contributor

nbdd0121 commented Jan 6, 2024

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

For Unifi 7:

  • Officially it supports up to MongoDB 4.4
  • It works with MongoDB 5, but not 6 or 7.
  • The limitation seems to be a very old MongoDB driver
  • There's a protocol change in MongoDB 6, so it'll not work with this old driver
  • MongoDB 5 doesn't have protocol change from 4, so it still work.

For Unifi 8:

  • Officially it still supports only up to MongoDB 4.4
  • It works with MongoDB 5, 6 and 7
  • They have updated their protocol driver to a 2022 version.
  • This driver is compatible with MongoDB 6, 7, 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.

@wegank wegank mentioned this issue Apr 11, 2024
13 tasks
@qubitnano
Copy link
Contributor

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
Copy link
Member

wegank commented Apr 12, 2024

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 #195448 (comment) still apply.

@june128
Copy link
Contributor

june128 commented Jul 2, 2024

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
Copy link
Member Author

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

@bluescreen303 @offlinehacker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: old-versions Tickets pertaining to ongoing support of outdated versions of packages
Projects
Status: In progress
Development

No branches or pull requests

10 participants