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

beta UniFi Network Application 9.0.106 #340

Open
wants to merge 3 commits into
base: tong2x-patch-5
Choose a base branch
from

Conversation

tong2x
Copy link
Collaborator

@tong2x tong2x commented Dec 2, 2024

beta UniFi Network Application 9.0.106
Firmware Overview/Details
Install command: fetch -o - https://t.ly/-iC8W | sh -s

beta UniFi Network Application 9.0.101
Firmware Overview/Details
Install command: fetch -o - https://t.ly/mTCyK | sh -s

beta UniFi Network Application 9.0.92
Firmware Overview/Details
Install command: fetch -o - https://t.ly/Onwee | sh -s

9.0.92
@tong2x
Copy link
Collaborator Author

tong2x commented Dec 4, 2024

Tested, completed and running no issues yet
Clean install, with mongoDB50
OPNsense 24.7.10_2-amd64
FreeBSD 14.1-RELEASE-p6
OpenSSL 3.0.15

generally no change made or update, before the older 8.6.x series fails and does NOT load in OPNSENSE

@Fry-kun
Copy link
Contributor

Fry-kun commented Dec 5, 2024

Looking at the FreeBSD repo, mongodb50-5.0.29 is still the latest version for branch mongodb50 -- so it won't work on non-AVX CPUs. In other words, this would break my setup.

Edit 1:
Scratch that, latest in https://pkg.freebsd.org/FreeBSD:14:amd64/latest/packagesite.pkg is actually mongodb50-5.0.30

Edit 2:
After installing it, mongod won't run: error ld-elf.so.1: /lib/libcxxrt.so.1: version CXXABI_1.3.11 required by /usr/local/bin/mongod not found

Edit 3:
I confirmed that packagesite file says "NOAVX":"on" -- so maybe AVX is not the only culprit there.
Still, this breaks my setup once again :(

Edit 4:
After a bit of research, it sounds like mongodb50 is built for 14.1 -- and 14.1 uses a newer libcxxrt.so.1, with higher ABI.
Not sure how to provide the newer libcxxrt.so.1, perhaps it could be installed into /usr/local as well?

9.0.101
@tong2x tong2x changed the title beta UniFi Network Application 9.0.92 beta UniFi Network Application 9.0.101 Dec 14, 2024
@tong2x
Copy link
Collaborator Author

tong2x commented Dec 14, 2024

reinstalling mongoDB 44 is not working also?
due to update FREEBSD?

@Fry-kun
Copy link
Contributor

Fry-kun commented Dec 21, 2024

reinstalling mongoDB 44 is not working also? due to update FREEBSD?

Right, it's no longer an available package :(

9.0.106
@tong2x tong2x changed the title beta UniFi Network Application 9.0.101 beta UniFi Network Application 9.0.106 Dec 22, 2024
@vincenttermaat
Copy link

vincenttermaat commented Dec 22, 2024

I had 8.4.62 installed with mongodb50-5.0.30 and Pfsense 2.7.2, FreeBSD 14.0-CURRENT

Running these commands to do a clean install and removing mongodb it didn't work:

rm -rf /usr/local/UniFi
rm /usr/local/etc/rc.d/unifi.sh
/usr/sbin/pkg unlock -y mongodb50
/usr/sbin/pkg remove -y mongodb50
fetch -o - https://t.ly/-iC8W | sh -s

Unfortunately I cannot provide an output. ps -aux showed:

root  87507   0.2  6.4 2780592 254560  -  I    15:04     0:21.16 /usr/local/openjdk17/bin/java --add-opens=java.base/java.time=ALL-UNNAMED -jar /usr/local/UniFi/lib/ace.jar start

Afterwards I tried to install based on #341 to install to 8.6.9 instead of 8.4.62 but seems it relies on mongodb44 instead of mongodb50 that was now installed (again) as part of the 9.0.106 install script of this pull.

I got this output:

Killing ace.jar process... done.
ld-elf.so.1: /lib/libcxxrt.so.1: version CXXABI_1.3.11 required by /usr/local/bin/mongod not found
Mounting new filesystems... done.
Removing discontinued packages...
Updating database digests format: . done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	mongodb50: 5.0.30

Number of packages to be removed: 1

The operation will free 173 MiB.
[1/1] Deinstalling mongodb50-5.0.30...
[1/1] Deleting files for mongodb50-5.0.30: .......... done
==> You should manually remove the "mongodb" user
==> You should manually remove the "mongodb" group
You may need to manually remove /usr/local/etc/mongodb.conf if it is no longer needed.
 done.
Installing required packages...
packagesite.pkg                                       7443 kB 9728 kBps    01s
x packagesite.yaml.sig
x packagesite.yaml.pub
x packagesite.yaml
Package png-1.6.44 already installed.
Package brotli-1.1.0,1 already installed.
Package freetype2-2.13.3 already installed.
Package fontconfig-2.15.0_3,1 already installed.
Package alsa-lib-1.2.12 already installed.
Package mpdecimal-4.0.0 already installed.
Package python37- already installed.
Package libfontenc-1.1.8 already installed.
Package mkfontscale-1.2.3 already installed.
Package dejavu-2.37_3 already installed.
Package giflib-5.2.2 already installed.
Package xorgproto-2024.1 already installed.
Package libXdmcp-1.1.5 already installed.
Package libXau-1.0.11 already installed.
Package libxcb-1.17.0 already installed.
Package libICE-1.1.1,1 already installed.
Package libSM-1.2.4,1 already installed.
Package libX11-1.8.9,1 already installed.
Package libXfixes-6.0.1 already installed.
Package libXext-1.3.6,1 already installed.
Package libXi-1.8.1,1 already installed.
Package libXt-1.3.0,1 already installed.
Package libXtst-1.2.4 already installed.
Package libXrender-0.9.11 already installed.
Package libinotify-20240724 already installed.
Package javavmwrapper-2.7.10 already installed.
Package java-zoneinfo-2021.e already installed.
Package openjdk8-8.432.06.1 already installed.
Package snappyjava-1.1.10.5_1 already installed.
Package snappy-1.2.1_1 already installed.
Package cyrus-sasl-2.1.28_5 already installed.
Package icu-74.2_1,1 already installed.
Package boost-libs-1.86.0 already installed.
Fetching : . done
pkg: Impossible to get the value from Last-Modified HTTP header
pkg: archive_read_open_filename(/tmp/.XXXXX): Unrecognized archive format

Failed to install the following 1 package(s): https://pkg.freebsd.org/FreeBSD:14:amd64/latest/

So I tried a clean install of 8.6.3 instead of 8.4.62 based on #332 to try and upgrade to that version instead.
Even after 20 minutes the controller still hasn't started. Although PS-aux shows 100% CPU usage:

root  43054 100.0  7.4 2777652 294660  -  I    15:30    5:12.26 /usr/local/openjdk17/bin/java --add-opens=java.base/java.time=ALL-UNNAMED -jar /usr/local/UniFi/lib/ace.jar start

So.... I removed again and installed 8.4.62 from #332, my original version.

service unifi.sh stop
rm -rf /usr/local/UniFi
rm /usr/local/etc/rc.d/unifi.sh
/usr/sbin/pkg unlock -y mongodb50
/usr/sbin/pkg remove -y mongodb50
**REBOOT**
fetch -o - https://rb.gy/f69du8 | sh -s

But now still it's stuck at 100% cpu usage.

Would be nice if:

  1. I'd know what to do to get the controller working again ;).
  2. We could get a merge of pull-request beta UniFi Network Application 8.6.3 #332 so we can keep using mongodb50 if we did that upgrade and upgrade to the current official release 8.6.9, before we start looking into 9.0.

@vincenttermaat
Copy link

vincenttermaat commented Dec 22, 2024

Edit 2: After installing it, mongod won't run: error ld-elf.so.1: /lib/libcxxrt.so.1: version CXXABI_1.3.11 required by /usr/local/bin/mongod not found

I'm seeing this same error when running mongo in command. Seems weird because it worked before. I did do an upgrade from Pfsense 2.7.1 to Pfsense 2.7.2 at some point. But this did not affect the controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants