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 8.6.3 #332

Open
wants to merge 27 commits into
base: tong2x-7.5x.opnsense
Choose a base branch
from

Conversation

tong2x
Copy link
Collaborator

@tong2x tong2x commented Oct 28, 2023

** To work on PFSense 2.7 follow FIX/Work around SEE #328 **
beta UniFi Network Application 8.6.3
Firmware Overview/Details
Install command: fetch -o - https://t.ly/AlEhP | sh -s

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

beta UniFi Network Application 8.4.62
Firmware Overview/Details
Install command: fetch -o - https://rb.gy/f69du8 | sh -s

beta UniFi Network Application 8.4.59
Firmware Overview/Details
Install command: fetch -o - https://rb.gy/354l9q | sh -s

beta UniFi Network Application 8.3.32
Firmware Overview/Details
Install command: fetch -o - https://shorturl.at/1f44U | sh -s

beta UniFi Network Application 8.3.28
Firmware Overview/Details
Install command: fetch -o - https://shorturl.at/ygJGt | sh -s

beta UniFi Network Application 8.3.20
Firmware Overview/Details
Install command: fetch -o - https://shorturl.at/bUwZ9 | sh -s

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

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

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

beta UniFi Network Application 8.1.127
Firmware Overview/Details
Install command: fetch -o - https://t.ly/EPR0K | sh -s
NOTE: Make backup first, failed update on OPNsense

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

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

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

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

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

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

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

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

beta UniFi Network Application 8.0.24
Firmware Overview/Details
Install command: fetch -o - https://rb.gy/4iq0kr | sh -s
Install command: fetch -o - https://t.ly/jDsQe | sh -s

beta UniFi Network Application 8.0.21
Firmware Overview/Details
Install command: fetch -o - https://rb.gy/xxesox | sh -s
Install command: fetch -o - https://t.ly/DIwbq | sh -s
*changed to https://rb.gy due to issued with https://shorturl.at

beta UniFi Network Application 8.0.7
Firmware Overview/Details
Install command: fetch -o - https://rb.gy/5p8f1o | sh -s
Install command: fetch -o - https://shorturl.at/pqsuG | sh -s
*changed to www.shorturl.at due to issued with tinyurl.com
*unifi.sh modification NOT required, commited to main branch already

beta UniFi Network Application 8.0.6
Firmware Overview/Details
Install command: fetch -o - https://rb.gy/6eirx2 | sh -s
Install command: fetch -o - https://shorturl.at/ckGO6 | sh -s
*unifi.sh modification NOT required, commited to main branch already

beta UniFi Network Application 8.0.2
Firmware Overview/Details
Install command: fetch -o - https://rb.gy/qfb8or | sh -s
Install command: fetch -o - https://shorturl.at/fnEGU | sh -s

Other required changes working for opnsense 23: saw some posted this fix for the log errors in the main Unifi forums page...
by User "doestergaard"
view post

/usr/local/etc/rc.d/unifi.sh
Try appending --add-opens=java.base/java.time=ALL-UNNAMED to your execstart:
ExecStart=/usr/bin/java --add-opens=java.base/java.time=ALL-UNNAMED -jar /opt/UniFi/lib/ace.jar
using winscp I modified

    # So we start it in the background and stash the pid:
    /usr/local/bin/java -jar /usr/local/UniFi/lib/ace.jar start &

to

    # So we start it in the background and stash the pid:
    /usr/local/bin/java --add-opens=java.base/java.time=ALL-UNNAMED -jar /usr/local/UniFi/lib/ace.jar start &

Unifi NA 8.0.2
@tong2x
Copy link
Collaborator Author

tong2x commented Oct 28, 2023

Update from Unifi 7.5.187 to Unifi 8.0.2, Successful (with the required changes in rc.d)
OPNsense 23.7.7_3-amd64
FreeBSD 13.2-RELEASE-p3
OpenSSL 1.1.1w 11 Sep 2023

@CodeJACKz
Copy link

Thanks a lot, after many weeks, I've decided to ditch pfsense for opnsense and finally I now have my Unifi controller back where I want it. I was getting error 404 initially but this turned out to be browser cache as was sorted in a private session.

@CodeJACKz
Copy link

I also lost the adoption of my AP but the last backup I had was a couple of revisions old. All the settings restored so I just factory reset my AP and adopted as new. Back online now

beta 8.0.6
@tong2x tong2x changed the title beta UniFi Network Application 8.0.2 beta UniFi Network Application 8.0.6 Nov 7, 2023
8.0.7
@tong2x tong2x changed the title beta UniFi Network Application 8.0.6 beta UniFi Network Application 8.0.7 Nov 11, 2023
8.0.21
@tong2x tong2x changed the title beta UniFi Network Application 8.0.7 beta UniFi Network Application 8.0.21 Nov 29, 2023
8.0.24
@tong2x tong2x changed the title beta UniFi Network Application 8.0.21 beta UniFi Network Application 8.0.24 Dec 8, 2023
@CryptoSiD
Copy link

Just wanted to let you know that the following script works without issue on pfSense Plus 23.09.1

beta UniFi Network Application 8.0.24
Firmware Overview/Details
Install command: fetch -o - https://rb.gy/4iq0kr | sh -s

No need to apply any fix after running the script.

8.0.26
@tong2x tong2x changed the title beta UniFi Network Application 8.0.24 beta UniFi Network Application 8.0.26 Dec 22, 2023
@tong2x tong2x changed the title beta UniFi Network Application 8.0.26 beta UniFi Network Application 8.0.28 Jan 12, 2024
@vincenttermaat
Copy link

vincenttermaat commented Jan 27, 2024

Successfully upgraded to 8.0.28 from 8.0.7 on PFSense 2.7.2

@tong2x tong2x changed the title beta UniFi Network Application 8.0.28 beta UniFi Network Application 8.1.104 Feb 2, 2024
@Fry-kun
Copy link
Contributor

Fry-kun commented Feb 2, 2024

How come these changes are not being merged into master?

@tong2x
Copy link
Collaborator Author

tong2x commented Feb 3, 2024

How come these changes are not being merged into master?

not enough contributor/devs to verify and check before merging.

UniFi Network Application 8.0.28 is already official though. if more contributor would comment for a merge to main, which would mean that they have checked and tested.
I will also probably closing 7.x series as this 8.x series seems stable, except for the installation issues in other PFsense 2.7 systems

then again the master is too old either

@CryptoSiD
Copy link

Just tested 8.1.104 on pfSense 23.09.1-RELEASE and unfortunately, it's not working.

@tong2x
Copy link
Collaborator Author

tong2x commented Feb 3, 2024

Just tested 8.1.104 on pfSense 23.09.1-RELEASE and unfortunately, it's not working.
did you try #328 fix?
do you have specific error?

@CryptoSiD

This comment was marked as resolved.

@tong2x
Copy link
Collaborator Author

tong2x commented Feb 3, 2024

I have almost the same error, since there is too much text to compare but mine seemed to work, it is on OPNSENSE though.
what is the last working firmware version you tried?

@CryptoSiD
Copy link

I have almost the same error, since there is too much text to compare but mine seemed to work, it is on OPNSENSE though. what is the last working firmware version you tried?

I had to go back to 8.0.24. All other versions give me a 404 when loading the page.

I'll test again later and I'll keep you in touch.

@tong2x
Copy link
Collaborator Author

tong2x commented Feb 3, 2024

hmmm there is actauly not much change since 8.0.24 except the firmware itself.
maybe you can try also a clean install of unifi (then just reload a backup copy of your site, if unifi works)

sometime it takes 2 to 5 minutes for unifi to load/start some times i need to restart the server.

@dvdp
Copy link

dvdp commented Aug 21, 2024 via email

@n3IVI0
Copy link

n3IVI0 commented Aug 21, 2024

I am on pfSense 24.03. Which uses FreeBSD 15.

@dvdp
Copy link

dvdp commented Aug 21, 2024 via email

@dvdp
Copy link

dvdp commented Aug 21, 2024 via email

@dvdp
Copy link

dvdp commented Aug 21, 2024 via email

@dvdp
Copy link

dvdp commented Aug 21, 2024 via email

@dvdp
Copy link

dvdp commented Aug 21, 2024 via email

8.4.62
@tong2x tong2x changed the title beta UniFi Network Application 8.4.59 beta UniFi Network Application 8.4.62 Sep 6, 2024
8.5.1
@tong2x tong2x changed the title beta UniFi Network Application 8.4.62 beta UniFi Network Application 8.5.1 Sep 15, 2024
@n3IVI0
Copy link

n3IVI0 commented Oct 17, 2024

I am on pfSense 24.03, FreeBSD 15.

When attempting to run the latest 8.5.1, fetch -o - https://t.ly/DPn0b | sh -s

I get this:

0 B 0 Bpssh: Syntax error: newline unexpected (expecting word)

What does this mean?

This can be bypassed by creating the install script manually via cut and paste. It then runs normally. Everything installs. But then the unifi controller will not start. It seems to hang. Cannot be closed. It waits for unifi service to stop forever.

I am also getting "WARN Unable to load properties from '/usr/local/UniFi/data/system.properties' - /usr/local/UniFi/data/system.properties (No such file or directory)" in the CLI.

I suspect this is the same problem of mongodb not starting, needing to rollback to mongodb44. Is this still the case?

If so, how do I rollback to mongodb44 on FreeBSD 15?

@tong2x
Copy link
Collaborator Author

tong2x commented Oct 18, 2024

this is now using a higher mongodb 5.0 version due to freebsd14
but there seems to be a problem somewhere

8.6.3
@tong2x tong2x changed the title beta UniFi Network Application 8.5.1 beta UniFi Network Application 8.6.3 Oct 18, 2024
@tong2x
Copy link
Collaborator Author

tong2x commented Oct 18, 2024

fix the mongodb install issues on 2.7.0
#328
please check out thread there is instruction to reinstall mongoDB

I am on pfSense 24.03, FreeBSD 15.

When attempting to run the latest 8.5.1, fetch -o - https://t.ly/DPn0b | sh -s

I get this:

0 B 0 Bpssh: Syntax error: newline unexpected (expecting word)

What does this mean?

This can be bypassed by creating the install script manually via cut and paste. It then runs normally. Everything installs. But then the unifi controller will not start. It seems to hang. Cannot be closed. It waits for unifi service to stop forever.

I am also getting "WARN Unable to load properties from '/usr/local/UniFi/data/system.properties' - /usr/local/UniFi/data/system.properties (No such file or directory)" in the CLI.

I suspect this is the same problem of mongodb not starting, needing to rollback to mongodb44. Is this still the case?

If so, how do I rollback to mongodb44 on FreeBSD 15?

@n3IVI0
Copy link

n3IVI0 commented Oct 18, 2024

Will this work with the current version of pfSense+ / FreeBSD 15?

Running the current script under 24.03 gives this:

9028 B 7713 kBps 00s
ld-elf.so.1: /usr/local/bin/mongod: Undefined symbol "_ZNSt13exception_ptr31__from_native_exception_pointerEPv"

But proceeds with install. Still hanging.

@n3IVI0
Copy link

n3IVI0 commented Oct 18, 2024

Hey. Check this out: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277990

Seems the new mongodb50 is not compatible with our CPUs. This is the source of the illegal character errors. And why unifi hangs.

@n3IVI0
Copy link

n3IVI0 commented Oct 18, 2024

Yep, my CPU is non-AVX:

grep -i -e features -e avx /var/run/dmesg.boot
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x43d8e3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,AESNI,RDRAND>
AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
AMD Features2=0x101<LAHF,Prefetch>
Structured Extended Features=0x2282<TSCADJ,SMEP,ERMS,NFPUSG>
Structured Extended Features3=0xc000000<IBPB,STIBP>
ZFS storage pool version: features support (5000)
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x43d8e3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,AESNI,RDRAND>
AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
AMD Features2=0x101<LAHF,Prefetch>
Structured Extended Features=0x2282<TSCADJ,SMEP,ERMS,NFPUSG>
Structured Extended Features3=0xc000400<MD_CLEAR,IBPB,STIBP>

We need a version of mongodb50 that is compiled for non-AVX CPUs to work with these newer versions of the unifi controller.

@n3IVI0
Copy link

n3IVI0 commented Oct 18, 2024

Here is one: https://github.com/GermanAizek/mongodb-without-avx

Not sure how to integrate this.

These guys have some premade builds: turnkeylinux/tracker#1724 --> https://dist.flakybit.net/mongodb/

@tong2x
Copy link
Collaborator Author

tong2x commented Oct 19, 2024

would newer mongodb work?
monggodb44 is not working in freebsd14 they say
though some have tried the reinstalling outside the script

@n3IVI0
Copy link

n3IVI0 commented Oct 19, 2024

All mongodb newer than 44 requires a CPU with AVX support. The only workaround it seems is to compile with noavx. I tried both 6 and 7 to confirm - everything 5 and newer requires AVX CPUs. I have an Intel Atom CPU in my pfSense box. So I cannot run the unifi controller if it requires mongodb 5 or newer, which is the case on FreeBSD15. I am stuck. Anybody with older CPUs is going to be in the same boat. It's a pickle.

@CryptoSiD
Copy link

CryptoSiD commented Oct 19, 2024

My CPU, Intel e3-8100, has AVX instructions and mongodb50 or mongodb60 won't start anyway.

The error is:
ld-elf.so.1: /usr/local/bin/mongod: Undefined symbol "_ZNSt13exception_ptr31__from_native_exception_pointerEPv"

@tong2x
Copy link
Collaborator Author

tong2x commented Oct 19, 2024

how bout force install of mongodb44?

@Fry-kun
Copy link
Contributor

Fry-kun commented Nov 4, 2024

Seems like mongodb44 is not available anymore. How about mongodb50-5.0.28? That version seems to be working fine

@tong2x
Copy link
Collaborator Author

tong2x commented Nov 4, 2024

Seems like mongodb44 is not available anymore. How about mongodb50-5.0.28? That version seems to be working fine

some users are reporting that mongodB 5.0 and up required a secure CPU, which most cheap 3years old above ptocessors are not capable.
anyone code modify code in which mongodb 44 will be installed via freebsd13?

@Fry-kun
Copy link
Contributor

Fry-kun commented Nov 4, 2024

Seems like mongodb44 is not available anymore. How about mongodb50-5.0.28? That version seems to be working fine

some users are reporting that mongodB 5.0 and up required a secure CPU, which most cheap 3years old above ptocessors are not capable. anyone code modify code in which mongodb 44 will be installed via freebsd13?

To clarify, I have CPUs without AVX. One of my routers was using mongodb50-5.0.28 (from earlier upgrade) -- and that version is compatible.
The 2nd router I just tried to upgrade -- and mongodb50-5.0.29 failed to start.
I didn't find any official way of getting 5.0.28 or 4.4.*, so I copied over binaries from my other router for now.

My point was that 5.0.28 seems to be ok to use, so you don't have to go all the way back to 4.4.*

Aside, even 5.0 is noted as being EOL. If you're you able to make unifi server accept newer versions, 6.0 or even 7.0 would seem like a better choice.

@CryptoSiD
Copy link

CryptoSiD commented Nov 30, 2024

Version 8.6.3 is working fine with pfSense plus 24.11.

I suspect the MongoDB package installed by the script isn't compatible with the FreeBSD kernel of pfSense plus 24.03.

@tong2x
Copy link
Collaborator Author

tong2x commented Dec 4, 2024

please try #340 #340
beta UniFi Network Application 9.0.92
managed to installed directly without issues

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.

7 participants