@scimmia: Ah, didn't realize that. Sorry! Do you know of any other way to start unifi with a specific JVM rather than hardcoding the path? From a package point of view, this is probably a bad idea as we have not only openjdk as an alternative that could be used. I found it error-prone to hope that the system-wide java version is set correctly :-/
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.58 |
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, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-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, jre-zuluAUR, jre-zulu-fxAUR, jre21-zulu-binAUR, jre17-zulu-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, java-openjdk-ea-binAUR, 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 11 .. 23 Next › Last »
torbennehmer commented on 2023-01-04 09:25 (UTC)
Scimmia commented on 2023-01-02 17:02 (UTC)
torben, ignore what the AUR page says, the dep is 'java-runtime-headless=11'
torbennehmer commented on 2023-01-02 08:12 (UTC) (edited on 2023-01-04 09:23 (UTC) by torbennehmer)
@kohlu You need to install the v11 runtime and either set it as default. If you don't like to do that (I have 3 different open-jdks installed) you can use a systemd dropin to force unifi to use the v11 runtime, just drop this file to /etc/systemd/system/unifi.service.d/jvm.conf
:
[Service]
# Clear first, Exec... is additive
ExecStart=
ExecStop=
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
@freeswa: You might want to drop pre v11 runtimes from your dependency list, if that's easily possible. Unifi is rather picky on its dependencies unforntunately. Though I'm not entirely sure which dependencies work at this time. I've been in some kind of trial-and-error in my unifi install for years now ;-)
kohlu commented on 2023-01-02 02:10 (UTC)
If anyone is seeing this error Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ubnt/ace/Launcher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
in your journal log, you will have to switch to jdk11 by running archlinux-java set java-11-openjdk
with root. Then restart the unifi
service.
azraelle commented on 2022-12-31 23:59 (UTC)
404 after upgrade
void09 commented on 2022-12-26 13:47 (UTC)
How do I get this package working ? With jre11-openjdk-headless 11.0.17.u1-1 and mongodb36-bin as suggested below, I get a 404 when accessing https://127.0.0.1:8443/ If I use the default mongodb dependency, I get a neverending compile. Also, somebody commented that mongodb<6 is required anyway?
Scimmia commented on 2022-12-08 00:07 (UTC)
--illegal-access=warn doesn't fix anything, all it does is show more warnings. Since the warnings aren't errors to begin with and everything runs fine, ignore it, it's something upstream needs to fix.
synthead commented on 2022-12-07 19:00 (UTC) (edited on 2022-12-07 19:00 (UTC) by synthead)
jre11-openjdk-headless 11.0.17.u1-1 will cause ubiquiti.service to raise this error:
systemd[1]: Started Ubiquiti UniFi Server.
java[147423]: WARNING: An illegal reflective access operation has occurred
java[147423]: WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/usr/lib/unifi/lib/tomcat-embed-core-9.0.59.jar) to field java.io.ObjectStreamCla>
java[147423]: WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
java[147423]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
java[147423]: WARNING: All illegal access operations will be denied in a future release
systemd[1]: Stopping Ubiquiti UniFi Server...
To fix this, include --illegal-access=warn in unifi.service, like this:
[Unit]
Description=Ubiquiti UniFi Server
After=network.target
[Service]
User=unifi
WorkingDirectory=/usr/lib/unifi
ExecStart=/usr/bin/java -jar --illegal-access=warn /usr/lib/unifi/lib/ace.jar start
ExecStop=/usr/bin/java -jar --illegal-access=warn /usr/lib/unifi/lib/ace.jar stop
[Install]
WantedBy=multi-user.target
You may also want to use /usr/lib/jvm/java-11-openjdk/bin/java explicitly since Unifi relies on JDK 11. See my comment here: https://aur.archlinux.org/packages/unifi#comment-891686
synthead commented on 2022-11-29 06:38 (UTC)
Since this package uses JDK 11, we can explicitly use JDK 11 like this:
[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
hikarutilmitt commented on 2022-11-28 18:53 (UTC)
Might be worth mentioning that the changelog for this release (7.3.76) bumped the Java requirement to 11, so if you had previously set your JRE default down to 8 to make it work you'll need to bump it back up to 11 now.
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