mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config

Started by mimugmail, October 26, 2023, 01:17:03 PM

Previous topic - Next topic
Posting for visibility if others run into this with latest Unifi pkg, not expecting a fix.

Latest version requires MongoDB 5.0 which requires AVX instructions to be supported on your CPU. This actually rules out my custom router running OPNSense on an Intel N5105, a relatively popular fanless box CPU from 2021. For whatever reason Intel left AVX off this series of chips unless it's I3/I5/I7 badged.

This presents as MongoDB immediately crashing out on start, and Unifi can't function without a working mongodb.

Supposedly online folks have gotten docker images working with Mongo 5 and AVX disabled, but that's a bit beyond my technical ability.

No update waiting, so the service wont start, what is the fix ? I have tried to install the os-unifi-maxit from the command line, but it says it the most recent version so wont re-install ? What have I missed ?


If your CPU does not support AVX, the service won't start. The FreeBSD default compile options build MongoDB with AVX enabled. Only solution: build your own package from ports.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I started a build with:

databases_mongodb50_SET=        NOAVX

Will need a couple of hours, thx Patrick for the hint :)

where do I find the log for the Unifi plugin, as the page on 8443 constantly displays:

"UniFi Network Application is starting up...!"

I've just removed and re-installed the plugin, and the status has not altered.

@dustymiller does your CPU support AVX or not?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)



root@core-router:/ # grep Features /var/run/dmesg.boot  | grep --colour -e AVX
  Features2=0xfffa3203<SSE3,PCLMULQDQ,SSSE3,FMA,CX16,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND,HV>
  Structured Extended Features=0x219c27eb<FSGSBASE,TSCADJ,BMI1,AVX2,FDPEXC,SMEP,BMI2,ERMS,INVPCID,NFPUSG,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
  Features2=0xfffa3203<SSE3,PCLMULQDQ,SSSE3,FMA,CX16,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND,HV>
  Structured Extended Features=0x219c27eb<FSGSBASE,TSCADJ,BMI1,AVX2,FDPEXC,SMEP,BMI2,ERMS,INVPCID,NFPUSG,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>

ran the update, no luck,
Restarted the Unifi Service - No Luck
Restarted the Router - No luck,

Still stuck showing - "UniFi Network Application is starting up..."

service unifi stop

pkg remove os-unifi8-maxit unifi8

rm -rf /usr/local/share/java/unifi/*

pkg install os-unifi8-maxit

pkg: No packages available to install matching 'os-unifi8-maxit' have been found in the repositories

pkg install os-unifi-maxit - Worked. Restoring from old backup now