Package Details: mongodb 4.2.1-1

Git Clone URL: https://aur.archlinux.org/mongodb.git (read-only)
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: jamespharvey20
Votes: 18
Popularity: 0.318437
First Submitted: 2019-01-18 22:08
Last Updated: 2019-10-22 03:30

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 Next › Last »

jamespharvey20 commented on 2019-10-16 01:53

lsr, I opened a bugreport upstream at https://jira.mongodb.org/browse/SERVER-44038

I'm baffled at what I found. Removing the line that forces ggdb that you brought up reduces my makepkg (so, tests are still ran) build size from 259GB to 2.3GB, and reduces the build from 70 minutes to 44 minutes. For users with platter drives, I think it will have an even more dramatic reduction in build times.

I tried several ways to get -O2 optimization, with no success.

I'm wondering if there's an intentional reason why they're doing this on posix, so am being cautious and waiting to hear back from upstream before I release a new version. I mean, I'd have to assume they would have noticed at some point in the past performance significantly dropped and have found they were forcing debug builds and no optimization, right?..... The stripped binary size doesn't change, but maybe there's some quirk here we're not aware of.

jamespharvey20 commented on 2019-10-14 10:40

lsr, awesome catch. I'm baffled by this, and can't wait to see how much faster mongodb performs. I know version 4.0.6 (when mongodb was dropped from community) had a similar build time and size requirement. It will be interesting to know how/when/why this came about. I'll admit I never looked through the SConstruct file other than having to do with system library options, and just went off upstream's compilation instructions which of course don't mention this. I'll be running compilation size and time benchmarks as is, without the forcing of -ggdb you pointed out, and also without -ggdb and the release option for optimization. I'll be posting back here, and likely be filing a bugreport upstream. I'm hoping fixing this and using optimizations won't drastically increase compilation times, but my guess is it will, we'll see...

lsr commented on 2019-10-14 08:49

The SConstruct file seems to always enable debug symbol generation: "-ggdb" if not env.TargetOSIs('emscripten') else "-g",

Removing this line seems to reduce the build tree to a less insane 10GiB.

jamespharvey20 commented on 2019-10-13 03:34

mrohnstock, thanks for the report. Sorry I was out of town for quite a few days. Appears yaml-cpp made a bug fix regarding precision which causes its precision behavior to change. I've reported upstream to mongodb at https://jira.mongodb.org/browse/SERVER-43980. Links there are to the yaml-cpp change.

I haven't directly used yaml-cpp, and don't know if mongodb can make a change specifying precision which would be compatible with not only yaml-cpp 0.6.3 but also older versions. Even if they can, I don't know how extensive the fix would be and how long it would take them.

I've pushed 4.2.0-3 which drops using yaml-cpp as a system library, and pulls in the specific commit that mongodb's source tree has for it. This will have a minuscule impact on mongodb build time and package size.

I compiled through makepkg instead of devtools so all tests would run, and verified it compiles without error again.

mrohnstock commented on 2019-10-02 05:20

Hi jamespharvey20,

as yaml-cpp got updated two days ago a rebuild of mongodb is required, as at least one symbol is missing afterwards:

/usr/bin/mongod: symbol lookup error: /usr/bin/mongod: undefined symbol: _ZN4YAML6detail9node_data12empty_scalarB5cxx11E

After again about 18h of compiling a new error appear...

[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:52.461+0200 2019-10-01T22:24:52.460+0200 I  -        [main] Testing URI: mongodb://alice/bob:foo@localhost/db
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:52.461+0200 2019-10-01T22:24:52.460+0200 I  -        [main] Testing URI: mongodb://alice:foo/bar@localhost/db
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:52.461+0200 2019-10-01T22:24:52.460+0200 I  -        [main] Testing URI: mongodb:///tmp/mongodb-27017.sock/
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:52.462+0200 2019-10-01T22:24:52.460+0200 I  -        [main]      going to run test: srvRecordTest
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.562+0200 2019-10-01T22:24:53.562+0200 E  -        [main] Throwing exception: Expected: !(rs.getStatus().isOK()) Failing URI: mongodb+srv://test6.test.build.10gen.cc/database data on line: 904 @src/mongo/client/mongo_uri_test.cpp:993
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.563+0200 2019-10-01T22:24:53.563+0200 I  -        [main] FAIL: srvRecordTest Expected: !(rs.getStatus().isOK()) Failing URI: mongodb+srv://test6.test.build.10gen.cc/database data on line: 904 @src/mongo/client/mongo_uri_test.cpp:993 in test srvRecordTest
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.563+0200  0x562bb7e4cfaa 0x562bb796cbb3 0x562bb796ce3d 0x562bb795893b 0x562bb796b6d4 0x562bb794d28b 0x562bb796d465 0x562bb796e9d9 0x562bb7933e9e 0x7f062c77fee3 0x562bb794cade
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.563+0200 ----- BEGIN BACKTRACE -----
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.564+0200 {"backtrace":[{"b":"562BB7627000","o":"825FAA","s":"_ZN5mongo15printStackTraceERSo"},{"b":"562BB7627000","o":"345BB3","s":"_ZN5mongo8unittest29TestAssertionFailureExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjS9_"},{"b":"562BB7627000","o":"345E3D","s":"_ZN5mongo8unittest20TestAssertionFailureC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjS9_"},{"b":"562BB7627000","o":"33193B"},{"b":"562BB7627000","o":"3446D4","s":"_ZN5mongo8unittest4Test3runEv"},{"b":"562BB7627000","o":"32628B"},{"b":"562BB7627000","o":"346465","s":"_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi"},{"b":"562BB7627000","o":"3479D9","s":"_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_i"},{"b":"562BB7627000","o":"30CE9E","s":"main"},{"b":"7F062C759000","o":"26EE3","s":"__libc_start_main"},{"b":"562BB7627000","o":"325ADE","s":"_start"}],"processInfo":{ "mongodbVersion" : "unknown", "gitVersion" : "none", "compiledModules" : [ "unknown" ], "uname" : { "sysname" : "Linux", "release" : "4.19.75-1-lts", "version" : "#1 SMP Sun Sep 22 21:23:17 CEST 2019", "machine" : "x86_64" }, "somap" : [ { "b" : "562BB7627000", "elfType" : 3, "buildId" : "DB1377A31898859D08A246D98797CAB108B0F0F9" }, { "b" : "7FFEE5BC7000", "path" : "linux-vdso.so.1", "elfType" : 3, "buildId" : "AEABF491BD6677034AEA65F3B7C4C518E3982F49" }, { "b" : "7F062D720000", "path" : "/usr/lib/libz.so.1", "elfType" : 3, "buildId" : "5BBDB8B0958891549BB245BEAB9A1B248D97199A" }, { "b" : "7F062D518000", "path" : "/usr/lib/libsnappy.so.1", "elfType" : 3, "buildId" : "4945D214906C5C184B044DF00ED23A3A4DC08166" }, { "b" : "7F062D4F9000", "path" : "/usr/lib/libsasl2.so.3", "elfType" : 3, "buildId" : "5EB2BB3E230AE8C8041137E699B28B8897470F6D" }, { "b" : "7F062D495000", "path" : "/usr/lib/libyaml-cpp.so.0.6", "elfType" : 3, "buildId" : "9CE8599B80C376E11594893F64DB930275BD2406" }, { "b" : "7F062D409000", "path" : "/usr/lib/libcurl.so.4", "elfType" : 3, "buildId" : "603163860880AF19A20B2D0662922E089DB0E447" }, { "b" : "7F062D013000", "path" : "/usr/lib/libtcmalloc.so.4", "elfType" : 3, "buildId" : "9D9D6DF03F9FA0FAB29B51CF9D541CC76FA94634" }, { "b" : "7F062CFF8000", "path" : "/usr/lib/libresolv.so.2", "elfType" : 3, "buildId" : "E4B2B917453A734D025066EABEDF96599E2D7224" }, { "b" : "7F062CD27000", "path" : "/usr/lib/libcrypto.so.1.1", "elfType" : 3, "buildId" : "9E2DE4455F506C6976993CC445022092BE0B54A8" }, { "b" : "7F062CC97000", "path" : "/usr/lib/libssl.so.1.1", "elfType" : 3, "buildId" : "F0FD93B30114A7CD44FDB6DD1F6D471D2AE90AED" }, { "b" : "7F062CC92000", "path" : "/usr/lib/libdl.so.2", "elfType" : 3, "buildId" : "DFB8370A4FD752F3F5CBE807A3528F18F61D176F" }, { "b" : "7F062CC87000", "path" : "/usr/lib/librt.so.1", "elfType" : 3, "buildId" : "7673B31E17C41CA27FBD88CB985081E9627BC9B2" }, { "b" : "7F062CA9F000", "path" : "/usr/lib/libstdc++.so.6", "elfType" : 3, "buildId" : "EB501D9FF20E37200F3A4E0BC0ED14634E0EC543" }, { "b" : "7F062C957000", "path" : "/usr/lib/libm.so.6", "elfType" : 3, "buildId" : "0F856154AA17D9A576B823BDAF8630D5E4C94EAC" }, { "b" : "7F062C93D000", "path" : "/usr/lib/libgcc_s.so.1", "elfType" : 3, "buildId" : "6E78D7299B06E83AD19D1FF69EEDB749B17368FB" }, { "b" : "7F062C91C000", "path" : "/usr/lib/libpthread.so.0", "elfType" : 3, "buildId" : "9267B03C3D16CEAEBCBCD4D81D7374B2BF8EF1F3" }, { "b" : "7F062C759000", "path" : "/usr/lib/libc.so.6", "elfType" : 3, "buildId" : "A8AF6C81CB28A37BF3A546970BF64224402F8BD4" }, { "b" : "7F062C731000", "path" : "/usr/lib/libnghttp2.so.14", "elfType" : 3, "buildId" : "4219E1F134469A4C8AC0B1849B759F924CDE4A34" }, { "b" : "7F062C712000", "path" : "/usr/lib/libidn2.so.0", "elfType" : 3, "buildId" : "BE83B30E7B61A215BF00B1B9207663679E133EFD" }, { "b" : "7F062C6D0000", "path" : "/usr/lib/libssh2.so.1", "elfType" : 3, "buildId" : "E3D2D2457F198CC759D49550108E70CCFD9E8CDB" }, { "b" : "7F062C6BD000", "path" : "/usr/lib/libpsl.so.5", "elfType" : 3, "buildId" : "CE00C357D7769AFEF846A12E3CFDE915CDC50902" }, { "b" : "7F062C66D000", "path" : "/usr/lib/libgssapi_krb5.so.2", "elfType" : 3, "buildId" : "57DD8442F60D25BA9BAA4E4304F788200F2E6F42" }, { "b" : "7F062C57F000", "path" : "/usr/lib/libkrb5.so.3", "elfType" : 3, "buildId" : "21930CA0C85798ACCDB009D840FAF1FA887409EA" }, { "b" : "7F062C54A000", "path" : "/usr/lib/libk5crypto.so.3", "elfType" : 3, "buildId" : "60CF7C2EC1987ACADEAC7B2C977DB5261F6C4BF7" }, { "b" : "7F062C544000", "path" : "/usr/lib/libcom_err.so.2", "elfType" : 3, "buildId" : "DCF3AFF7E1262A8DE73F6C071AD5452E8C6F0531" }, { "b" : "7F062D986000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "5F661EE590E1776147FE7FF025E0BD922E7DAE70" }, { "b" : "7F062C1C2000", "path" : "/usr/lib/libunistring.so.2", "elfType" : 3, "buildId" : "B06A573A55F6005E92418F30945B13581F9BC848" }, { "b" : "7F062C1B2000", "path" : "/usr/lib/libkrb5support.so.0", "elfType" : 3, "buildId" : "5A6E77E8A946A471F9E42EDDB168F77D263172F5" }, { "b" : "7F062C1AB000", "path" : "/usr/lib/libkeyutils.so.1", "elfType" : 3, "buildId" : "CC70288F3B3DED400229586626D232405AE3DB6B" }, { "b" : "7F062D976000", "path" : "/usr/lib/sasl2/libdigestmd5.so", "elfType" : 3, "buildId" : "D1097B4F447ADD8E071599D82DFD003221319377" }, { "b" : "7F062D96D000", "path" : "/usr/lib/sasl2/libsasldb.so", "elfType" : 3, "buildId" : "8C87CDC6673301F0482F2818A9537131A8BD3CDA" }, { "b" : "7F062D95D000", "path" : "/usr/lib/libgdbm.so.6", "elfType" : 3, "buildId" : "3CED12D97BB484AED60E80FD799642F89FA94FDF" }, { "b" : "7F062D952000", "path" : "/usr/lib/sasl2/libntlm.so", "elfType" : 3, "buildId" : "37E8B14505CD5BC907D60D628BF3861322A93710" }, { "b" : "7F062D94C000", "path" : "/usr/lib/sasl2/liblogin.so", "elfType" : 3, "buildId" : "1D611C3A477B6101DE8248908EA44A6C4D3B18AC" }, { "b" : "7F062D946000", "path" : "/usr/lib/sasl2/libkdexoauth2.so", "elfType" : 3, "buildId" : "EEA6A77BBA7BA2B15D05EA337D0B0A8FC1890E60" }, { "b" : "7F062D940000", "path" : "/usr/lib/sasl2/libanonymous.so", "elfType" : 3, "buildId" : "45E7CD56D9BB3442549518DC9BA28F80321AE38E" }, { "b" : "7F062D939000", "path" : "/usr/lib/sasl2/libcrammd5.so", "elfType" : 3, "buildId" : "D457203C4F5AD64ED76AE93C2998524D7D26BFAA" }, { "b" : "7F062C19C000", "path" : "/usr/lib/sasl2/libplain.so", "elfType" : 3, "buildId" : "085FFBA1386E4D23DD6CF33D8171886663CF9241" }, { "b" : "7F062C190000", "path" : "/usr/lib/sasl2/libscram.so", "elfType" : 3, "buildId" : "90705ADB02DEDB6A21BD41B58630E6CF42842E4C" } ] }}
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.564+0200  mongo_uri_test(_ZN5mongo15printStackTraceERSo+0x3A) [0x562bb7e4cfaa]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.564+0200  mongo_uri_test(_ZN5mongo8unittest29TestAssertionFailureExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjS9_+0x1F3) [0x562bb796cbb3]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.564+0200  mongo_uri_test(_ZN5mongo8unittest20TestAssertionFailureC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjS9_+0x2D) [0x562bb796ce3d]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.565+0200  mongo_uri_test(+0x33193B) [0x562bb795893b]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.565+0200  mongo_uri_test(_ZN5mongo8unittest4Test3runEv+0x24) [0x562bb796b6d4]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.565+0200  mongo_uri_test(+0x32628B) [0x562bb794d28b]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.565+0200  mongo_uri_test(_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi+0x4B5) [0x562bb796d465]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.565+0200  mongo_uri_test(_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_i+0x5E9) [0x562bb796e9d9]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.566+0200  mongo_uri_test(main+0x85E) [0x562bb7933e9e]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.566+0200  libc.so.6(__libc_start_main+0xF3) [0x7f062c77fee3]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.566+0200  mongo_uri_test(_start+0x2E) [0x562bb794cade]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.566+0200 -----  END BACKTRACE  -----
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.567+0200 2019-10-01T22:24:53.563+0200 I  -        [main]      going to run test: Redact
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.567+0200 2019-10-01T22:24:53.563+0200 I  -        [main]      DONE running tests
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.567+0200 2019-10-01T22:24:53.563+0200 I  -        [main] going to run suite: ServiceContextTest
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.567+0200 2019-10-01T22:24:53.563+0200 I  -        [main]      going to run test: ValidButBadURIsFailToConnect
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200 2019-10-01T22:24:53.593+0200 I  -        [main]      DONE running tests
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200 2019-10-01T22:24:53.593+0200 I  -        [main] **************************************************
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200 2019-10-01T22:24:53.593+0200 I  -        [main] MongoURI                                 | tests:    6 | fails:    1 | assert calls:          0 | time secs:  1.175
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200     srvRecordTest   Expected: !(rs.getStatus().isOK()) Failing URI: mongodb+srv://test6.test.build.10gen.cc/database data on line: 904 @src/mongo/client/mongo_uri_test.cpp:993 in test srvRecordTest
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  0x562bb7e4cfaa 0x562bb796cbb3 0x562bb796ce3d 0x562bb795893b 0x562bb796b6d4 0x562bb794d28b 0x562bb796d465 0x562bb796e9d9 0x562bb7933e9e 0x7f062c77fee3 0x562bb794cade
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200 ----- BEGIN BACKTRACE -----
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200 {"backtrace":[{"b":"562BB7627000","o":"825FAA","s":"_ZN5mongo15printStackTraceERSo"},{"b":"562BB7627000","o":"345BB3","s":"_ZN5mongo8unittest29TestAssertionFailureExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjS9_"},{"b":"562BB7627000","o":"345E3D","s":"_ZN5mongo8unittest20TestAssertionFailureC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjS9_"},{"b":"562BB7627000","o":"33193B"},{"b":"562BB7627000","o":"3446D4","s":"_ZN5mongo8unittest4Test3runEv"},{"b":"562BB7627000","o":"32628B"},{"b":"562BB7627000","o":"346465","s":"_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi"},{"b":"562BB7627000","o":"3479D9","s":"_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_i"},{"b":"562BB7627000","o":"30CE9E","s":"main"},{"b":"7F062C759000","o":"26EE3","s":"__libc_start_main"},{"b":"562BB7627000","o":"325ADE","s":"_start"}],"processInfo":{ "mongodbVersion" : "unknown", "gitVersion" : "none", "compiledModules" : [ "unknown" ], "uname" : { "sysname" : "Linux", "release" : "4.19.75-1-lts", "version" : "#1 SMP Sun Sep 22 21:23:17 CEST 2019", "machine" : "x86_64" }, "somap" : [ { "b" : "562BB7627000", "elfType" : 3, "buildId" : "DB1377A31898859D08A246D98797CAB108B0F0F9" }, { "b" : "7FFEE5BC7000", "path" : "linux-vdso.so.1", "elfType" : 3, "buildId" : "AEABF491BD6677034AEA65F3B7C4C518E3982F49" }, { "b" : "7F062D720000", "path" : "/usr/lib/libz.so.1", "elfType" : 3, "buildId" : "5BBDB8B0958891549BB245BEAB9A1B248D97199A" }, { "b" : "7F062D518000", "path" : "/usr/lib/libsnappy.so.1", "elfType" : 3, "buildId" : "4945D214906C5C184B044DF00ED23A3A4DC08166" }, { "b" : "7F062D4F9000", "path" : "/usr/lib/libsasl2.so.3", "elfType" : 3, "buildId" : "5EB2BB3E230AE8C8041137E699B28B8897470F6D" }, { "b" : "7F062D495000", "path" : "/usr/lib/libyaml-cpp.so.0.6", "elfType" : 3, "buildId" : "9CE8599B80C376E11594893F64DB930275BD2406" }, { "b" : "7F062D409000", "path" : "/usr/lib/libcurl.so.4", "elfType" : 3, "buildId" : "603163860880AF19A20B2D0662922E089DB0E447" }, { "b" : "7F062D013000", "path" : "/usr/lib/libtcmalloc.so.4", "elfType" : 3, "buildId" : "9D9D6DF03F9FA0FAB29B51CF9D541CC76FA94634" }, { "b" : "7F062CFF8000", "path" : "/usr/lib/libresolv.so.2", "elfType" : 3, "buildId" : "E4B2B917453A734D025066EABEDF96599E2D7224" }, { "b" : "7F062CD27000", "path" : "/usr/lib/libcrypto.so.1.1", "elfType" : 3, "buildId" : "9E2DE4455F506C6976993CC445022092BE0B54A8" }, { "b" : "7F062CC97000", "path" : "/usr/lib/libssl.so.1.1", "elfType" : 3, "buildId" : "F0FD93B30114A7CD44FDB6DD1F6D471D2AE90AED" }, { "b" : "7F062CC92000", "path" : "/usr/lib/libdl.so.2", "elfType" : 3, "buildId" : "DFB8370A4FD752F3F5CBE807A3528F18F61D176F" }, { "b" : "7F062CC87000", "path" : "/usr/lib/librt.so.1", "elfType" : 3, "buildId" : "7673B31E17C41CA27FBD88CB985081E9627BC9B2" }, { "b" : "7F062CA9F000", "path" : "/usr/lib/libstdc++.so.6", "elfType" : 3, "buildId" : "EB501D9FF20E37200F3A4E0BC0ED14634E0EC543" }, { "b" : "7F062C957000", "path" : "/usr/lib/libm.so.6", "elfType" : 3, "buildId" : "0F856154AA17D9A576B823BDAF8630D5E4C94EAC" }, { "b" : "7F062C93D000", "path" : "/usr/lib/libgcc_s.so.1", "elfType" : 3, "buildId" : "6E78D7299B06E83AD19D1FF69EEDB749B17368FB" }, { "b" : "7F062C91C000", "path" : "/usr/lib/libpthread.so.0", "elfType" : 3, "buildId" : "9267B03C3D16CEAEBCBCD4D81D7374B2BF8EF1F3" }, { "b" : "7F062C759000", "path" : "/usr/lib/libc.so.6", "elfType" : 3, "buildId" : "A8AF6C81CB28A37BF3A546970BF64224402F8BD4" }, { "b" : "7F062C731000", "path" : "/usr/lib/libnghttp2.so.14", "elfType" : 3, "buildId" : "4219E1F134469A4C8AC0B1849B759F924CDE4A34" }, { "b" : "7F062C712000", "path" : "/usr/lib/libidn2.so.0", "elfType" : 3, "buildId" : "BE83B30E7B61A215BF00B1B9207663679E133EFD" }, { "b" : "7F062C6D0000", "path" : "/usr/lib/libssh2.so.1", "elfType" : 3, "buildId" : "E3D2D2457F198CC759D49550108E70CCFD9E8CDB" }, { "b" : "7F062C6BD000", "path" : "/usr/lib/libpsl.so.5", "elfType" : 3, "buildId" : "CE00C357D7769AFEF846A12E3CFDE915CDC50902" }, { "b" : "7F062C66D000", "path" : "/usr/lib/libgssapi_krb5.so.2", "elfType" : 3, "buildId" : "57DD8442F60D25BA9BAA4E4304F788200F2E6F42" }, { "b" : "7F062C57F000", "path" : "/usr/lib/libkrb5.so.3", "elfType" : 3, "buildId" : "21930CA0C85798ACCDB009D840FAF1FA887409EA" }, { "b" : "7F062C54A000", "path" : "/usr/lib/libk5crypto.so.3", "elfType" : 3, "buildId" : "60CF7C2EC1987ACADEAC7B2C977DB5261F6C4BF7" }, { "b" : "7F062C544000", "path" : "/usr/lib/libcom_err.so.2", "elfType" : 3, "buildId" : "DCF3AFF7E1262A8DE73F6C071AD5452E8C6F0531" }, { "b" : "7F062D986000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "5F661EE590E1776147FE7FF025E0BD922E7DAE70" }, { "b" : "7F062C1C2000", "path" : "/usr/lib/libunistring.so.2", "elfType" : 3, "buildId" : "B06A573A55F6005E92418F30945B13581F9BC848" }, { "b" : "7F062C1B2000", "path" : "/usr/lib/libkrb5support.so.0", "elfType" : 3, "buildId" : "5A6E77E8A946A471F9E42EDDB168F77D263172F5" }, { "b" : "7F062C1AB000", "path" : "/usr/lib/libkeyutils.so.1", "elfType" : 3, "buildId" : "CC70288F3B3DED400229586626D232405AE3DB6B" }, { "b" : "7F062D976000", "path" : "/usr/lib/sasl2/libdigestmd5.so", "elfType" : 3, "buildId" : "D1097B4F447ADD8E071599D82DFD003221319377" }, { "b" : "7F062D96D000", "path" : "/usr/lib/sasl2/libsasldb.so", "elfType" : 3, "buildId" : "8C87CDC6673301F0482F2818A9537131A8BD3CDA" }, { "b" : "7F062D95D000", "path" : "/usr/lib/libgdbm.so.6", "elfType" : 3, "buildId" : "3CED12D97BB484AED60E80FD799642F89FA94FDF" }, { "b" : "7F062D952000", "path" : "/usr/lib/sasl2/libntlm.so", "elfType" : 3, "buildId" : "37E8B14505CD5BC907D60D628BF3861322A93710" }, { "b" : "7F062D94C000", "path" : "/usr/lib/sasl2/liblogin.so", "elfType" : 3, "buildId" : "1D611C3A477B6101DE8248908EA44A6C4D3B18AC" }, { "b" : "7F062D946000", "path" : "/usr/lib/sasl2/libkdexoauth2.so", "elfType" : 3, "buildId" : "EEA6A77BBA7BA2B15D05EA337D0B0A8FC1890E60" }, { "b" : "7F062D940000", "path" : "/usr/lib/sasl2/libanonymous.so", "elfType" : 3, "buildId" : "45E7CD56D9BB3442549518DC9BA28F80321AE38E" }, { "b" : "7F062D939000", "path" : "/usr/lib/sasl2/libcrammd5.so", "elfType" : 3, "buildId" : "D457203C4F5AD64ED76AE93C2998524D7D26BFAA" }, { "b" : "7F062C19C000", "path" : "/usr/lib/sasl2/libplain.so", "elfType" : 3, "buildId" : "085FFBA1386E4D23DD6CF33D8171886663CF9241" }, { "b" : "7F062C190000", "path" : "/usr/lib/sasl2/libscram.so", "elfType" : 3, "buildId" : "90705ADB02DEDB6A21BD41B58630E6CF42842E4C" } ] }}
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(_ZN5mongo15printStackTraceERSo+0x3A) [0x562bb7e4cfaa]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(_ZN5mongo8unittest29TestAssertionFailureExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjS9_+0x1F3) [0x562bb796cbb3]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(_ZN5mongo8unittest20TestAssertionFailureC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjS9_+0x2D) [0x562bb796ce3d]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(+0x33193B) [0x562bb795893b]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(_ZN5mongo8unittest4Test3runEv+0x24) [0x562bb796b6d4]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(+0x32628B) [0x562bb794d28b]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi+0x4B5) [0x562bb796d465]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_i+0x5E9) [0x562bb796e9d9]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(main+0x85E) [0x562bb7933e9e]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  libc.so.6(__libc_start_main+0xF3) [0x7f062c77fee3]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200  mongo_uri_test(_start+0x2E) [0x562bb794cade]
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.593+0200 -----  END BACKTRACE  -----
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.594+0200 
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.594+0200 2019-10-01T22:24:53.593+0200 I  -        [main] ServiceContextTest                       | tests:    1 | fails:    0 | assert calls:          0 | time secs:  0.029
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.594+0200 2019-10-01T22:24:53.593+0200 I  -        [main] TOTALS                                   | tests:    7 | fails:    1 | assert calls:          0 | time secs:  1.204
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.594+0200 2019-10-01T22:24:53.593+0200 I  -        [main] Failing tests:
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.594+0200 2019-10-01T22:24:53.593+0200 I  -        [main]      MongoURI/srvRecordTest Failed
[cpp_unit_test:mongo_uri_test] 2019-10-01T22:24:53.594+0200 2019-10-01T22:24:53.593+0200 I  -        [main] FAILURE - 1 tests in 1 suites failed
[executor:cpp_unit_test:job0] 2019-10-01T22:24:53.598+0200 mongo_uri_test ran in 1.67 seconds: failed.
[executor:cpp_unit_test:job0] 2019-10-01T22:24:53.599+0200 C++ unit test build/opt/mongo/client/mongo_uri_test failed, so stopping...
[executor:cpp_unit_test:job0] 2019-10-01T22:24:53.599+0200 Received a StopExecution exception: C++ unit test build/opt/mongo/client/mongo_uri_test failed.
[executor] 2019-10-01T22:24:53.601+0200 Waiting for threads to complete
[executor] 2019-10-01T22:24:53.601+0200 Threads are completed!
[executor] 2019-10-01T22:24:53.601+0200 Summary: 23 test(s) ran in 8.90 seconds (22 succeeded, 369 were skipped, 1 failed, 0 errored)
    The following tests failed (with exit code):
        build/opt/mongo/client/mongo_uri_test (17 UNKNOWN)
[resmoke] 2019-10-01T22:24:53.601+0200 ================================================================================
[resmoke] 2019-10-01T22:24:53.601+0200 Summary of unittests suite: 23 test(s) ran in 8.90 seconds (22 succeeded, 369 were skipped, 1 failed, 0 errored)
The following tests failed (with exit code):
    build/opt/mongo/client/mongo_uri_test (17 UNKNOWN)
23 test(s) ran in 8.91 seconds (22 succeeded, 369 were skipped, 1 failed, 0 errored)
    cpp_unit_tests: 23 test(s) ran in 8.90 seconds (22 succeeded, 369 were skipped, 1 failed, 0 errored)
        The following tests failed (with exit code):
            build/opt/mongo/client/mongo_uri_test (17 UNKNOWN)
[resmoke] 2019-10-01T22:24:53.601+0200 Exiting with code: 1
==> FEHLER: Ein Fehler geschah in check().
    Breche ab...

really annoying...

jamespharvey20 commented on 2019-08-28 02:32

mrohnstock, per upstream's response, I've disabled mongodb using pcre via system library, so it pulls in their own version and compiles it into mongodb itself. Verified it passes check() with makepkg.

jamespharvey20 commented on 2019-08-23 10:25

mrohnstock, thanks for your bugreport.

I'm increasingly understanding why there is swearing from previous maintainers of mongodb, in the old community git repo.

I've created a new jira issue asking for comment, because the issue you linked to is closed, and I've had them give no response on other closed issues I've had followup questions on.

I'm not sure what to do here. The way they worded the issue you linked to implies to me that it's just a test failure, and not necessarily affect production. That might indicate just disabling the test. But, I'm fairly uncomfortable with releasing effectively untested code. And, I'm increasingly having the impression based on past and current mongodb history that the mongodb source code is incapable of working with external dependencies in the long term, and we may have to abandon the practice of efficiently working with packaged dependencies and just let it compile in everything it needs itself.

mrohnstock commented on 2019-08-23 04:54

After about 18h of compiling the following error appear:

...
[cpp_unit_test:expression_test] 2019-08-22T22:02:49.161+0200 2019-08-22T22:02:49.158+0200 I  -        [main] RegexMatchExpression                     | tests:   27 | fails:    1 | assert calls:          0 | time secs:  0.002
[cpp_unit_test:expression_test] 2019-08-22T22:02:49.162+0200    RegexAcceptsLFOption    DBException: Location51091: Regular expression is invalid: (*VERB) not recognized or malformed in test RegexAcceptsLFOption
[cpp_unit_test:expression_test] 2019-08-22T22:02:49.162+0200 2019-08-22T22:02:49.158+0200 I  -        [main] SizeMatchExpression                      | tests:    6 | fails:    0 | assert calls:          0 | time secs:  0.000
[cpp_unit_test:expression_test] 2019-08-22T22:02:49.162+0200 2019-08-22T22:02:49.158+0200 I  -        [main] TOTALS                                   | tests:  494 | fails:    1 | assert calls:          0 | time secs:  7.515
[cpp_unit_test:expression_test] 2019-08-22T22:02:49.162+0200 2019-08-22T22:02:49.158+0200 I  -        [main] Failing tests:
[cpp_unit_test:expression_test] 2019-08-22T22:02:49.162+0200 2019-08-22T22:02:49.158+0200 I  -        [main]     RegexMatchExpression/RegexAcceptsLFOption Failed
[cpp_unit_test:expression_test] 2019-08-22T22:02:49.162+0200 2019-08-22T22:02:49.158+0200 I  -        [main] FAILURE - 1 tests in 1 suites failed
[executor:cpp_unit_test:job0] 2019-08-22T22:02:49.178+0200 expression_test ran in 8.06 seconds: failed.
[executor:cpp_unit_test:job0] 2019-08-22T22:02:49.178+0200 C++ unit test build/opt/mongo/db/matcher/expression_test failed, so stopping...
[executor:cpp_unit_test:job0] 2019-08-22T22:02:49.178+0200 Received a StopExecution exception: C++ unit test build/opt/mongo/db/matcher/expression_test failed.
[executor] 2019-08-22T22:02:49.180+0200 Waiting for threads to complete
[executor] 2019-08-22T22:02:49.180+0200 Threads are completed!
[executor] 2019-08-22T22:02:49.181+0200 Summary: 105 test(s) ran in 115.98 seconds (104 succeeded, 287 were skipped, 1 failed, 0 errored)
    The following tests failed (with exit code):
        build/opt/mongo/db/matcher/expression_test (17 UNKNOWN)
[resmoke] 2019-08-22T22:02:49.181+0200 ================================================================================
[resmoke] 2019-08-22T22:02:49.181+0200 Summary of unittests suite: 105 test(s) ran in 115.98 seconds (104 succeeded, 287 were skipped, 1 failed, 0 errored)
The following tests failed (with exit code):
    build/opt/mongo/db/matcher/expression_test (17 UNKNOWN)
105 test(s) ran in 116.00 seconds (104 succeeded, 287 were skipped, 1 failed, 0 errored)
    cpp_unit_tests: 105 test(s) ran in 115.98 seconds (104 succeeded, 287 were skipped, 1 failed, 0 errored)
        The following tests failed (with exit code):
            build/opt/mongo/db/matcher/expression_test (17 UNKNOWN)
[resmoke] 2019-08-22T22:02:49.181+0200 Exiting with code: 1
==> Ein Fehler geschah in check().
    Breche ab...

which got already reported as Won't fix in jira. PCRE needs an fix, listed here. I've created a task for the pcre package here.

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-08-20 01:26

@ectospasm, you're getting that building mongodb? Do you have python2-scons 3.1.1-1 (latest) installed, or an older version? What are you using to build? I just built python2-scons 3.1.1-1 then mongodb 4.0.12-2 in clean chroots (using devtools) and didn't get the error you posted.

In case this is due to using an older version of python2-scons, I just pushed an update to the PKGBUILD, to explicitly require version 3.1.1 or higher of python2-scons. I purposely didn't bump pkgrel in this push, because there's no need for anyone to re-compile who successfully did before. It's only useful to anyone failing to compile with this error. If you're using any aur helpers, please make sure they update to the newest PKGBUILD with this explicit version dependency.