Package Details: unifi 9.0.108-2

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)

Required by (0)

Sources (6)

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

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, 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.

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