Package Details: unifi 9.0.114-1

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: 70
Popularity: 0.61
First Submitted: 2017-08-22 01:31 (UTC)
Last Updated: 2025-02-04 12:05 (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 .. 23 Next › Last »

daniel_shub commented on 2024-08-31 03:03 (UTC)

I don't really understand systemd tmpfiles, but /var/lib/unifi is created by both the PKGBUILD and unifi.tmpfiles. I think the PKGBUILD line is unnecessary since the directory is empty in the package. The tmpfiles line creates it at the point it is needed and with the correct permissions and ownership.

kode54 commented on 2024-08-30 20:20 (UTC)

My system doesn't have a JAVA17EXEC environment variable, so I had to set the path manually.

GaryScottMartin commented on 2024-08-13 23:20 (UTC) (edited on 2024-08-13 23:24 (UTC) by GaryScottMartin)

Just to make it a little easier for those who may not (yet) be proficient with systemd:

After installing "unifi."


Pacman -Q | grep 17-openjdk

If you don't have an OpenJDK Java 17 package already installed, then install ONE of the Java 17 packages: jdk17-openjdk, jre17-openjdk, OR jre17-openjdk-headless.


systemctl enable unifi.service
ls /usr/lib/jvm/java-17*/bin/java

Note the full path to the java excutable (I will refer to this path as $JAVA17EXEC below, but be sure to use the actual path listed by "ls").


sudo systemctl edit --full unifi.service

in the editor that appears, look for the [SERVICE] section and replace the ExecStart and ExecStop lines with:


ExecStart=$JAVA17EXEC --add-opens java.base/java.time=ALL-UNNAMED -jar /usr/lib/unifi/lib/ace.jar start
ExecStop=$JAVA17EXEC -jar /usr/lib/unifi/lib/ace.jar stop

Save the edited file and exit the editor.


systemctl start unifi.service
systemctl status unifi.service

If systemctl reports that "unifi" is running, then you're good to go.

Thanks to killermoehre.

Scimmia commented on 2024-07-19 12:53 (UTC) (edited on 2024-07-19 12:54 (UTC) by Scimmia)

The dependency says 'java-runtime-headless>=17'

Yeah, as far as I can see, upstream says 17 only.

killermoehre commented on 2024-07-19 12:09 (UTC)

Unifi doesn't support Java 22.

[2024-07-19 14:05:41,555] <launcher> ERROR launcher - Java 22 is not supported!

Please adjust the dependencies.

kode54 commented on 2024-06-16 00:41 (UTC) (edited on 2024-06-16 00:42 (UTC) by kode54)

I am using a fresh install of 8.2.93-1 with mongodb-bin latest version.

the_jk commented on 2024-06-15 23:40 (UTC)

I can only get unifi 8.2.93-1 to work with mongodb36 and mongodb40, anything newer than that and the service will just restart over and over forever unable to open the mongodb database.

donko3005 commented on 2024-05-24 16:37 (UTC)

The link of mongodb is not working atm. Somebody contact with the mantainer of mongodb aur package

Managor commented on 2024-02-22 14:10 (UTC) (edited on 2024-02-22 14:29 (UTC) by Managor)

Using systemctl start unifi on a fresh install results in WARN Unable to load properties from '/usr/lib/unifi/data/system.properties' - /usr/lib/unifi/data/system.properties (No such file or directory). The symlink in /usr/lib/unifi/data exists and it points into a real location in /var/lib/unifi/data which is owned by the unifi account.

killermoehre commented on 2024-01-08 12:14 (UTC) (edited on 2024-01-08 12:17 (UTC) by killermoehre)

I use an actual override.conf for the unifi.service to pin it to jre17

[Service]
ExecStart=
ExecStart=/usr/lib/jvm/java-17-openjdk/bin/java --add-opens java.base/java.time=ALL-UNNAMED -jar /usr/lib/unifi/lib/ace.jar start
ExecStop=
ExecStop=/usr/lib/jvm/java-17-openjdk/bin/java -jar /usr/lib/unifi/lib/ace.jar stop

So proper depends=(jre17-openjdk-headless) would be possible without touching the default system java version.