OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config
« previous next »
  • Print
Pages: [1] 2 3 ... 6

Author Topic: mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config  (Read 30727 times)

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config
« on: October 26, 2023, 01:17:03 pm »
EDIT: This only affects you if you have enabled my comunity repo: https://www.routerperformance.net/opnsense-repo/

Hi,

for a couple of months there were no updates on the community repo, cause of the fact that FreeBSD updated the unifi7 port with v7.4 that it get's bundled with mongodb4.4 instead of mongodb3.6 (which is EoL). The problem is, that there is no upgrade path between 3.6 to 4.4 and Unifi solved this in Windows/Linux a different way than the FreeBSD guys :)

So, in my tests I failed 100% of all upgrade from 7.3 to 7.4 or 7.5, which means, after upgrade you can use your wifi but can't login into the controller. To fix this, you need download a backup of Unifi and head over to CLI:



service unifi stop

pkg remove os-unifi7-maxit unifi7

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

pkg install os-unifi7-maxit



Browse to your controller and restore from backup.



If you know a better way, I'm happy for any help.

Right now I need to do this cause of the openssl111 trouble beginning with 23.7.7 (where FreeBSD is responsible, not OPNsense).
« Last Edit: October 27, 2023, 03:09:04 pm by mimugmail »
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

meyergru

  • Hero Member
  • *****
  • Posts: 1756
  • Karma: 171
  • IT Aficionado
    • View Profile
    • congenio
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #1 on: October 26, 2023, 02:01:18 pm »
Is the transition already active? I am asking because I did not have the plugin installed as of yet and wanted to try as a fresh install. Neither of the two plugins os-unifi7-maxit and os-unifi-maxinit can be installed because of missing dependencies on openssl:

Code: [Select]
pkg: libevent has a missing dependency: openssl
pkg: mongodb36 has a missing dependency: openssl

Also, I was surprised to see a mongodb36 dependency on both packages, I should have expected mongodb44 in os-unifi7-maxit?
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #2 on: October 26, 2023, 02:49:24 pm »
As I said, "upcoming", it's a warning everyone using it should take a backup before I push the release.
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

v4npro

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #3 on: October 26, 2023, 04:00:11 pm »
Thanks mimugmail. Patiently waiting for release.

Quote from: mimugmail on October 26, 2023, 01:17:03 pm
Hi,

for a couple of months there were no updates on the community repo, cause of the fact that FreeBSD updated the unifi7 port with v7.4 that it get's bundled with mongodb4.4 instead of mongodb3.6 (which is EoL). The problem is, that there is no upgrade path between 3.6 to 4.4 and Unifi solved this in Windows/Linux a different way than the FreeBSD guys :)

So, in my tests I failed 100% of all upgrade from 7.3 to 7.4 or 7.5, which means, after upgrade you can use your wifi but can't login into the controller. To fix this, you need download a backup of Unifi and head over to CLI:



service unifi stop

pkg remote os-unifi7-maxit unifi7

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

pkg install os-unifi7-maxit



Browse to your controller and restore from backup.



If you know a better way, I'm happy for any help.

Right now I need to do this cause of the openssl111 trouble beginning with 23.7.7 (where FreeBSD is responsible, not OPNsense).
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #4 on: October 27, 2023, 01:04:53 pm »
Just updated the repo ... be prepared:

https://www.reddit.com/r/opnsense/comments/17hl1ge/opnsense_community_repo_updated_fixes_openssl111/
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

DEC670airp414user

  • Full Member
  • ***
  • Posts: 166
  • Karma: 8
    • View Profile
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #5 on: October 27, 2023, 01:32:48 pm »
which unifi plugin are you talking about exactly.

I am not seeing anything in the system > firmware > plugins about unifi

I have a separate cloud key controller.     is doing an open sense update going to break my Vlans? or what exactly is this

Logged

cookiemonster

  • Hero Member
  • *****
  • Posts: 1827
  • Karma: 95
    • View Profile
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #6 on: October 27, 2023, 01:47:47 pm »
will only appear if you have enabled his repository.
Logged

DEC670airp414user

  • Full Member
  • ***
  • Posts: 166
  • Karma: 8
    • View Profile
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #7 on: October 27, 2023, 01:51:50 pm »
Quote from: cookiemonster on October 27, 2023, 01:47:47 pm
will only appear if you have enabled his repository.

I figured this was the case.  but this is a very vague post under General.

either way the heads up is appreciated.  and glad I do not have to worry about this issue..

thank you for what you do @ mimugmail
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17707
  • Karma: 1618
    • View Profile
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #8 on: October 27, 2023, 01:53:53 pm »
Yeah I agree, we should clarify in the subject of the first post that this is about the mimugmail repo?


Cheers,
Franco
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #9 on: October 27, 2023, 02:53:43 pm »
I edited the main post :)

As there are around 1000 activations of the repo per month I thought it might be of broader use and posting in general is fine :)
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

CJ

  • Hero Member
  • *****
  • Posts: 832
  • Karma: 30
    • View Profile
    • Have Answer, Will Blog
Re: mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config
« Reply #10 on: October 27, 2023, 03:51:26 pm »
Perhaps there needs to be either a separate Plugin (or even mimugmail :) ) forum section like there is for Zenarmor.

This could help with people better understanding what capabilities are part of the core OPNSense and what aren't.
Logged
Have Answer, Will Blog

v4npro

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Upcoming Unifi Plugin Upgrade will break your config
« Reply #11 on: October 27, 2023, 04:06:07 pm »
Thank you mimugmail. I'm up and running.

Quote from: mimugmail on October 27, 2023, 01:04:53 pm
Just updated the repo ... be prepared:

https://www.reddit.com/r/opnsense/comments/17hl1ge/opnsense_community_repo_updated_fixes_openssl111/
Logged

meyergru

  • Hero Member
  • *****
  • Posts: 1756
  • Karma: 171
  • IT Aficionado
    • View Profile
    • congenio
Re: mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config
« Reply #12 on: November 01, 2023, 05:52:41 pm »
For me, it does not work. It is acting strange, like for example it installs both OpenJDK8 and OpenJDK17.

When I enable the daemon, expecting to have a Web GUI on port 8080 for initial configuration, the process starts (can see it with ps) but exits after a few seconds with no log messages.

I added this to fstab and mounted like it is said in the log messages:

Code: [Select]
fdesc   /dev/fd         fdescfs         rw      0       0
proc    /proc           procfs          rw      0       0

unifi user and group has been added as well.

When I start the process as shown in ps manually, it runs and does not stop:

Code: [Select]
# cd /usr/local/share/java/unifi/
# /usr/local/openjdk17/bin/java -Djava.awt.headless=true -Xmx1024M --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.base/sun.security.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED -jar lib/ace.jar start

However, unifi controller did not listen to port 8080.

Later, I found that it collides with crowdsec already running on port 8080 (there should be a warning about that). But even after I disabled crowdsec, uninstalled unifi, deleted /usr/local/share/java/unifi, reinstalled unifi and started over, I now only get "HTTP Status 404 – Not Found" on either https://opnsense:8443 or http://opnsense:8080.

I can see no obvious errors in the unifi log files, mongodb seems to run as well.

P.S.: After just a while of waiting, it suddenly shows a Web GUI now, so what is left is:

1. Crowdsec port 8080 collides with unifi.
2. Both OpenDSK8 and OpenJDK17 are installed - as far as I can see, only OpenJDK17 is used.
3. There should be a hint to delete /usr/local/share/java/unifi and re-install unifi if something goes wrong.
4. The Help page should warn about the slow startup.
« Last Edit: November 01, 2023, 05:58:25 pm by meyergru »
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config
« Reply #13 on: November 01, 2023, 06:17:32 pm »
The colliding port message is already there when you enable the Service, isnt there a yellow warning Box?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

meyergru

  • Hero Member
  • *****
  • Posts: 1756
  • Karma: 171
  • IT Aficionado
    • View Profile
    • congenio
Re: mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config
« Reply #14 on: November 01, 2023, 06:25:02 pm »
No, none that I was aware of. It is easy to have Crowdsec on another LAPI port, just that 8080 is the default.
I wanted to test only anyway, I usually have Unifi Controller running under Proxmox.
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

  • Print
Pages: [1] 2 3 ... 6
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • mimugmail repo: Upcoming Unifi Plugin Upgrade will break your config
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2