ryansch / docker-unifi-rpi

Unifi Controller for Raspberry Pi 3+ and x86
https://hub.docker.com/r/ryansch/unifi-rpi/
347 stars 42 forks source link

8.0.24+ needs a new mongo #108

Closed ryansch closed 2 months ago

ryansch commented 8 months ago

The hack we've been using to pull in mongo 3.6.x has finally broken.

Unifi 7.5 and greater supports mongo 4.4. I'm looking at upgrading to it.

mhzawadi commented 7 months ago

Hello 👋🏼

Any update on this?

loganmarchione commented 6 months ago

The Release Candidate for 8.1.113 just dropped.

https://community.ui.com/releases/UniFi-Network-Application-8-1-113/af46fd38-8afe-4cef-8de1-89636b02b52c

I find this part the most interesting...

UniFi Network Application 7.5 and newer requires MongoDB 3.6 and Java 17.

  • Version 7.5 till 8.0 supports up to MongoDB 4.4.
  • Version 8.1 and newer supports up to MongoDB 7.0.
ryansch commented 5 months ago

@loganmarchione Whoa.

ryansch commented 5 months ago

Honestly, I might just skip straight to 8.1 at this point.

loganmarchione commented 5 months ago

FYI if you plan to upgrade MongoDB while upgrading Unifi. Versions 5 and later require AVX512 CPU instructions, or they won't boot.

https://github.com/docker-library/mongo/issues/485 https://www.mongodb.com/docs/manual/administration/production-notes/#x86_64

kfken commented 5 months ago

FYI if you plan to upgrade MongoDB while upgrading Unifi. Versions 5 and later require AVX512 CPU instructions, or they won't boot.

docker-library/mongo#485 https://www.mongodb.com/docs/manual/administration/production-notes/#x86_64

This calls out ARMv8.2-A as required for arm64 (I think AVX-512 is x64 specific)

I came across this project that may help expand the support for newer Mongo versions on Pi: https://github.com/themattman/mongodb-raspberrypi-binaries

ryansch commented 4 months ago

Your feedback is incredibly helpful! This pain is part of the reason why there hasn't been a new release in a while.

ryansch commented 4 months ago

I'm not dead. This is still on my radar.

mhzawadi commented 3 months ago

If it helps in any way, I have run the GlennR install a unifi on my mac (an M1 Pro) and I can see it might have worked.

Will get it running with exposed ports and confirm its really working

ryansch commented 2 months ago

I just shipped 8.1 with mongo 4.4.18. Works on my pi4.