Because I can’t help myself, I do stupid things. I will be remote for the next few weeks, and I thought it would be a good idea to upgrade my Unifi controller, while I am already remote.
To make matters worse, I hadn’t setup a snapshot backup yet for this jail. Where is the “facepalm” emoji?
Anyways, it looks like the issue isn’t really Unifi upgrading from 8.6.9 → 8.6.9_1, but with MongoDB upgrading 6.0.19 → 6.0.20_1. After upgrading, starting the unifi controller has this in the server.log:
[2025-01-15T17:27:49,899-07:00] <launcher> INFO startup - Initiating startup
[2025-01-15T17:27:50,536-07:00] <launcher> INFO system - ======================================================================
[2025-01-15T17:27:50,536-07:00] <launcher> INFO system - UniFi 8.6.9 (build atag_8.6.9_27327 - release/release) is started
[2025-01-15T17:27:50,538-07:00] <launcher> INFO system - Environment: UniFi-OS[false], UniFi-Cloud[false], UniFi-MongoService[false]
[2025-01-15T17:27:50,538-07:00] <launcher> INFO system - ======================================================================
[2025-01-15T17:27:50,538-07:00] <launcher> INFO system - BASE dir:/usr/local/share/java/unifi
[2025-01-15T17:27:50,545-07:00] <launcher> INFO system - Current System IP: 192.168.1.14
[2025-01-15T17:27:50,546-07:00] <launcher> INFO system - Hostname: unifi
[2025-01-15T17:27:50,546-07:00] <launcher> INFO system - ubic.env: prod
[2025-01-15T17:27:50,546-07:00] <launcher> INFO system - System loaded
[2025-01-15T17:27:50,621-07:00] <launcher> INFO mongo - Checking if database needs to be shut down
[2025-01-15T17:27:51,776-07:00] <launcher> INFO mongo - Database was not running
[2025-01-15T17:27:51,776-07:00] <launcher> INFO mongo - Starting database process...
[2025-01-15T17:27:51,812-07:00] <mongo-db> WARN mongo - Stop listening to Mongo logs after process has exited
[2025-01-15T17:27:51,812-07:00] <mongo-db> INFO mongo - Database process stopped, code=1
[2025-01-15T17:27:54,818-07:00] <mongo-db> WARN mongo - Stop listening to Mongo logs after process has exited
[2025-01-15T17:27:54,818-07:00] <mongo-db> INFO mongo - Database process stopped, code=1
And the last 2 lines just repeat themselves. So I dug in a bit and found that trying to run mongod throws this lovely error:
unifi# mongod
ld-elf.so.1: /lib/libcxxrt.so.1: version CXXABI_1.3.11 required by /usr/local/bin/mongod not found
Ok, I think I see what is happening now. It looks like the ports are all running on 13.4 now and there was some breaking change to this library dependency. So I created a new jail against 13.4, installed unifi8, and it started up.
So now I am in the progress of upgrading my unifi jail to 13.4:
iocage upgrade -r 13.4-RELEASE unifi
Hopefully this fixes it…