OPNsense Forum

English Forums => General Discussion => Topic started by: mimugmail on March 07, 2025, 08:58:39 PM

Title: unifi9 in community repo
Post by: mimugmail on March 07, 2025, 08:58:39 PM
There is now a new plugin, os-unifi9-maxit.

You need to take a backup inside unifi controller and export it.

Then stop unifi plugin via opnsense, remove the plugin via System : Firmware : Plugins

Install the new plugins, start the service and pray (or import).

If it doesn't start, maybe wipe the java folder:

stop the plugin

remove the plugin

vial cli: rm -f /usr/local/share/java/unifi/data/

install plugin

start plugin
Title: Re: unifi9 in community repo
Post by: caplam on March 24, 2025, 10:05:47 AM
Hello,

I have my unifi controller running as a compose stack on an unraid server.
It uses a mongodb 7 database. I installed the plugin and saw that it uses a mongodb 6 database. Are you aware of a downgrade path of mongo database from 7 to 6 ?

For now i did not start the plugin as i see it uses port 8443 which is the port used for opnsense gui. Is there a way to change it before enabling the plugin ?

edit: it seems there is no downgrade path for 7.0 to 6.0 mongo database.

do you plan to release to release a plugin version with mongo 7?
Title: Re: unifi9 in community repo
Post by: Mark_the_Red on March 27, 2025, 05:29:07 PM
Reading your message with the  "pray" comment.  Are you advising against updating to os-unifi9-maxit?   Currently using the one from your repository 8.6.9.  Just trying to understand the pray comment.  Thanks!
Title: Re: unifi9 in community repo
Post by: mimugmail on March 28, 2025, 10:45:15 PM
Just kidding, but I only tested once on my own, nothing more
Title: Re: unifi9 in community repo
Post by: Mark_the_Red on April 02, 2025, 07:28:11 PM
I thought it was sarcasm, but it was true.   Trying to restore from backup bricks the plugin, so I had to reconfigure it from scratch.   Not a big deal.   Thanks for supporting this plugin by the way; fantastic having this on the router itself.
Title: Re: unifi9 in community repo
Post by: caplam on April 17, 2025, 06:57:50 PM
For those like me migrating from a network controller on a server (unraid docker in my case) to the plugin on opnsense, db version is not a concern only controller version.
You simply have to take a backup of the old controller, start the new one (opnsense plugin) and select restore from a backup. Then connect with ssh to network devices and update inform host.
If you have other services running on ports 8080 (crowdsec in my case) and 8443 (opnsense gui in my case) you have to edit system.properties with the correct ports (/usr/local/share/java/unifi/data/system.properties)
Title: Re: unifi9 in community repo
Post by: verfluchten on May 19, 2025, 07:25:59 PM
How should I troubleshoot mini upnpd crashes? It used to work fine for months until I reinstalled recently.
Title: Re: unifi9 in community repo
Post by: Patrick M. Hausen on May 19, 2025, 08:28:47 PM
Quote from: verfluchten on May 19, 2025, 07:25:59 PMHow should I troubleshoot mini upnpd crashes? It used to work fine for months until I reinstalled recently.
I suggest you open a thread with that topic of yours, because this one is about Unifi Controller - very different thing.
Title: Re: unifi9 in community repo
Post by: verfluchten on May 20, 2025, 02:41:36 PM
miniupnpd loaded itself all on its own, several hours later.
Title: Re: unifi9 in community repo
Post by: hoondi on May 21, 2025, 11:19:24 AM
I have installed os-unifi9-maxit and I see it's running  1.4 / 9.0.114

Is it possible to update to 9.1.120 or do we wait for mimugmail to do it and have it pushed through OPNSense's overall update process?

ta
Title: Re: unifi9 in community repo
Post by: MagikMark on May 22, 2025, 03:36:22 AM
@hoondi

We have to be patient and wait for mimugmail to update the plugin when he is ready
Title: Re: unifi9 in community repo
Post by: mimugmail on May 22, 2025, 09:38:53 PM
I will kick a new build now :)
Title: Re: unifi9 in community repo
Post by: hoondi on May 25, 2025, 08:32:32 AM
Champion!

Thank you
Title: Re: unifi9 in community repo
Post by: Dra60nfly on May 28, 2025, 09:10:38 AM
Hi,

Forgive my ignorance - I only installed the Unifi package a couple of days ago (which is working perfectly) - how do I update the package to 9.1.120 from 9.0.114 ?

A click inside the Unifi app just allows me to download the file, so I assume I need to reinstall the package via GUI or there's some kind of shell PKG command I need to run ?

Thanks in advance for any assistance - the repo is really great and I (as I'm sure others do also) really appreciate the time and effort you put in to make it work for the benefit of others
Title: Re: unifi9 in community repo
Post by: Patrick M. Hausen on May 28, 2025, 09:54:22 AM
System > Firmware > Status

Click on "Check for Updates".
Title: Re: unifi9 in community repo
Post by: mimugmail on May 28, 2025, 08:45:54 PM
Packages still Compile due to some errors ...
Title: Re: unifi9 in community repo
Post by: Dra60nfly on May 29, 2025, 03:26:50 PM
Quote from: Patrick M. Hausen on May 28, 2025, 09:54:22 AMSystem > Firmware > Status

Click on "Check for Updates".

Ha, yes that was my first port of call but I made an assumption that mimugmail had been able to update the package (to 1.4.x) so was confused when no updates were highlighted.  I them made my second (wrong) assumption that I must therefore need to perform other steps.

I see now I just need to be patient for mimugmail to update the package and then updating for my installation is done in the 'normal' Opnsense way.

Many thanks
Title: Re: unifi9 in community repo
Post by: mimugmail on May 30, 2025, 12:59:41 PM
New pkg's are there, be sure to make a backup before :)
Title: Re: unifi9 in community repo
Post by: Mark_the_Red on June 02, 2025, 11:24:19 PM
You're doing Gods work here mimugmail!  Thank you.
Title: Re: unifi9 in community repo
Post by: hoondi on June 06, 2025, 12:35:00 PM
more than that Mark_the_Red,

Cos unlike God, mimugmail has an actual bank account...

Spill the beans mate... wanna donate to your efforts.

Not seeing anything at mimugmail/opn-repo nor https://www.routerperformance.net so... c'mon, you should like receive a boat-load for the homelab guys enjoying your efforts.

My value is at a hundred AUD here for ya and I wish I could afford to hand over a bit more... just tell me where....

Tariff free! LOL
Title: Re: unifi9 in community repo
Post by: JohnnyKing on July 17, 2025, 06:26:09 PM
Hey... mimugmail, would it be possible to get the latest build from July 14, for version 9.3.43 of os-unifi9-maxit?

Thanks in advance <3