Package Details: mongodb 4.2.8-1

Git Clone URL: https://aur.archlinux.org/mongodb.git (read-only, click to copy)
Package Base: mongodb
Description: A high-performance, open source, schema-free document-oriented database
Upstream URL: https://www.mongodb.com/
Keywords: database document-oriented
Licenses: custom:SSPL
Submitter: felixonmars
Maintainer: jamespharvey20 (chrbayer)
Last Packager: chrbayer
Votes: 26
Popularity: 0.066732
First Submitted: 2019-01-18 22:08
Last Updated: 2020-08-20 22:41

Pinned Comments

jamespharvey20 commented on 2019-08-21 22:40

READ ME - 4.2.0 is here - The good, the bad, and the ugly

Good! 4.2.0 finally supports python3. The dependency on aur/python2-scons is no longer needed.

Bad! 4.2.0 breaks having aur/wiredtiger as a separate package, so it is no longer needed. Upstream may fix this some day, but advised for now they can't be separate. When mongodb is being built, it recognizes it's not using a separate wiredtiger package and compiles wiredtiger's source into part of mongodb, so it's still there, just not separate. This increases the space required to about 260GB. The combined amount of time it takes to build shouldn't change.

Mixed! 4.2.0 breaks most of the tests performed in check() under devtools. Previously, only 8 tests couldn't run within devtools due to systemd-nspawn banning mlock(). Now, it appears hundreds of them require mlock(). It's no longer feasible to discover and disable all of them, and maintain this list between versions, so if devtools is detected, check() does nothing. In my opinion, that's bad news, because I'd like to run the tests. Many users will probably greatly welcome this change, because most of the space and time required to build mongodb is in check().

So, users of devtools will only need 20GB available to build this, and it will complete in about 30% of the time it used to, due to check() not doing anything.

But, direct users of makepkg (including probably most AUR helpers) will now need about 260GB available just to build this.

jamespharvey20 commented on 2019-02-22 03:50

READ ME - Manual intervention potentially required upgrading to or past 4.0.6-2

If you never modified /etc/mongodb.conf, there is nothing you need to do, as pacman will install the new configuration file for you.

If pacman alerts you that a new configuration file is saved at /etc/mongodb.conf.pacnew, you must switch to it, or at least modify your existing one to enable forking.

Among other cleanups, 4.0.6-2 switches to:

  1. Upstream's systemd service file, which uses a systemd service type of forking, versus the old Arch-specific type of simple.

  2. Upstream's configuration file, which uses the YAML format introduced back in 2.6, versus the old Arch-specific configuration file using the 2.4 format.

If you had modified /etc/mongodb.conf, pacman will install the new one to /etc/mongodb.conf.pacnew. So, you will either need to: switch to the new one, and duplicate changes you made to the old one that you still need, considering the new file is now in the YAML format; or modify your existing one to enable forking. (Using the old 2.4 file format, adding fork: true should be what is needed.)

jamespharvey20 commented on 2019-02-15 09:58

READ ME - This is quite the package to build

If you use makepkg or an AUR helper you should have 260GB available just to build this. If you use devtools, you will only need 20GB available, because check() is skipped.

It takes a lot of time to build this. Using makepkg, a user reported it took 6.5 hours on an Intel i7. 32 Xeon cores with a high-end NVMe takes an hour.

How much memory you need to build this is untested, but I'd guess having a low amount of memory could cause compilation errors.

If you have compilation problems, please use makepkg, or extra-x86_64-build from devtools, as AUR helpers are not officially supported.

Alternatively, there is the mongodb-bin package, which converts the pre-compiled Ubuntu package into one for Arch. Note Ubuntu's package may use different compilation options.

Latest Comments

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

ali.molaei commented on 2021-04-03 06:27

@xamindar You can use https://aur.archlinux.org/packages/mongodb-bin/ as it's downloading from official repositories of mongodb, or use the docker as you said, if you don't want to compile from source

rpodgorny commented on 2021-04-03 06:16

xamindar: i'm using the official docker images for quite some time and it's been working perfectly for me so far...

xamindar commented on 2021-04-02 22:23

Looks like this isn't maintained anymore. Build even fails.

Where is the proper place to get mongodb as it's not even in official repositories?

rageltman commented on 2020-12-29 18:31

So it looks like libboost changes break mongo but good, and its a fun rebuild. The AUR doesn't really have a good way to deal with forcing release bumps on packages for which a dependency has updated (the py3.9 fiasco currently going on is a good testament to that - tons of builds failing in CI because py packages installed stuff to the 3.8 folder and have no clue they need to rebuild). However, suggest bumping the PKBUILD by a version (or two since anyone in our shoes has had to build a 2 release now) to prod folks' CIs into rebuilding with the current libboost from official repos (or possibly bundling it in to maintain compatibility as upstream changes).

@YoFreakinLo - just make a /chrootbuild file in your build system and it'll skip tests altogether.

YoFreakinLo commented on 2020-12-23 16:14

Hello everyone. I want to install this package from pamac (manjaro package manager, NOT pacman but pamac) and I get the error already mentioned by others: scons: building terminated because of errors. build/opt/mongo/stdx/sigaltstack_location_test.o failed: Error 1 ==> ERROR: A failure occurred in check(). Aborting... I have no intention to install it with another package manager or to build it from source myself. Someone mentioned, that only the check() function has to be skipped somehow. So what is the procedure? Should I just download this package, find something somewhere in the source files, comment it, and install the modified package with pamac?

Some more information: I'm not having the same error as the user whom @wilkie suggested to skip the check. Nothing is written about the about() function only the error message appears after a really long list of warnings about redundant std::move()-s like these: 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

Thank you for your comment help in advance. Have a nice day.

Edit1: I don't know how to put the console output to into that green box. Tried to indent with four spaces, didn't help, or at least I can't see it. Sry for that.

Edit2: I've installed the bin package too for now. I'm not sure I wanna change to this package, but I might still need it, so I'm awaiting your answer nontheless.

wilkie commented on 2020-12-07 03:01

The about() function noted by Wennadocta happens during the check() phase, so it will work if you just skip the checks.

Compiling build/opt/mongo/stdx/sigaltstack_location_test.o
In file included from src/mongo/stdx/sigaltstack_location_test.cpp:30:
src/mongo/stdx/thread.h: In member function 'void mongo::stdx::support::SigAltStackController::_install() const':
src/mongo/stdx/thread.h:81:13: error: 'abort' was not declared in this scope
   81 |             abort();
      |             ^~~~~
src/mongo/stdx/thread.h: In member function 'void mongo::stdx::support::SigAltStackController::_uninstall() const':
src/mongo/stdx/thread.h:89:13: error: 'abort' was not declared in this scope
   89 |             abort();
      |             ^~~~~
Generating library build/opt/mongo/db/repl/libbase_cloner_test_fixture.a
Skipping ranlib for thin archive build/opt/mongo/db/repl/libbase_cloner_test_fixture.a
Compiling build/opt/mongo/db/query/collation/collator_factory_icu_locales_test.o
scons: *** [build/opt/mongo/stdx/sigaltstack_location_test.o] Error 1
scons: building terminated because of errors.
build/opt/mongo/stdx/sigaltstack_location_test.o failed: Error 1
==> ERROR: A failure occurred in check().
    Aborting...

Wennadocta commented on 2020-09-11 18:46

Source code contains error. Function is not declared

In file included from src/mongo/stdx/sigaltstack_location_test.cpp:30:
src/mongo/stdx/thread.h: In member function 'void mongo::stdx::support::SigAltStackController::_install() const':
src/mongo/stdx/thread.h:81:13: error: 'abort' was not declared in this scope
   81 |             abort();
      |             ^~~~~
src/mongo/stdx/thread.h: In member function 'void mongo::stdx::support::SigAltStackController::_uninstall() const':
src/mongo/stdx/thread.h:89:13: error: 'abort' was not declared in this scope
   89 |             abort();
      |             ^~~~~

ArchBoxHero commented on 2020-08-12 05:33

@keilmillerjr hey. I ended up going with the mongodb-bin package. But I have a new install on some new hardware. I'm going to shoot for installing this package really soon. I'll post anything relevant.

bassam commented on 2020-08-10 23:57

Build failed again (I get the same error when I try to install via gui package manager):

$ makepkg -si
...
src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with T = mongo::InternalSchemaBinDataEncryptedTypeExpression]':
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]
   74 |         return std::move(expr);
      |                              ^
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: building terminated because of errors.
build/opt/mongo/stdx/sigaltstack_location_test.o failed: Error 1
==> ERROR: A failure occurred in check().
    Aborting...

keilmillerjr commented on 2020-07-16 21:36

@bug-reaper @ArchBoxHero I have the same error as well. Package required for unifi.