-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.8
-
Component/s: None
-
Environment:WSL
Problem Description
can't set up mongodb to wait for connections on an specific port.
Steps to Reproduce
- install mongodb
- create folder in /data/db
- grante the right privileges to the directory
- run: mongodb
- below error in section Actual Results is thrown.
Expected Results
make it wait for conenctions on a specific port.
Actual Results
2021-04-22T19:57:07.821+0200 I CONTROL [initandlisten] MongoDB starting : pid=24012 port=27017 dbpath=/data/db 64-bit host=CH5CG01444YC
2021-04-22T19:57:07.823+0200 I CONTROL [initandlisten] db version v3.6.8
2021-04-22T19:57:07.824+0200 I CONTROL [initandlisten] git version: 8e540c0b6db93ce994cc548f000900bdc740f80a
2021-04-22T19:57:07.826+0200 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
2021-04-22T19:57:07.827+0200 I CONTROL [initandlisten] allocator: tcmalloc
2021-04-22T19:57:07.831+0200 I CONTROL [initandlisten] modules: none
2021-04-22T19:57:07.832+0200 I CONTROL [initandlisten] build environment:
2021-04-22T19:57:07.833+0200 I CONTROL [initandlisten] distarch: x86_64
2021-04-22T19:57:07.834+0200 I CONTROL [initandlisten] target_arch: x86_64
2021-04-22T19:57:07.836+0200 I CONTROL [initandlisten] options: {}
2021-04-22T19:57:07.849+0200 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=7343M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),cache_cursors=false,compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
2021-04-22T19:57:08.610+0200 E STORAGE [initandlisten] WiredTiger error (17) [1619114228:610402][24012:0x7f028ddb0ac0], connection: /data/db/WiredTiger.wt: handle-open: open: File exists
2021-04-22T19:57:08.617+0200 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.1
2021-04-22T19:57:08.622+0200 E STORAGE [initandlisten] WiredTiger error (22) [1619114228:622571][24012:0x7f028ddb0ac0], connection: /data/db/: directory-sync: fdatasync: Invalid argument
2021-04-22T19:57:08.623+0200 E STORAGE [initandlisten] WiredTiger error (-31804) [1619114228:622983][24012:0x7f028ddb0ac0], connection: the process must exit and restart: WT_PANIC: WiredTiger library panic
2021-04-22T19:57:08.625+0200 F - [initandlisten] Fatal Assertion 28558 at src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp 366
2021-04-22T19:57:08.626+0200 F - [initandlisten]
***aborting after fassert() failure
2021-04-22T19:57:08.667+0200 F - [initandlisten] Got signal: 6 (Aborted).
0x7f0290ef001e 0x7f0290eef90f 0x7f0290eef9ac 0x7f028e0c23c0 0x7f028def618b 0x7f028ded5859 0x7f028f65bc55 0x7f028f4038ee 0x7f028f798089 0x7f028f40dec8 0x7f028f40e228 0x7f028f409cc0 0x7f028f761cb8 0x7f028f7624eb 0x7f028f75f52c 0x7f028f7b754a 0x7f028f77f6b7 0x7f028f75cfcd 0x7f028f73cc42 0x7f028f70fc70 0x7f028f6f5559 0x7f028f8d8fe6 0x7f028f6cf2b9 0x7f028f6d27e3 0x7f028f66061d 0x7f028ded70b3 0x7f028f6bcd4e
----- BEGIN BACKTRACE -----
,{"b":"7F028EBE5000","o":"230A90F"},{"b":"7F028EBE5000","o":"230A9AC"},{"b":"7F028E0AD000","o":"153C0"},{"b":"7F028DEB0000","o":"4618B","s":"gsignal"},{"b":"7F028DEB0000","o":"25859","s":"abort"},{"b":"7F028EBE5000","o":"A76C55","s":"ZN5mongo32fassertFailedNoTraceWithLocationEiPKcj"},{"b":"7F028EBE5000","o":"81E8EE"},{"b":"7F028EBE5000","o":"BB3089"},{"b":"7F028EBE5000","o":"828EC8","s":"wt_err"},{"b":"7F028EBE5000","o":"829228","s":"wt_panic"},{"b":"7F028EBE5000","o":"824CC0"},{"b":"7F028EBE5000","o":"B7CCB8"},{"b":"7F028EBE5000","o":"B7D4EB"},{"b":"7F028EBE5000","o":"B7A52C","s":"wt_open"},{"b":"7F028EBE5000","o":"BD254A","s":"wt_block_manager_create"},{"b":"7F028EBE5000","o":"B9A6B7","s":"wt_schema_create"},{"b":"7F028EBE5000","o":"B77FCD","s":"wt_turtle_init"},{"b":"7F028EBE5000","o":"B57C42","s":"wiredtiger_open"},{"b":"7F028EBE5000","o":"B2AC70","s":"_ZN5mongo18WiredTigerKVEngineC2ERKNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PNS_11ClockSourceES8_mbbbb"},{"b":"7F028EBE5000","o":"B10559"},{"b":"7F028EBE5000","o":"CF3FE6","s":"_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv"},{"b":"7F028EBE5000","o":"AEA2B9"},{"b":"7F028EBE5000","o":"AED7E3","s":"_ZN5mongo11mongoDbMainEiPPcS1"},{"b":"7F028EBE5000","o":"A7B61D","s":"main"},{"b":"7F028DEB0000","o":"270B3","s":"__libc_start_main"},{"b":"7F028EBE5000","o":"AD7D4E","s":"_start"}],"processInfo":{ "mongodbVersion" : "3.6.8", "gitVersion" : "8e540c0b6db93ce994cc548f000900bdc740f80a", "compiledModules" : [], "uname" :
{ "sysname" : "Linux", "release" : "4.4.0-18362-Microsoft", "version" : "#1049-Microsoft Thu Aug 14 12:01:00 PST 2020", "machine" : "x86_64" }, "somap" : [ { "b" : "7F028EBE5000", "elfType" : 3, "buildId" : "060194AE9AEEF88E6F109520AE16DEC315715B58" }, { "b" : "7FFFEBC07000", "path" : "linux-vdso.so.1", "elfType" : 3 }, { "b" : "7F028EB50000", "path" : "/lib/x86_64-linux-gnu/libstemmer.so.0d", "elfType" : 3, "buildId" : "F129B7D409F6F63A822673139BE40F369F3E4B13" }, { "b" : "7F028EB30000", "path" : "/lib/x86_64-linux-gnu/libz.so.1", "elfType" : 3, "buildId" : "7A04C793A2CE7B847F43840CA650E0D9DD35389D" }, { "b" : "7F028EB20000", "path" : "/lib/x86_64-linux-gnu/libsnappy.so.1", "elfType" : 3, "buildId" : "74CAFD320059B4D17CF89FD6379A5105FF55840F" }, { "b" : "7F028EAC0000", "path" : "/lib/x86_64-linux-gnu/libyaml-cpp.so.0.6", "elfType" : 3, "buildId" : "B9EC1711A8AAD2FE980B735F13E186BEFE9FA4DB" }, { "b" : "7F028EAB0000", "path" : "/lib/x86_64-linux-gnu/libpcrecpp.so.0", "elfType" : 3, "buildId" : "90A529AE5D50FADDD9CC20E87A71C65613B3C28F" }, { "b" : "7F028EA20000", "path" : "/lib/x86_64-linux-gnu/libboost_program_options.so.1.71.0", "elfType" : 3, "buildId" : "CB2EB21D65AF49F187F384ABED5D46D66E998195" }, { "b" : "7F028E9F0000", "path" : "/lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0", "elfType" : 3, "buildId" : "956195B5ABA44A072A6242BF2399D9EB0B6163E7" }, { "b" : "7F028E7F0000", "path" : "/lib/x86_64-linux-gnu/libtcmalloc.so.4", "elfType" : 3, "buildId" : "BC036BA2C0C0B4976A51184F1E9F712CCB8611C7" }, { "b" : "7F028E7D0000", "path" : "/lib/x86_64-linux-gnu/libresolv.so.2", "elfType" : 3, "buildId" : "6BCE6EF9E884DDA05E19F944A6C6BF85C71D09E8" }, { "b" : "7F028E4F0000", "path" : "/lib/x86_64-linux-gnu/libcrypto.so.1.1", "elfType" : 3, "buildId" : "D30ABD770D1215FFF0F9A0FA9F12B1DE5B50DA29" }, { "b" : "7F028E450000", "path" : "/lib/x86_64-linux-gnu/libssl.so.1.1", "elfType" : 3, "buildId" : "4EF02CF97DD73CB0A88495E6DBF584DD6AA5AA22" }, { "b" : "7F028E440000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "A3F78028221CF3B784DD5E10D05AD7A55A6A85D5" }, { "b" : "7F028E240000", "path" : "/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3, "buildId" : "C45813107D1487F8FC7197424AA6F1E0BE00FE6C" }, { "b" : "7F028E0F1000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "44B3FC3330F57F48B1EED34A9A8E982C6D1EF76D" }, { "b" : "7F028E0D0000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "64E719943721B9650519ABCF9EEFD94A7135DECD" }, { "b" : "7F028E0AD000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "E54761F7B554D0FCC1562959665D93DFFBEBDAF0" }, { "b" : "7F028DEB0000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "099B9225BCB0D019D9D60884BE583EB31BB5F44E" }, { "b" : "7F028DE30000", "path" : "/lib/x86_64-linux-gnu/libpcre.so.3", "elfType" : 3, "buildId" : "AC83711FBCB2725AD376CA8F8C947F6A782E7A65" }, { "b" : "7F028DE00000", "path" : "/lib/x86_64-linux-gnu/libunwind.so.8", "elfType" : 3, "buildId" : "E4502D71B7D21D13E84436FAF0BD4A8FF63874C2" }, { "b" : "7F028EBB0000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "5374B5558386B815E69CC1838A6052CC9B4746F3" }, { "b" : "7F028DDD0000", "path" : "/lib/x86_64-linux-gnu/liblzma.so.5", "elfType" : 3, "buildId" : "533783B82D9BEDA5891A5E10B15D43ADE31085CC" } ] }}
mongod(_ZN5mongo15printStackTraceERSo+0x3E) [0x7f0290ef001e]
mongod(+0x230A90F) [0x7f0290eef90f]
mongod(+0x230A9AC) [0x7f0290eef9ac]
libpthread.so.0(+0x153C0) [0x7f028e0c23c0]
libc.so.6(gsignal+0xCB) [0x7f028def618b]
libc.so.6(abort+0x12B) [0x7f028ded5859]
mongod(_ZN5mongo32fassertFailedNoTraceWithLocationEiPKcj+0x0) [0x7f028f65bc55]
mongod(+0x81E8EE) [0x7f028f4038ee]
mongod(+0xBB3089) [0x7f028f798089]
mongod(__wt_err+0xA5) [0x7f028f40dec8]
mongod(__wt_panic+0x38) [0x7f028f40e228]
mongod(+0x824CC0) [0x7f028f409cc0]
mongod(+0xB7CCB8) [0x7f028f761cb8]
mongod(+0xB7D4EB) [0x7f028f7624eb]
mongod(__wt_open+0x31C) [0x7f028f75f52c]
mongod(__wt_block_manager_create+0x6A) [0x7f028f7b754a]
mongod(__wt_schema_create+0x5C7) [0x7f028f77f6b7]
mongod(__wt_turtle_init+0x7AD) [0x7f028f75cfcd]
mongod(wiredtiger_open+0x2012) [0x7f028f73cc42]
mongod(ZN5mongo18WiredTigerKVEngineC2ERKNSt7_cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PNS_11ClockSourceES8_mbbbb+0x8C0) [0x7f028f70fc70]
mongod(+0xB10559) [0x7f028f6f5559]
mongod(_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv+0x3E6) [0x7f028f8d8fe6]
mongod(+0xAEA2B9) [0x7f028f6cf2b9]
mongod(ZN5mongo11mongoDbMainEiPPcS1+0x613) [0x7f028f6d27e3]
mongod(main+0xD) [0x7f028f66061d]
libc.so.6(__libc_start_main+0xF3) [0x7f028ded70b3]
mongod(_start+0x2E) [0x7f028f6bcd4e]
----- END BACKTRACE -----
Aborted (core dumped)
Additional Notes
I have already tried to:
- run mongodb --repair
- delete the /tmp/mongodb-27017.sock
Nothing solves the problem