Package Details: mongodb 4.2.8-1

Git Clone URL: (read-only, click to copy)
Package Base: mongodb
Description: A high-performance, open source, schema-free document-oriented database
Upstream URL:
Keywords: database document-oriented
Licenses: custom:SSPL
Submitter: felixonmars
Maintainer: jamespharvey20 (chrbayer)
Last Packager: chrbayer
Votes: 26
Popularity: 0.000413
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

« First ‹ Previous ... 2 3 4 5 6 7 8 Next › Last »

ali.molaei commented on 2019-01-28 09:09

Hi there, since we have all problems with compiling the MongoDB, I created a bin package for it, it is got from the MongoDB itself directly

Use it happily :D

navarroaxel commented on 2019-01-26 22:11

@Leslie, maybe you run out of space of disk (33% is 150GB available) The compilation took me 395 minutes (via time) and 180GB on disk on Intel i7. The best way for install it now is download both packages from the archlinux archive and use the pacman -U <package> command:

Leslie commented on 2019-01-26 13:45

Any idea why I'm getting out of space while compiling while I am totally sure to have enough space? my drive is only 33% full with 256GB max cap

navarroaxel commented on 2019-01-25 13:05

Well, if you need the package you can download it from: and

This is so frustrating...

Ten0 commented on 2019-01-25 11:25

MongoDB, Inc. buys mLab, database as-a-service provider, then changes the license in order to have a monopoly on database-as-a-service, and now I can't even have mongo on my own computer because I don't have enough space on my hard drive to even compile it, so I would have to buy database-as-a-service from mLab.

They don't deserve the binary package to be off of the arch repositories.

gobyrne commented on 2019-01-24 20:44

@vegarab, review the commetn from @ismet ~160gb required for compiling. Crazy.

vegarab commented on 2019-01-24 15:53

87GB free on disk. 16 hours of compiling and it ends due to no free space (used all 87GB).

navarroaxel commented on 2019-01-24 11:20

Hi. Can we replace the build from source by using the binaries from the TGZ packages from (or TGZ for debian/ubuntu) and re-package it into a tar.xz? Else using .deb vendor version.

yangtsesu commented on 2019-01-23 00:56


ismet commented on 2019-01-19 12:42

You need to have at least ~160GB free disk space and several hours to compile source code.
What a burden!