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 .. 3 4 5 6 7 8 9 10 11 12 13 .. 23 Next › Last »

azmeuk commented on 2022-05-28 10:29 (UTC) (edited on 2022-05-28 10:30 (UTC) by azmeuk)

The web interface is frozen with the message: Database migration in progress..., /var/log/unifi/mongod.log have error messages:

{
  "t": {
    "$date": "2022-05-28T12:26:04.979+02:00"
  },
  "s": "F",
  "c": "CONTROL",
  "id": 20573,
  "ctx": "initandlisten",
  "msg": "Wrong mongod version",
  "attr": {
    "error": "UPGRADE PROBLEM: Found an invalid featureCompatibilityVersion document (ERROR: Location4926900: Invalid featureCompatibilityVersion document in admin.system.version: { _id: \"featureCompatibilityVersion\", version: \"4.2\" }. See https://docs.mongodb.com/master/release-notes/4.4-compatibility/#feature-compatibility. :: caused by :: Invalid value for featureCompatibilityVersiondocument in admin.system.version, found 4.2, expected '4.4' or '4.9' or '5.0. See https://docs.mongodb.com/master/release-notes/4.4-compatibility/#feature-compatibility.). If the current featureCompatibilityVersion is below 4.4, see the documentation on upgrading at https://docs.mongodb.com/master/release-notes/4.4/#upgrade-procedures."
  }
}

freswa commented on 2022-01-24 19:54 (UTC)

We don't remove required dependencies. Just use another package which provides mongodb instead.

hillbicks commented on 2022-01-24 18:17 (UTC)

Can you take out the mongodb dependency please? The source mongodb package is the default mongodb dependency and is flagged out of date since 2020 and it doesn't even build. Thanks!

nazgul77 commented on 2021-12-08 20:45 (UTC) (edited on 2021-12-08 20:48 (UTC) by nazgul77)

Build of mongo fails. This is e.g. https://bugs.gentoo.org/768339 which has been fixed months ago

    src/mongo/db/exec/plan_stats.h:214:10: error: 'optional' in namespace 'std' does not name a template type
  214 |     std::optional<std::string> replanReason;
   |          ^~~~~~~~
  src/mongo/db/exec/plan_stats.h:41:1: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?

 40 | #include "mongo/util/container_size_helper.h"

  +++ |+#include <optional>

 41  | #include "mongo/util/time_support.h"

ZimbiX commented on 2021-10-09 11:41 (UTC)

@torben Thanks so much for the fix! https://localhost:8443 was inexplicably refusing connections, but adding

unifi.https.sslEnabledProtocols=TLSv1.2

to /usr/lib/unifi/data/system.properties got it working.

I reckon this should be done in the PKGBUILD, or at least suggested by it.

Additionally, as noted on later pages of comments, first installing mongodb-bin avoids many hours of compilation time for the mongodb package.

Strykar commented on 2021-09-08 22:29 (UTC)

Build fails with:

src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call
src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]':
src/mongo/db/matcher/expression_type.h:69:38:   required from here
src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move]
src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call
src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with T = mongo::TypeMatchExpression]':
src/mongo/db/matcher/expression_type.h:69:38:   required from here
src/mongo/db/matcher/expression_type.h:74:30: warning: redundant move in return statement [-Wredundant-move]
src/mongo/db/matcher/expression_type.h:74:30: note: remove 'std::move' call
scons: *** [build/opt/mongo/db/commands/touch.o] Error 1
scons: building terminated because of errors.
build/opt/mongo/db/exec/stagedebug_cmd.o failed: Error 1
build/opt/mongo/db/commands/touch.o failed: Error 1
==> ERROR: A failure occurred in build().
    Aborting...

torben commented on 2021-08-24 14:17 (UTC)

@code_xpert: I had the same problem a while ago IIRC. The problem was related to the database configuration being invalid. I can't remember it precicley, but in essence I had two config files for the wired tiger/mongod engine present, an old and a new one, where the package got confused during upgrade. Look in the config directory if there is everything ok there or if anything is supscious. I can't find any remnants of this anymore, but it was somewhere in /var/lib/unifi/data (maybe subdir "db"). I think, back than I did reactivate the old configuration somehow and the system went running again. Right now, my mongod db directory does not contain much configuration anymore, seems, that the current systemd scripts work primarily by command line arguments.

code_xpert commented on 2021-08-22 18:40 (UTC)

@torben I tried your fix because I had the same problem, and it worked! Thank you!

@medicineman25 he made the changes at "/usr/lib/unifi/data/system.properties".

I have a problem too. When I go to localhost:8443, it says "Unifi Controller is starting up..." for a brief second, then it says "Database Migration in progress..." forever. Has anyone experienced this problem too? How could I possibly fix this?

Thanks.

kode54 commented on 2021-08-01 10:10 (UTC)

Installed mongodb-bin 5.0.1-2. mongod crashes within seconds of restarting unifi.service with an out of memory error. Machine has 8GB of RAM and 8GB of swap.