-
Notifications
You must be signed in to change notification settings - Fork 245
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
base: tong2x-7.5x.opnsense
Are you sure you want to change the base?
Conversation
Unifi NA 8.0.2
Update from Unifi 7.5.187 to Unifi 8.0.2, Successful (with the required changes in rc.d) |
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. |
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
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 No need to apply any fix after running the script. |
Successfully upgraded to 8.0.28 from 8.0.7 on PFSense 2.7.2 |
8.1.104
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. then again the master is too old either |
Just tested 8.1.104 on pfSense 23.09.1-RELEASE and unfortunately, it's not working. |
|
This comment was marked as resolved.
This comment was marked as resolved.
I have almost the same error, since there is too much text to compare but mine seemed to work, it is on OPNSENSE though. |
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. |
hmmm there is actauly not much change since 8.0.24 except the firmware itself. sometime it takes 2 to 5 minutes for unifi to load/start some times i need to restart the server. |
You're on FreeBSD 15 - unlike me, I'm on 14
So you'll need to dig up the correct package for that version
Van: "n3IVI0" ***@***.***>
Aan: "unofficial-unifi/unifi-pfsense" ***@***.***>
Cc: "danny vandepol" ***@***.***>, "Mention" ***@***.***>
Verzonden: Woensdag 21 augustus 2024 14:23:01
Onderwerp: Re: [unofficial-unifi/unifi-pfsense] beta UniFi Network Application 8.4.59 (PR #332)
pkg add [ https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/mongodb44-4.4.29.pkg | https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/mongodb44-4.4.29.pkg ]
Fetching mongodb44-4.4.29.pkg: 100% 42 MiB 4.9MB/s 00:09
Installing mongodb44-4.4.29...
pkg: wrong architecture: FreeBSD:14:amd64 instead of FreeBSD:15:amd64
Failed to install the following 1 package(s): [ https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/mongodb44-4.4.29.pkg | https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/mongodb44-4.4.29.pkg ]
Can't install mongodb44
—
Reply to this email directly, [ #332 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ABEX3MR46F3RGMK6NIGOOLLZSSBCLAVCNFSM6AAAAAA6TUKKTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRHEZDCNRZHE | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
|
I am on pfSense 24.03. Which uses FreeBSD 15. |
# In one shell start mongod (adapt the db path if needed to match your setup)
mongod --port 27117 -dbpath /usr/local/UniFi/data/db
# if your mongodb binary is supported by the featureCompatibilityVersion in the db it will keep on running
# if not it will shutdown and return to the command prompt, if so uninstall and install the required version
# In another shell launch
mongo --port 27117
# this will give you an interactive mongo shell, then to check the current setting enter
db.adminCommand(
{
getParameter: 1,
featureCompatibilityVersion: 1
}
)
# change to e.g. 4.4 with
db.adminCommand(
{
setFeatureCompatibilityVersion: "4.4",
}
)
# and check it again if you like and finally
exit
Van: "tong2x" ***@***.***>
Aan: "unofficial-unifi/unifi-pfsense" ***@***.***>
Cc: "danny vandepol" ***@***.***>, "Mention" ***@***.***>
Verzonden: Woensdag 21 augustus 2024 14:22:14
Onderwerp: Re: [unofficial-unifi/unifi-pfsense] beta UniFi Network Application 8.4.59 (PR #332)
was able to start Unifi controller
Opnsense 24.7.1, clean install and installed it twice and let it sit for more than 2 hours...
[ https://github.com/user-attachments/assets/3c23d79e-7fbe-49e0-b67f-a54b63e1bc5b | image.png (view on web) ]
[ https://github.com/dvdp | @dvdp ]
how do you set compability mode via command?
could you post command also to uninstall and install mongoDB? via command line
—
Reply to this email directly, [ #332 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ABEX3MRKOP7J6O3UFEVRI5DZSSA7NAVCNFSM6AAAAAA6TUKKTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRHEZDAMJRGY | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
|
If you have a huge history, the database conversion could take quite a while I guess, stop and start again to find out ...
(I'm running a db prune job every now and then to reduce the history)
Van: "n3IVI0" ***@***.***>
Aan: "unofficial-unifi/unifi-pfsense" ***@***.***>
Cc: "danny vandepol" ***@***.***>, "Mention" ***@***.***>
Verzonden: Woensdag 21 augustus 2024 14:33:44
Onderwerp: Re: [unofficial-unifi/unifi-pfsense] beta UniFi Network Application 8.4.59 (PR #332)
I can see the changes in the script. Does it take 2 hours for the controller to start every time?
—
Reply to this email directly, [ #332 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ABEX3MWM3PDP37MS6F66NMDZSSCKRAVCNFSM6AAAAAA6TUKKTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRHE2DGMZWGM | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
|
So check in the logs what compatibility level you have and find a mongodb package for one above that version
(not sure how many you can skip before it starts complaining - check the mongodb website for that maybe)
Van: "n3IVI0" ***@***.***>
Aan: "unofficial-unifi/unifi-pfsense" ***@***.***>
Cc: "danny vandepol" ***@***.***>, "Mention" ***@***.***>
Verzonden: Woensdag 21 augustus 2024 14:47:00
Onderwerp: Re: [unofficial-unifi/unifi-pfsense] beta UniFi Network Application 8.4.59 (PR #332)
I am on pfSense 24.03. Which uses FreeBSD 15.
—
Reply to this email directly, [ #332 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ABEX3MXF4B6ZHLZEZXUO7Q3ZSSD4JAVCNFSM6AAAAAA6TUKKTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRHE3DSOBTGY | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
|
For the commands to uninstall/install I just grabbed some lines from the install-unifi.sh script
As I mentioned before, this worked for me on FreeBSD 14 to go back from 5.0 to 4.4
with 4.4 allowing me to step feature level from 4.2 to 4.4
# get into an interactive shell
/bin/sh
# unlock and remove
pkg unlock -yq mongodb50
pkg remove -yq mongodb50
# removed mongodb50 from the list since that one was not working for my featureCompatibilityVersion 4.2
SUPPORTED_MONGODB_PACKAGES="mongodb44 mongodb42 mongodb40 mongodb"
ABI=`/usr/sbin/pkg config abi`
FREEBSD_PACKAGE_URL="https://pkg.freebsd.org/${ABI}/quarterly/"
# I changed latest to quarterly - that one contains mongodb44
# Build a list of possible packagesite.* URLs
for ext in pkg txz; do
FREEBSD_PACKAGE_LIST_URLS="$FREEBSD_PACKAGE_LIST_URLS ${FREEBSD_PACKAGE_URL}packagesite.${ext}"
done
# Try each of the URLs in the list and exit if they all fail
if ! fetch -q1o - $FREEBSD_PACKAGE_LIST_URLS > packagesite.pkg 2> /dev/null; then
echo "Error downloading $FREEBSD_PACKAGE_LIST_URLS"
exit 1
fi
tar fx packagesite.pkg || exit 1
# Find the latest supported mongodb version that's available in the repository
for package_name in $SUPPORTED_MONGODB_PACKAGES; do
if grep -q "\"name\":\"$package_name\"" packagesite.yaml; then
CURRENT_MONGODB_VERSION="$package_name"
break
fi
done
# check the result - I needed mongodb44 so it should print that version
echo $ CURRENT_MONGODB_VERSION
# if that matches the version you need, continue
pkgname=$ CURRENT_MONGODB_VERSION
base_url=${2:-$FREEBSD_PACKAGE_URL}
pkginfo=`grep "\"name\":\"$pkgname\"" packagesite.yaml`
pkgvers=`echo $pkginfo | pcregrep -o1 '"version":"(.*?)"' | head -1`
pkgurl="${base_url}`echo $pkginfo | pcregrep -o1 '"path":"(.*?)"' | head -1`"
# one more check - this should print the full path to the pkg file
echo $pkgurl
# if you like what you see, install and lock
/usr/sbin/pkg add -f "$pkgurl"
pkg lock $pkgname
# and finally exit the shell
exit
After all this, I used pretty much the same code to go from 4.4 to 5.0
- add mongodb50 back to the version list (first option of course)
- change quarterly back to latest
- unlock and uninstall mongodb40
Needless to say you need to stop mongod before removing ...
Van: "tong2x" ***@***.***>
Aan: "unofficial-unifi/unifi-pfsense" ***@***.***>
Cc: "danny vandepol" ***@***.***>, "Mention" ***@***.***>
Verzonden: Woensdag 21 augustus 2024 14:22:14
Onderwerp: Re: [unofficial-unifi/unifi-pfsense] beta UniFi Network Application 8.4.59 (PR #332)
was able to start Unifi controller
Opnsense 24.7.1, clean install and installed it twice and let it sit for more than 2 hours...
[ https://github.com/user-attachments/assets/3c23d79e-7fbe-49e0-b67f-a54b63e1bc5b | image.png (view on web) ]
[ https://github.com/dvdp | @dvdp ]
how do you set compability mode via command?
could you post command also to uninstall and install mongoDB? via command line
—
Reply to this email directly, [ #332 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ABEX3MRKOP7J6O3UFEVRI5DZSSA7NAVCNFSM6AAAAAA6TUKKTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRHEZDAMJRGY | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
|
Did a quick check, [ http://pkg.freebsd.org/FreeBSD:15:amd64/latest/ | http://pkg.freebsd.org/FreeBSD:15:amd64/latest/ ] contains
mongodb60, 70 and 80 ...
Van: "danny vandepol" ***@***.***>
Aan: "unofficial-unifi/unifi-pfsense" ***@***.***>
Verzonden: Woensdag 21 augustus 2024 14:33:24
Onderwerp: Re: [unofficial-unifi/unifi-pfsense] beta UniFi Network Application 8.4.59 (PR #332)
You're on FreeBSD 15 - unlike me, I'm on 14
So you'll need to dig up the correct package for that version
Van: "n3IVI0" ***@***.***>
Aan: "unofficial-unifi/unifi-pfsense" ***@***.***>
Cc: "danny vandepol" ***@***.***>, "Mention" ***@***.***>
Verzonden: Woensdag 21 augustus 2024 14:23:01
Onderwerp: Re: [unofficial-unifi/unifi-pfsense] beta UniFi Network Application 8.4.59 (PR #332)
pkg add [ https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/mongodb44-4.4.29.pkg | https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/mongodb44-4.4.29.pkg ]
Fetching mongodb44-4.4.29.pkg: 100% 42 MiB 4.9MB/s 00:09
Installing mongodb44-4.4.29...
pkg: wrong architecture: FreeBSD:14:amd64 instead of FreeBSD:15:amd64
Failed to install the following 1 package(s): [ https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/mongodb44-4.4.29.pkg | https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/mongodb44-4.4.29.pkg ]
Can't install mongodb44
—
Reply to this email directly, [ #332 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ABEX3MR46F3RGMK6NIGOOLLZSSBCLAVCNFSM6AAAAAA6TUKKTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRHEZDCNRZHE | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
|
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? |
this is now using a higher mongodb 5.0 version due to freebsd14 |
fix the mongodb install issues on 2.7.0
|
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 But proceeds with install. Still hanging. |
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. |
Yep, my CPU is non-AVX: grep -i -e features -e avx /var/run/dmesg.boot We need a version of mongodb50 that is compiled for non-AVX CPUs to work with these newer versions of the unifi controller. |
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/ |
would newer mongodb work? |
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. |
My CPU, Intel e3-8100, has AVX instructions and mongodb50 or mongodb60 won't start anyway. The error is: |
how bout force install of mongodb44? |
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. |
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. 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. |
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. |
** 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
to