You just need to comment out
rm -r "${pkgdir}/usr/lib/unifi/lib/native"
Or edit it to remove whichever packages are not compiled for your architecture.
Not sure why these are deleted in this PKGBUILD by default.
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: | 68 |
Popularity: | 0.072624 |
First Submitted: | 2017-08-22 01:31 (UTC) |
Last Updated: | 2024-06-03 12:46 (UTC) |
« First ‹ Previous 1 .. 12 13 14 15 16 17 18 19 20 21 22 Next › Last »
You just need to comment out
rm -r "${pkgdir}/usr/lib/unifi/lib/native"
Or edit it to remove whichever packages are not compiled for your architecture.
Not sure why these are deleted in this PKGBUILD by default.
Thanks for pointing this out, daredevil. I was able to enable Cloud Access by fetching the source archive and extracting that file into the installation directory. Maybe the PKGBUILD can be modified to include native libraries?
For everyone who wants to use cloud access. It's not working because of missing java libary libubnt_webrtc_jni.so after installation.
For anyone interested in running this on aarch64, you need to replace the snappy-java-1.1.4.jar file in /usr/lib/unifi/lib with one that you've built for aarch64 yourself: https://github.com/xerial/snappy-java
I was only able to build this using the oracle jdk (jdk-arm on AUR), not using openjdk.
any one who had idea let unifi only work on localhost, listening a http port, and use nginx proxy to it?
Fixed it (see my problem below). After a lot of debugging, it turns out that if you request a HTTPS connection on an HTTP port, most servers will send you a HTTP response which most clients including openssl will choke on, giving you a very unhelpful error message. See for example https://archlinux.org:80
This is what I was doing (https://localhost:8080) over and over again. The SSL port that Unifi uses is 8443. Hopefully this helps someone else.
There's another bug with this package which is that even though the dependencies only install jre8 the systemd unit file just runs with the default jre. It should probably be modified, if possible, to pick up the user's jre8 java binary.
You're welcome. Fixed.
This already works with jre8, but thanks for making me install another version of the Java runtime that I won't be using.
I can't get this to work at all, on jre8 or jre9. Trying to connect gives me an SSL error:
SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:252:
Anyone have an idea how to solve this?
This does not work with jre9 anymore because of the missing java ee classes. This it what its look like: java.lang.NoClassDefFoundError: javax/activation/DataSource
I fixed this by adding --add-modules java.se.ee to the command line. See: https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j
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