Note that when upgrading Unifi to the most recent packages (8.2.93 is the latest as I write this), it will want to upgrade Mongo from v5 to v6.
It's worth checking the compatibility setting first as mine was set to 4.4 which isn't valid in Mongo v6. This caused mongo to refuse to start.
If pkg wants to upgrade Mongo, I would suggest doing the following first
Run
Use the commands below to check the combability setting and change it to 5 if required
(See https://www.mongodb.com/docs/v6.0/r...ade-standalone/#feature-compatibility-version)
You can then run the pkg upgrade as normal, and the services should start correctly.
Now I just have to see what to do about the
It's worth checking the compatibility setting first as mine was set to 4.4 which isn't valid in Mongo v6. This caused mongo to refuse to start.
If pkg wants to upgrade Mongo, I would suggest doing the following first
Run
mongo localhost:27117 to connect to the Unifi mongo instance.Use the commands below to check the combability setting and change it to 5 if required
Code:
db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
db.adminCommand( { setFeatureCompatibilityVersion: "5.0" } )
You can then run the pkg upgrade as normal, and the services should start correctly.
Now I just have to see what to do about the
mongo client now being removed. There's very few reasons to use it with Unifi but it means that I now have no way of viewing the raw mongo data if needed or configuring that compatibility setting if it needs to change in future. Looks like it might be getting close to the point where I have to just run a Linux vm with one of the original Ubiquiti packages like I do with UISP.