@wantinstallation The proper way to deal with multiple Java versions is using archlinux-java
. Run archlinux-java set java-8-openjdk
and it should work after that.
Search Criteria
Package Details: unifi 8.5.6-1
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.28 |
First Submitted: | 2017-08-22 01:31 (UTC) |
Last Updated: | 2024-10-13 07:11 (UTC) |
Dependencies (3)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- java-runtime-headless (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, 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, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdk-headlessAUR, jre15-openjdk-headlessAUR, jdk8-openj9-binAUR, jre-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, zulu-17-binAUR, zulu-11-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, jre-openjdk-wakefield-headlessAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, jdk21-openj9-binAUR, jreAUR, jdkAUR, zing-21-binAUR, zing-8-binAUR, jre17AUR, jdk21-jetbrains-binAUR, java-openjdk-binAUR, jre-jetbrainsAUR, jre21-zulu-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jre17-zulu-binAUR, jdk21-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk11-temurinAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk17-temurinAUR, zulu-21-binAUR, jdk-temurinAUR, jre8AUR, jdk8AUR, zulu-17-fx-binAUR, jdk8-perfAUR, java-openjdk-ea-binAUR, zulu-jre-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jdk17-openj9-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, mongodb70-binAUR, ferretdb-binAUR, mongodbAUR, mongodb-binAUR, mongodb44AUR)
Required by (0)
Sources (6)
Latest Comments
« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 12 13 14 .. 23 Next › Last »
Ketchup901 commented on 2021-07-17 21:17 (UTC)
wandinstallation commented on 2021-07-04 20:51 (UTC)
I switched from the new web UI to the old since I did not see any unifi devices in the new web UI. After having lot's of 500 and 400 errors when clicking "Settings" in the menu bar on the left I manually changed the unifi.service to this: ExecStart=/usr/lib/jvm/java-8-openjdk/bin/java -jar /usr/lib/unifi/lib/ace.jar start ExecStop=/usr/lib/jvm/java-8-openjdk/bin/java -jar /usr/lib/unifi/lib/ace.jar stop
I found the hint here: https://help.ui.com/hc/en-us/articles/204949764-UniFi-Network-Application-Fails-to-Start-When-Opened
Hope it helps other
medicineman25 commented on 2021-07-04 18:50 (UTC)
There is something deeply broken with this package. Cannot access the interface via the unit file or manuall running the commands with root. Accessing from remote machine without https cites requirements for TLS but then cannot access remotely with TLS. @torben, where are you making those system changes?
torben commented on 2021-05-19 18:22 (UTC) (edited on 2021-05-19 18:24 (UTC) by torben)
I am not sure, if this really is related, because in my case I couldn't open the web interface anymore at all. I first suspected that this was due to the latest update of Unifi, but actually it was pure coincidence:
Reason here was a deprecated TLS Version as single active source on the server. Current browsers do no longer support older TLS Versions, so I had to update my system.properties to something like this:
unifi.https.ciphers=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
unifi.https.sslEnabledProtocols=TLSv1.2
Especially the last line which switches to TLS 1.2 as protocol fixed things for me. I'm not sure if it would be sane to allow 1.1/1.0 as well. For now I don't see any problems with Unifi Devices to connect or to be managed when using 1.2.
@freswa I'm not sure, if this is a general problem or related to the fact, that my installation is several years old. If new installs still use old TLS, you might want to bundle a new system.proerties.
Eothred commented on 2021-05-19 09:49 (UTC)
This package does not work properly for me (anymore). When I start the service through systemctl, the localhost:8443 is not accessible. I tried to instead run the command manually as root, and then the service is accessible. This got me wondering if the unifi user has all necessary rights, to e.g. set up a web service? I tried to look at folder rights, but afaik that all looks fine. I further do not find any error messages anywhere.
Scimmia commented on 2020-11-20 03:45 (UTC) (edited on 2020-11-21 03:29 (UTC) by Scimmia)
Max-P,a few notes on your backup and restore instructions.
You need mongodb-tools. You have /usr/lib a few times when you mean /var/lib.
Max-P commented on 2020-11-19 21:17 (UTC) (edited on 2020-11-19 21:18 (UTC) by Max-P)
For those that have issues starting Unifi after updating MongoDB: you may need to rebuild/repair the database for it to work again. Something with the WiredTiger database backend versions. I'm currently running on mongodb-bin-4.4.1-1 with no problems and Unifi controller is working perfectly.
sudo -u unifi -g unifi mongod --repair --dbpath /var/lib/unifi/data/db
Alternatively, you can do a backup and restore on a fresh DB:
- Restore an older version of MongoDB that was previously working
- Start mongod manually:
sudo -u unifi -g unifi /usr/bin/mongod --dbpath /usr/lib/unifi/data/db --port 27117 --unixSocketPrefix /usr/lib/unifi/run --bind_ip 127.0.0.1
- Dump the database:
mongodump --port 27117 -o backup-unifi-controller
- Stop mongod (Ctrl+C in the terminal running it)
- Upgrade mongodb
- Make a backup of /usr/lib/unifi/data/db and delete its contents (make sure the folder exists and has the correct permissions)
- Start mongod again
- Restore the backup:
mongorestore --port 27117 backup-unifi-controller
- Stop mongod and start unifi normally
ZAKhan commented on 2020-11-19 12:37 (UTC) (edited on 2020-11-19 12:41 (UTC) by ZAKhan)
service start
● unifi.service - Ubiquiti UniFi Server
Loaded: loaded (/usr/lib/systemd/system/unifi.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-11-19 17:40:21 PKT; 2s ago
Main PID: 312152 (java)
Tasks: 15 (limit: 18502)
Memory: 129.3M
CGroup: /system.slice/unifi.service
└─312152 /usr/bin/java -jar /usr/lib/unifi/lib/ace.jar start
Nov 19 17:40:21 T460 systemd[1]: Started Ubiquiti UniFi Server.
Nov 19 17:40:21 T460 java[312152]: 2020-11-19 17:40:21,925 main ERROR Error processing element InMemoryAppender ([Appenders: null]): CLASS_NOT_FOUND
Nov 19 17:40:22 T460 java[312152]: 2020-11-19 17:40:22,258 main ERROR Unable to locate appender "InMemoryAppender" for logger config "root"
➜ ~
but stops after 5 seconds.
unifi.service - Ubiquiti UniFi Server
Loaded: loaded (/usr/lib/systemd/system/unifi.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-11-19 17:35:27 PKT; 12ms ago
Process: 308425 ExecStart=/usr/bin/java -jar /usr/lib/unifi/lib/ace.jar start (code=exited, status=255/EXCEPTION)
Main PID: 308425 (code=exited, status=255/EXCEPTION)
Nov 19 17:35:17 T460 systemd[1]: Started Ubiquiti UniFi Server.
Nov 19 17:35:17 T460 java[308425]: 2020-11-19 17:35:17,855 main ERROR Error processing element InMemoryAppender ([Appenders: null]): CLASS_NOT_FOUND
Nov 19 17:35:18 T460 java[308425]: 2020-11-19 17:35:18,188 main ERROR Unable to locate appender "InMemoryAppender" for logger config "root"
Nov 19 17:35:27 T460 java[308425]: Port 8080 not available
Nov 19 17:35:27 T460 systemd[1]: unifi.service: Main process exited, code=exited, status=255/EXCEPTION
Nov 19 17:35:27 T460 systemd[1]: unifi.service: Failed with result 'exit-code'.
~
Scimmia commented on 2020-11-18 21:11 (UTC)
eagebhart, if you actually read the output you posted, you'd see that it has nothing to do with this package.
eagebhart commented on 2020-11-18 18:45 (UTC)
This is not building for me. I've done an pacman -Syu, and updated my keys. pacman-key --refresh errors with a General error, could not be retrieved on the same key.
Here is the snippet of the error. I have not tried working around it yet.
:: (1/3) Parsing SRCINFO: libcurl-openssl-1.0 :: (2/3) Parsing SRCINFO: mongodb-bin :: (3/3) Parsing SRCINFO: unifi-beta
:: PGP keys need importing: -> 27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2, required by: libcurl-openssl-1.0 ==> Import? [Y/n] :: Importing keys with gpg... gpg: keyserver receive failed: General error problem importing keys
Or this:
sudo pacman-key --refresh-keys ──#(Wed,Nov18)─┘ gpg: refreshing 121 keys from hkps://hkps.pool.sks-keyservers.net gpg: keyserver refresh failed: General error ==> ERROR: A specified local key could not be updated from a keyserver.
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