@daniel_shub, It seems that the latest unifi is not working with the latest mongodb-bin. I downgraded mongodb-bin to mongodb36-bin to make it work. If it's a new installation, you'll have to delete the content of /var/lib/unifi/data (keep the directory itself) as it will contain a newer DB revision.
Search Criteria
Package Details: unifi 9.0.108-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/unifi.git (read-only, click to copy) |
---|---|
Package Base: | unifi |
Description: | Centralized management system for Ubiquiti UniFi AP |
Upstream URL: | https://unifi-network.ui.com |
Licenses: | custom |
Conflicts: | tomcat-native |
Submitter: | seblu |
Maintainer: | freswa |
Last Packager: | freswa |
Votes: | 69 |
Popularity: | 0.54 |
First Submitted: | 2017-08-22 01:31 (UTC) |
Last Updated: | 2025-01-06 14:17 (UTC) |
Dependencies (3)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- java-runtime-headless (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdg-headlessAUR, jre16-openjdk-headlessAUR, jre14-openjdk-headlessAUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdk-headlessAUR, amazon-corretto-19-binAUR, liberica-jre-11-full-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jre-openj9-headlessAUR, jre12-openjdk-headlessAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdk-headlessAUR, jre15-openjdk-headlessAUR, jre-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, zulu-17-binAUR, zulu-8-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jre19-openjdk-headlessAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, zulu-21-binAUR, jre8AUR, jdk8AUR, jdk8-perfAUR, zulu-jre-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk11-openj9-binAUR, jre-openjdk-wakefield-headlessAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk21-openj9-binAUR, jreAUR, jdkAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jdk17-openj9-binAUR, zing-8-binAUR, zing-21-binAUR, jdk-openj9-binAUR, zulu-11-binAUR, jdk8-graalvm-ee-binAUR, java-openjdk-binAUR, zulu-17-fx-binAUR, zulu-23-binAUR, jdk21-jetbrains-binAUR, jre11AUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, jre17AUR, openjdk-zulu-ca-fx-binAUR, openjdk-zulu8-ca-fx-binAUR, openjdk-zulu11-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk8-openj9-binAUR, jre-jetbrainsAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jre21-zulu-binAUR, jre17-zulu-binAUR, java-openjdk-ea-binAUR, jre-zuluAUR, jre-zulu-fxAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre-openjdk-headless, jre11-openjdk, jre11-openjdk-headless, jre17-openjdk, jre17-openjdk-headless, jre21-openjdk, jre21-openjdk-headless, jre8-openjdk-headless)
- mongodbAUR (mongodb32-binAUR, percona-server-mongodb-binAUR, mongodb36-binAUR, mongodb34-binAUR, mongodb40-binAUR, mongodb44-binAUR, mongodb42-binAUR, mongodb60-binAUR, mongodb50-binAUR, mongodb50AUR, ferretdbAUR, ferretdb-binAUR, mongodb44AUR, mongodbAUR, mongodb-binAUR, mongodb70-binAUR)
Required by (0)
Sources (6)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 23 Next › Last »
mokalan commented on 2023-05-29 19:16 (UTC)
daniel_shub commented on 2023-05-10 18:04 (UTC)
This package is making me feel like a noob. I am getting the 404 error. I have built the package in a clean chroot with makepkg. Are there patches to the PKGBUILD, or other files, that are needed. I have tried the two different ways of starting the service without any luck.
kuon commented on 2023-03-13 22:39 (UTC)
Right, maybe just print a hint to edit the file?
Scimmia commented on 2023-03-13 15:09 (UTC)
Which fails if you're using something like Oracle Java
kuon commented on 2023-03-13 00:54 (UTC) (edited on 2023-03-13 00:54 (UTC) by kuon)
I suggest you hardcode the java path in the service file, this way it will work even if the wrong java version is selected:
[Unit]
Description=Ubiquiti UniFi Server
After=network.target
[Service]
User=unifi
WorkingDirectory=/usr/lib/unifi
ExecStart=/usr/lib/jvm/java-11-openjdk/bin/java -jar /usr/lib/unifi/lib/ace.jar start
ExecStop=/usr/lib/jvm/java-11-openjdk/bin/java -jar /usr/lib/unifi/lib/ace.jar stop
[Install]
WantedBy=multi-user.target
ruahcra commented on 2023-03-07 04:24 (UTC)
Can one just stop unifi, and then uninstall, for example, mongodb36-bin, and install mongodb50, or is some database migration required as well?
Scimmia commented on 2023-03-07 04:13 (UTC)
The reason is that someone says "hey, this works!" and people blindly follow, even when others give better info. It's been said before, MongoDB 4.4 if on a CPU without AVX, MongoDB 5.0 on anything newer.
bobpaul commented on 2023-03-07 02:00 (UTC)
Is there a reason everyone's still using MongoDB 3.6? Unifi has worked with MongoDB 5.0 for a while. AFAIK, it still fails with 6+, but 5 is fine. MonboDB 3.6 end of life was in April 2021.
alhirzel commented on 2023-02-08 13:12 (UTC) (edited on 2023-02-08 13:13 (UTC) by alhirzel)
I initially had problems due to package versions, but was able to get it working. I had to clean up the database/logs.
# step 1: install mongodb36-bin java-11-openjdk
# step 2: clean up after my step -1, -2, -3, etc
sudo bash -c 'rm -rf /var/lib/unifi/data/* /var/log/unifi/*'
# step 3: make sure the right Java version is used
sudo -u unifi /usr/lib/jvm/java-11-openjdk/bin/java -jar /usr/lib/unifi/lib/ace.jar start
Thanks @somelucky and @torben for the tips!
somelucky commented on 2023-01-22 21:58 (UTC)
I was continuing to receive the 404 error even after changing to all of the recommendations. It wasn't until the unifi package was re-built while java 11 was defaulted that it finally started. My previous db failed to upgrade, but I was able to recover the configuration autosave. I have the following dependencies installed:
mongodb36-bin java-11-openjdk
Pinned Comments
freswa commented on 2019-10-30 11:50 (UTC)
We are on Stable with this Package. Please flag out-of-date only if the Version provided with this package does not match the version under "Stable" in this link: https://help.ubnt.com/hc/en-us/articles/360008240754#1