mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config

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

Previous topic - Next topic


Latest upgrade removed unifi, tried to re-install but getting the following missing dependency python39

service unifi stop
pkg remove os-unifi-maxit unifi8
y
rm -rf /usr/local/share/java/unifi/*
pkg install os-unifi-maxit

catalogue...
OPNsense repository is up to date.
Updating SunnyValley repository catalogue...
SunnyValley repository is up to date.
Updating mimugmail repository catalogue...
mimugmail repository is up to date.
All repositories are up to date.
pkg: glib has a missing dependency: python39
pkg: glib has a missing dependency: python39
pkg: glib has a missing dependency: python39
pkg: glib has a missing dependency: python39
pkg: glib has a missing dependency: python39
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        os-unifi-maxit: 1.3 [mimugmail]
        unifi8: 8.1.113 [mimugmail]

Number of packages to be installed: 2

The process will require 227 MiB more space.


Database not starting up:
/usr/local/share/java/unifi/logs # tail -100 server.log
[2024-05-17 13:59:20,935] <main> WARN  system - reload system.properties failed: file not found
[2024-05-17 13:59:20,939] <main> WARN  system - reload system.properties.bk failed: file not found
[2024-05-17 13:59:20,939] <launcher> INFO  launcher - Initializing on FreeBSD(13.2-RELEASE-p11), jre17(17.0.10)
[2024-05-17 13:59:20,939] <launcher> INFO  system - *** Running for the first time, creating identity ***

[2024-05-17 13:59:20,940] <launcher> WARN  system - reload system.properties failed: file not found
[2024-05-17 13:59:20,940] <launcher> WARN  system - reload system.properties.bk failed: file not found

[2024-05-17 13:59:27,331] <launcher> INFO  startup - Initiating startup
[2024-05-17 13:59:27,969] <launcher> WARN  system - Valid keystore is missing or invalid. Generating one ...
[2024-05-17 13:59:27,969] <launcher> INFO  system - Generating Certificate[UniFi]... please wait...
[2024-05-17 13:59:28,582] <launcher> INFO  system - Certificate[UniFi] generated!
[2024-05-17 13:59:28,697] <launcher> INFO  tomcat - Adding basic REST API support during the startup
[2024-05-17 13:59:30,650] <launcher> INFO  system - Tomcat startup took 3305ms
[2024-05-17 13:59:39,541] <launcher> INFO  system - ======================================================================
[2024-05-17 13:59:39,541] <launcher> INFO  system - UniFi 8.1.113 (build atag_8.1.113_25191 - release/release) is started
[2024-05-17 13:59:39,542] <launcher> INFO  system - Environment: UniFi-OS[false], UniFi-Cloud[false], UniFi-MongoService[false]
[2024-05-17 13:59:39,542] <launcher> INFO  system - ======================================================================
[2024-05-17 13:59:39,542] <launcher> INFO  system - BASE dir:/usr/local/share/java/unifi

[2024-05-17 13:59:39,544] <launcher> INFO  system - ubic.env: prod
[2024-05-17 13:59:39,757] <launcher> INFO  mongo  - Checking if database needs to be shut down
[2024-05-17 13:59:40,989] <launcher> INFO  mongo  - Database was not running
[2024-05-17 13:59:40,989] <launcher> INFO  mongo  - Starting database process...
[2024-05-17 13:59:41,001] <mongod-tail> WARN  mongo  - Mongo log not found during startup
[2024-05-17 13:59:41,047] <mongo-db> WARN  mongo  - Stop listening to Mongo logs after process has exited
[2024-05-17 13:59:41,048] <mongo-db> INFO  mongo  - Database process stopped, code=1
[2024-05-17 13:59:44,050] <mongod-tail> WARN  mongo  - Mongo log not found during startup
[2024-05-17 13:59:44,061] <mongo-db> WARN  mongo  - Stop listening to Mongo logs after process has exited
[2024-05-17 13:59:44,062] <mongo-db> INFO  mongo  - Database process stopped, code=1
[2024-05-17 13:59:47,063] <mongod-tail> WARN  mongo  - Mongo log not found during startup
[2024-05-17 13:59:47,073] <mongo-db> WARN  mongo  - Stop listening to Mongo logs after process has exited
[2024-05-17 13:59:47,073] <mongo-db> INFO  mongo  - Database process stopped, code=1
[2024-05-17 13:59:50,076] <mongod-tail> WARN  mongo  - Mongo log not found during startup
[2024-05-17 13:59:50,126] <mongo-db> WARN  mongo  - Stop listening to Mongo logs after process has exited
[2024-05-17 13:59:50,128] <mongo-db> INFO  mongo  - Database process stopped, code=1

Yep python was updated t0 3.11. Sadly Im on vacation for 2 weeks, no chance to update

HI Michael, I have a bit of a twist for you here, unsure why I'm getting inconsistent results following the same steps.


I did a fresh install on a barebones test vm running 24 1.8, went to the 8080 page, restore config -- all flawless with no additional steps required. (checked later on after having trouble with the actual FW I need to have it working - not even the proc and fdesc are present in fstab)


Went to the FW I need to have this running and thigs started going sideways, had 8080 running in a couple places, fixed the first as it was AGH on an interface then discovered meyergru's post here and after adding the two fstab mounts and moving Crowdsec things started working a bit.

The furthest I got here was the import page - where I used the same config file as above - and things died silently on me during the import.

For completeness, the test vm was running with 2GB ram and the FW4C has 8GB, so I ruled out any resource constraints that would make the import fail. 

OK so the two remaining issues were mongo not running - everything came up with
service mongod onestart
and the loop caused by the Unifi controller having the old IP configured in it - which would override the set-inform on the devices.

Haven't rebooted the FW yet so I'm unsure how mongo would behave post reboot. I don't see it listed Lobby - Services so it might need to be added to /etc/rc.conf ?


Actually this is a confirmed no, maybe it is a bug in Unifi ?

I just rebooted the FW, verified mongo was not running, could go as far as to do the login but then nothing would show up in the page until I started mongod manually.

While fixing the plugin, we may want to upgrade the controller as new version is also available.  Thanks


Well...for 8.1 yes, for 8.2 not yet :)

Just installing 8.1.127 now, thanks for providing it.

Hi all,

Thank mimugmail, am most happy to consolidate all my networking services onto a single box this weekend. ← feels so right this way.

When I ran the installer, I saw two commands that were to be run/setup at the end... but I stupidly clicked off the page onto another menu before I could act on them.
I vaguely recall a command associated with /proc and another with /etc/fstab.

I've got Unify running but I haven't restarted.  :) ;) :D ;D :o ::)

Am curious if anyone is able to let me know where to look to see what dependency/install advised to run these, and whether they actually required given Unifi is running great (sans restarting)

Once again, thank you.




Hi mimugmail!

Just need to ask if your plug-ins would work under version 24.7?

I'm kinda relectant to upgrade at the moment as it may break some things

Thanks