Package Details: unifi 6.0.43-1

Git Clone URL: (read-only, click to copy)
Package Base: unifi
Description: Centralized management system for Ubiquiti UniFi AP
Upstream URL:
Licenses: custom
Conflicts: tomcat-native
Submitter: seblu
Maintainer: freswa
Last Packager: freswa
Votes: 56
Popularity: 1.57
First Submitted: 2017-08-22 01:31
Last Updated: 2020-12-30 01:35

Dependencies (3)

Required by (0)

Sources (6)

Pinned Comments

freswa commented on 2019-10-30 11:50

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:

Latest Comments

1 2 3 4 5 6 ... Next › Last »

Scimmia commented on 2020-11-20 03:45

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

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:

  1. Restore an older version of MongoDB that was previously working
  2. 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
  3. Dump the database: mongodump --port 27117 -o backup-unifi-controller
  4. Stop mongod (Ctrl+C in the terminal running it)
  5. Upgrade mongodb
  6. Make a backup of /usr/lib/unifi/data/db and delete its contents (make sure the folder exists and has the correct permissions)
  7. Start mongod again
  8. Restore the backup: mongorestore --port 27117 backup-unifi-controller
  9. Stop mongod and start unifi normally

ZAKhan commented on 2020-11-19 12:37

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

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

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:// gpg: keyserver refresh failed: General error ==> ERROR: A specified local key could not be updated from a keyserver.

Scimmia commented on 2020-11-17 23:02

squatched, mongodb-bin provides mongodb, so the dep already works with both.

squatched commented on 2020-11-17 20:00

ZAKhan, it should be available on https://localhost:8443

If you're getting "Unable to connect" and the unifi.service systemd unit is running, perhaps you have something like iptables blocking access on the lo interface?

squatched commented on 2020-11-17 19:53

Any chance you would be willing change the mongodb dependency to mongodb-bin? Just did a test-run and it all appears to be working just fine and not having to build MongoDB from source is such a MASSIVE boost to install/build times on my little laptop that I run the Unifi controller from... It's certainly not optimized to be a fast compiler but it's great as a Unifi controller.

ZAKhan commented on 2020-11-01 01:14

Anyone ????????

ZAKhan commented on 2020-10-22 15:36

Same issue as before .. service is running but web page does not open


"Unable to connect"