Package Details: unifi 8.6.9-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: 68
Popularity: 0.177935
First Submitted: 2017-08-22 01:31 (UTC)
Last Updated: 2024-11-07 20:46 (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 .. 10 11 12 13 14 15 16 17 18 19 20 .. 23 Next › Last »

gmask commented on 2019-03-09 14:49 (UTC)

What should the correct permissions be? Upon reinstallation I get the same 640 root:root for /usr/lib/unifi/lib and 740 root:root for mongodb-bin...

puithove commented on 2019-03-08 22:22 (UTC)

Was having the same (Connection refused) error below.

Found bad permissions all over the place apparently from installs of previous package versions. Everything in /usr/lib/unifi/lib was 640 and owned by root:root so unifi user could not access. Completely uninstalled unifi package and re-installed to fix.

Also bad perms on /usr/bin/mongo* which I think was 740 and owned by root:root so again unifi user couldn't run mongodb. Uninstalled package completely and re-installed with mongodb-bin.

Now back up and running.

gmask commented on 2019-03-01 22:01 (UTC)

Getting the same error:

org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused (Connection refused)

There is no upgrade problem in my mongod.log. Any ideas?

Rob_H commented on 2019-02-28 20:46 (UTC)

@sulaweyo mongodb-bin "provides" mongodb. So if you install mongodb-bin explicitly, unifi will use it.

sulaweyo commented on 2019-02-28 19:47 (UTC)

As compiling mongodb takes a pretty long time it would be cool if the dependencie could be switched to mongodb-bin. Would save me the edit in the PKGBUILD each time

Rob_H commented on 2019-02-24 22:51 (UTC)

Getting the following error at startup?:

org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused (Connection refused)

If so, check your /var/log/unifi/mongod.log for a line like this:

IMPORTANT: UPGRADE PROBLEM: The data files need to be fully upgraded to version 3.6 before attempting an upgrade to 4.0; see http://dochub.mongodb.org/core/4.0-upgrade-fcv for more details.

Basically, that page instructs you to downgrade to MongoDB 3.6 and run a command in the console to bring the database version to 3.6. Once the database is in that state, you can restart Unifi with the newer MongoDB version and it should work. Fortunately, you don't need to uninstall the MongoDB package to do this, you can just run 3.6 from a temporary directory. Here's a summary of the steps I took, which fixed the problem for me:

  1. Stop Unifi.

  2. Download latest MongoDB 3.6 tarball ("legacy" Linux 64-bit version) from https://www.mongodb.com.

  3. Extract to a local directory.

  4. From the extracted directory, run: sudo -u unifi ./mongod --dbpath /usr/lib/unifi/data/db --port 27117 --unixSocketPrefix /usr/lib/unifi/run --logappend --logpath /usr/lib/unifi/logs/mongod.log --bind_ip 127.0.0.1

  5. From another terminal, run: mongo --shell --port 27117

  6. In the Mongo shell, run: db.adminCommand({setFeatureCompatibilityVersion: "3.6"})

  7. Exit the Mongo shell.

  8. CTRL-C to exit mongod gracefully. The Unifi database should be "upgraded" to 3.6 at this point.

  9. Restart Unifi. It should now upgrade the database automatically to 4.0.

Log in and enjoy!

Archanfel80HUN commented on 2019-02-19 13:57 (UTC)

Got this even if its a fresh install:

AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'autoOptimizer' defined in com.ubnt.service.AppContext: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ubnt.service.I.B]: Factory method 'autoOptimizer' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceManager' defined in com.ubnt.service.AppContext: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ubnt.service.oOOO.D]: Factory method 'deviceManager' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventManager' defined in com.ubnt.service.AppContext: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ubnt.service.private.OoOO]: Factory method 'eventManager' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/activation/DataSource [14:55:57,232] <db-server> INFO db - DbServer stopped

brando56894 commented on 2019-02-18 00:09 (UTC) (edited on 2019-02-18 00:10 (UTC) by brando56894)

I keep getting these errors when starting the JAR

Feb 17, 2019 7:08:06 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry

INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused (Connection refused)

k0ste commented on 2019-02-14 01:49 (UTC)

5.9.29 -> 5.10.12 was upgraded flawless for me.

kerndtr commented on 2019-02-14 01:48 (UTC)

unifi 5.10.12 has been pulled from ubnt downloads and they have in the last few days put out two upgrades 5.10.15 and 5.10.17. I suggest sticking with 5.9.29 until the 5.10.x stable release stabilizes.