微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

WiredTiger 错误 (22):在创建所有列组之前不能使用“table:sizeStorer”:参数无效

如何解决WiredTiger 错误 (22):在创建所有列组之前不能使用“table:sizeStorer”:参数无效

当我在 ubuntu 16.04(arm) 上安装 mognodb 时,发生以下错误 有人帮忙吗?

MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:55.227+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,in(checking socket for error after poll),reason: Connection refused
2020-12-22T06:46:55.228+0000 E QUERY    [thread1] Error: Couldn't connect to server 127.0.0.1:27017,connection attempt Failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect Failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
2020-12-22T06:46:55.350+0000 E STORAGE  [initandlisten] WiredTiger error (22) [1608619615:350786][8:0xffffa3ea2830],WT_SESSION.open_cursor: 'table:sizeStorer' cannot be used until all column groups are created: Invalid argument
2020-12-22T06:46:55.350+0000 I -        [initandlisten] Invariant failure: ret resulted in status BadValue: 22: Invalid argument at src/mongo/db/storage/wiredtiger/wiredtiger_size_storer.cpp 69
2020-12-22T06:46:55.350+0000 I -        [initandlisten]

***aborting after invariant() failure


2020-12-22T06:46:55.353+0000 F -        [initandlisten] Got signal: 6 (Aborted).

 0xaaaad1f1eff0 0xaaaad1f1e2a0 0xaaaad1f1e778 0xffffa411066c 0xffffa3c51528
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"AAAAD0AE0000","o":"143EFF0","s":"_ZN5mongo15printstacktraceERSo"},{"b":"AAAAD0AE0000","o":"143E2A0"},"o":"143E778"},{"b":"FFFFA4110000","o":"66C","s":"__kernel_rt_sigreturn"},{"b":"FFFFA3C20000","o":"31528","s":"gsignal"}],"processInfo":{ "mongodbVersion" : "3.4.20","gitVersion" : "447847d93d6e0a21b018d5df45528e815c7c13d8","compiledModules" : [],"uname" : { "sysname" : "Linux","release" : "4.18.0-147.5.1.el8_1.5es.10.aarch64","version" : "#1 SMP Wed Nov 18 07:41:30 UTC 2020","machine" : "aarch64" },"somap" : [ { "b" : "AAAAD0AE0000","elfType" : 3,"buildId" : "3982CBDADA6790C3977DDD3D6551B6DF334FAAC7" },{ "b" : "FFFFA4110000","buildId" : "E148215A77BEE73A99AE0E632569A81EC648B267" },{ "b" : "FFFFA4080000","path" : "/lib/aarch64-linux-gnu/libssl.so.1.0.0","buildId" : "124D415B526BD3F23D860A22D61E1BB2E78225DB" },{ "b" : "FFFFA3ED0000","path" : "/lib/aarch64-linux-gnu/libcrypto.so.1.0.0","buildId" : "57D86F63CECE2854EEB0BCB2902539F32FF8B74D" },{ "b" : "FFFFA3EB0000","path" : "/lib/aarch64-linux-gnu/librt.so.1","buildId" : "E29A22F305FD4ED854F285075E0FCF108214FB05" },{ "b" : "FFFFA3E80000","path" : "/lib/aarch64-linux-gnu/libdl.so.2","buildId" : "24F2003BAAC8931062D7877508ACF12C16F043BA" },{ "b" : "FFFFA3DD0000","path" : "/lib/aarch64-linux-gnu/libm.so.6","buildId" : "80D706B4DF38445B5D79F6D178E22119A310BE81" },{ "b" : "FFFFA3DA0000","path" : "/lib/aarch64-linux-gnu/libgcc_s.so.1","buildId" : "A05222936FB1A047AC0567B0861730C781C69A23" },{ "b" : "FFFFA3D70000","path" : "/lib/aarch64-linux-gnu/libpthread.so.0","buildId" : "5B6DA4B4C11C0FD847E788E610B22C253C8BF1EA" },{ "b" : "FFFFA3C20000","path" : "/lib/aarch64-linux-gnu/libc.so.6","buildId" : "825D6B66F1FFDA9DF55C4D8EC221D57D8BCC82A4" },{ "b" : "FFFFA4120000","path" : "/lib/ld-linux-aarch64.so.1","buildId" : "18CCB66DA0CF21AB4C1B1FE62B8D01C405A8825A" } ] }}
 mongod(_ZN5mongo15printstacktraceERSo+0x48) [0xaaaad1f1eff0]
 mongod(+0x143E2A0) [0xaaaad1f1e2a0]
 mongod(+0x143E778) [0xaaaad1f1e778]
 (__kernel_rt_sigreturn+0x0) [0xffffa411066c]
 libc.so.6(gsignal+0x38) [0xffffa3c51528]
-----  END BACKTRACE  -----

当我在 ubuntu 16.04(arm) 上安装 mognodb 时,出现以下错误有人帮忙吗? mognodb 版本 3.4.20,操作系统为 ubuntu 16.04,运行在 kubernetes 上

解决方法

[root@node-1 ~]# kubectl logs -n openstack mongodb-0
+ t=0
+ mongod -f /etc/mongod.conf --auth
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten] MongoDB starting : pid=8 port=27017 dbpath=/data/db 64-bit host=mongodb-0
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten] db version v3.4.20
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten] git version: 447847d93d6e0a21b018d5df45528e815c7c13d8
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten] modules: none
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten] build environment:
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten]     distmod: ubuntu1604
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten]     distarch: aarch64
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten]     target_arch: aarch64
2020-12-22T06:46:49.949+0000 I CONTROL  [initandlisten] options: { config: "/etc/mongod.conf",security: { authorization: "enabled" },storage: { wiredTiger: { engineConfig: { cacheSizeGB: 5.0 } } } }
2020-12-22T06:46:49.952+0000 I STORAGE  [initandlisten]
2020-12-22T06:46:49.952+0000 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2020-12-22T06:46:49.952+0000 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2020-12-22T06:46:49.952+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=5120M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),verbose=(recovery_progress),connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:49.981+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,in(checking socket for error after poll),reason: Connection refused
2020-12-22T06:46:49.981+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=1
+ '[' 1 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:51.030+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:46:51.031+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
2020-12-22T06:46:51.031+0000 I STORAGE  [initandlisten] WiredTiger message [1608619611:31899][8:0xffffa3ea2830],txn-recover: Main recovery loop: starting at 78/128
2020-12-22T06:46:51.032+0000 I STORAGE  [initandlisten] WiredTiger message [1608619611:32258][8:0xffffa3ea2830],txn-recover: Recovering log 78 through 79
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
2020-12-22T06:46:51.636+0000 I STORAGE  [initandlisten] WiredTiger message [1608619611:636871][8:0xffffa3ea2830],txn-recover: Recovering log 79 through 79
+ t=2
+ '[' 2 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:52.081+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:46:52.081+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=3
+ '[' 3 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:53.130+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:46:53.130+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=4
+ '[' 4 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:54.178+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:46:54.178+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=5
+ '[' 5 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:55.227+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:46:55.228+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
2020-12-22T06:46:55.350+0000 E STORAGE  [initandlisten] WiredTiger error (22) [1608619615:350786][8:0xffffa3ea2830],WT_SESSION.open_cursor: 'table:sizeStorer' cannot be used until all column groups are created: Invalid argument
2020-12-22T06:46:55.350+0000 I -        [initandlisten] Invariant failure: ret resulted in status BadValue: 22: Invalid argument at src/mongo/db/storage/wiredtiger/wiredtiger_size_storer.cpp 69
2020-12-22T06:46:55.350+0000 I -        [initandlisten]

***aborting after invariant() failure


2020-12-22T06:46:55.353+0000 F -        [initandlisten] Got signal: 6 (Aborted).

 0xaaaad1f1eff0 0xaaaad1f1e2a0 0xaaaad1f1e778 0xffffa411066c 0xffffa3c51528
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"AAAAD0AE0000","o":"143EFF0","s":"_ZN5mongo15printStackTraceERSo"},{"b":"AAAAD0AE0000","o":"143E2A0"},"o":"143E778"},{"b":"FFFFA4110000","o":"66C","s":"__kernel_rt_sigreturn"},{"b":"FFFFA3C20000","o":"31528","s":"gsignal"}],"processInfo":{ "mongodbVersion" : "3.4.20","gitVersion" : "447847d93d6e0a21b018d5df45528e815c7c13d8","compiledModules" : [],"uname" : { "sysname" : "Linux","release" : "4.18.0-147.5.1.el8_1.5es.10.aarch64","version" : "#1 SMP Wed Nov 18 07:41:30 UTC 2020","machine" : "aarch64" },"somap" : [ { "b" : "AAAAD0AE0000","elfType" : 3,"buildId" : "3982CBDADA6790C3977DDD3D6551B6DF334FAAC7" },{ "b" : "FFFFA4110000","buildId" : "E148215A77BEE73A99AE0E632569A81EC648B267" },{ "b" : "FFFFA4080000","path" : "/lib/aarch64-linux-gnu/libssl.so.1.0.0","buildId" : "124D415B526BD3F23D860A22D61E1BB2E78225DB" },{ "b" : "FFFFA3ED0000","path" : "/lib/aarch64-linux-gnu/libcrypto.so.1.0.0","buildId" : "57D86F63CECE2854EEB0BCB2902539F32FF8B74D" },{ "b" : "FFFFA3EB0000","path" : "/lib/aarch64-linux-gnu/librt.so.1","buildId" : "E29A22F305FD4ED854F285075E0FCF108214FB05" },{ "b" : "FFFFA3E80000","path" : "/lib/aarch64-linux-gnu/libdl.so.2","buildId" : "24F2003BAAC8931062D7877508ACF12C16F043BA" },{ "b" : "FFFFA3DD0000","path" : "/lib/aarch64-linux-gnu/libm.so.6","buildId" : "80D706B4DF38445B5D79F6D178E22119A310BE81" },{ "b" : "FFFFA3DA0000","path" : "/lib/aarch64-linux-gnu/libgcc_s.so.1","buildId" : "A05222936FB1A047AC0567B0861730C781C69A23" },{ "b" : "FFFFA3D70000","path" : "/lib/aarch64-linux-gnu/libpthread.so.0","buildId" : "5B6DA4B4C11C0FD847E788E610B22C253C8BF1EA" },{ "b" : "FFFFA3C20000","path" : "/lib/aarch64-linux-gnu/libc.so.6","buildId" : "825D6B66F1FFDA9DF55C4D8EC221D57D8BCC82A4" },{ "b" : "FFFFA4120000","path" : "/lib/ld-linux-aarch64.so.1","buildId" : "18CCB66DA0CF21AB4C1B1FE62B8D01C405A8825A" } ] }}
 mongod(_ZN5mongo15printStackTraceERSo+0x48) [0xaaaad1f1eff0]
 mongod(+0x143E2A0) [0xaaaad1f1e2a0]
 mongod(+0x143E778) [0xaaaad1f1e778]
 (__kernel_rt_sigreturn+0x0) [0xffffa411066c]
 libc.so.6(gsignal+0x38) [0xffffa3c51528]
-----  END BACKTRACE  -----
/tmp/start.sh: line 18:     8 Aborted                 mongod -f /etc/mongod.conf --auth
+ t=6
+ '[' 6 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:56.274+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:46:56.275+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=7
+ '[' 7 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:57.320+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:46:57.320+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=8
+ '[' 8 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:58.369+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:46:58.369+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=9
+ '[' 9 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:46:59.416+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:46:59.416+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=10
+ '[' 10 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:00.462+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:00.462+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=11
+ '[' 11 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:01.511+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:01.511+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=12
+ '[' 12 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:02.558+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:02.558+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=13
+ '[' 13 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:03.603+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:03.603+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=14
+ '[' 14 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:04.650+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:04.651+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=15
+ '[' 15 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:05.705+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:05.705+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=16
+ '[' 16 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:06.755+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:06.755+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=17
+ '[' 17 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:07.808+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:07.808+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=18
+ '[' 18 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:08.855+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:08.856+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=19
+ '[' 19 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:09.902+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:09.902+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=20
+ '[' 20 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:10.950+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:10.950+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=21
+ '[' 21 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:11.996+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:11.996+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=22
+ '[' 22 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:13.045+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:13.045+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=23
+ '[' 23 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:14.095+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:14.095+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=24
+ '[' 24 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:15.146+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:15.146+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=25
+ '[' 25 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:16.198+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:16.198+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=26
+ '[' 26 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:17.249+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:17.250+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=27
+ '[' 27 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:18.300+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:18.301+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=28
+ '[' 28 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:19.347+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:19.347+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
+ echo 'waiting for mongodb to start'
+ sleep 1
waiting for mongodb to start
+ t=29
+ '[' 29 -ge 30 ']'
+ mongo --eval 'db.adminCommand('\''ping'\'')'
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017
2020-12-22T06:47:20.397+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017,reason: Connection refused
2020-12-22T06:47:20.397+0000 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017,connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
waiting for mongodb to start
+ echo 'waiting for mongodb to start'
+ sleep 1
+ t=30
+ '[' 30 -ge 30 ']'
+ echo 'mongodb did not start,giving up'
+ exit 1
mongodb did not start,giving up

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。