V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐工具
RoboMongo
推荐书目
50 Tips and Tricks for MongoDB Developers
Related Blogs
Snail in a Turtleneck
QGabriel
V2EX  ›  MongoDB

求助 启动服务后执行程序就自动退出

  •  
  •   QGabriel · 2021-11-24 17:27:08 +08:00 · 6310 次点击
    这是一个创建于 1119 天前的主题,其中的信息可能已经有所发展或是发生改变。
    mac 电脑 执行程序报错如下:
    {"t":{"$date":"2021-11-24T17:21:55.891+08:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
    {"t":{"$date":"2021-11-24T17:21:55.906+08:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
    {"t":{"$date":"2021-11-24T17:21:55.907+08:00"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
    {"t":{"$date":"2021-11-24T17:21:55.908+08:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":651,"port":27017,"dbPath":"../db/","architecture":"64-bit","host":"DuDU"}}
    {"t":{"$date":"2021-11-24T17:21:55.908+08:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.3","gitVersion":"913d6b62acfbb344dde1b116f4161360acd8fd13","modules":[],"allocator":"system","environment":{"distarch":"x86_64","target_arch":"x86_64"}}}}
    {"t":{"$date":"2021-11-24T17:21:55.909+08:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"19.6.0"}}}
    {"t":{"$date":"2021-11-24T17:21:55.909+08:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"storage":{"dbPath":"../db/"}}}}
    {"t":{"$date":"2021-11-24T17:21:55.911+08:00"},"s":"W", "c":"STORAGE", "id":22271, "ctx":"initandlisten","msg":"Detected unclean shutdown - Lock file is not empty","attr":{"lockFile":"../db/mongod.lock"}}
    {"t":{"$date":"2021-11-24T17:21:55.912+08:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"../db/","storageEngine":"wiredTiger"}}
    {"t":{"$date":"2021-11-24T17:21:55.912+08:00"},"s":"W", "c":"STORAGE", "id":22302, "ctx":"initandlisten","msg":"Recovering data from the last clean checkpoint."}
    {"t":{"$date":"2021-11-24T17:21:55.912+08:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=7680M,session_max=33000,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,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
    {"t":{"$date":"2021-11-24T17:21:56.721+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1637745716:721730][651:0x116fc9dc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 248 through 249"}}
    {"t":{"$date":"2021-11-24T17:21:56.784+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1637745716:784976][651:0x116fc9dc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 249 through 249"}}
    {"t":{"$date":"2021-11-24T17:21:56.847+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1637745716:847170][651:0x116fc9dc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 248/256 to 249/256"}}
    {"t":{"$date":"2021-11-24T17:21:56.848+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1637745716:848367][651:0x116fc9dc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 248 through 249"}}
    {"t":{"$date":"2021-11-24T17:21:56.925+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1637745716:925858][651:0x116fc9dc0], file:index-3-7599426911076859335.wt, txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 249 through 249"}}
    {"t":{"$date":"2021-11-24T17:21:56.966+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1637745716:966567][651:0x116fc9dc0], file:index-3-7599426911076859335.wt, txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}}
    {"t":{"$date":"2021-11-24T17:21:56.966+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1637745716:966632][651:0x116fc9dc0], file:index-3-7599426911076859335.wt, txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}}
    {"t":{"$date":"2021-11-24T17:22:04.603+08:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":8691}}
    {"t":{"$date":"2021-11-24T17:22:04.603+08:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
    {"t":{"$date":"2021-11-24T17:22:04.609+08:00"},"s":"I", "c":"STORAGE", "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}}
    {"t":{"$date":"2021-11-24T17:22:04.617+08:00"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"}
    {"t":{"$date":"2021-11-24T17:22:04.623+08:00"},"s":"W", "c":"CONTROL", "id":22120, "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
    {"t":{"$date":"2021-11-24T17:22:04.624+08:00"},"s":"W", "c":"CONTROL", "id":22138, "ctx":"initandlisten","msg":"You are running this process as the root user, which is not recommended","tags":["startupWarnings"]}
    {"t":{"$date":"2021-11-24T17:22:04.624+08:00"},"s":"W", "c":"CONTROL", "id":22140, "ctx":"initandlisten","msg":"This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning","tags":["startupWarnings"]}
    {"t":{"$date":"2021-11-24T17:22:04.624+08:00"},"s":"W", "c":"CONTROL", "id":22184, "ctx":"initandlisten","msg":"Soft rlimits too low","attr":{"currentValue":256,"recommendedMinimum":64000},"tags":["startupWarnings"]}
    {"t":{"$date":"2021-11-24T17:22:04.645+08:00"},"s":"I", "c":"STORAGE", "id":20536, "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
    {"t":{"$date":"2021-11-24T17:22:04.649+08:00"},"s":"I", "c":"FTDC", "id":20625, "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"../db/diagnostic.data"}}
    {"t":{"$date":"2021-11-24T17:22:04.651+08:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
    {"t":{"$date":"2021-11-24T17:22:04.651+08:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1"}}
    {"t":{"$date":"2021-11-24T17:22:04.651+08:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
    {"t":{"$date":"2021-11-24T17:22:07.247+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:49394","connectionId":1,"connectionCount":1}}
    {"t":{"$date":"2021-11-24T17:22:07.248+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn1","msg":"client metadata","attr":{"remote":"127.0.0.1:49394","client":"conn1","doc":{"driver":{"name":"PyMongo","version":"3.11.2"},"os":{"type":"Darwin","name":"Darwin","architecture":"x86_64","version":"10.15.7"},"platform":"CPython 3.8.7.final.0"}}}
    {"t":{"$date":"2021-11-24T17:22:07.249+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:49395","connectionId":2,"connectionCount":2}}
    {"t":{"$date":"2021-11-24T17:22:07.250+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:49396","connectionId":3,"connectionCount":3}}
    {"t":{"$date":"2021-11-24T17:22:07.250+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn2","msg":"client metadata","attr":{"remote":"127.0.0.1:49395","client":"conn2","doc":{"driver":{"name":"PyMongo","version":"3.11.2"},"os":{"type":"Darwin","name":"Darwin","architecture":"x86_64","version":"10.15.7"},"platform":"CPython 3.8.7.final.0"}}}
    {"t":{"$date":"2021-11-24T17:22:07.250+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn3","msg":"client metadata","attr":{"remote":"127.0.0.1:49396","client":"conn3","doc":{"driver":{"name":"PyMongo","version":"3.11.2"},"os":{"type":"Darwin","name":"Darwin","architecture":"x86_64","version":"10.15.7"},"platform":"CPython 3.8.7.final.0"}}}
    {"t":{"$date":"2021-11-24T17:22:15.965+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:49422","connectionId":4,"connectionCount":4}}
    {"t":{"$date":"2021-11-24T17:22:15.965+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn4","msg":"client metadata","attr":{"remote":"127.0.0.1:49422","client":"conn4","doc":{"application":{"name":"robo3t-1.4.2"},"driver":{"name":"MongoDB Internal Client","version":"4.2.6-18-g6cdb6ab"},"os":{"type":"Darwin","name":"Mac OS X","architecture":"x86_64","version":"19.6.0"}}}}
    {"t":{"$date":"2021-11-24T17:22:16.005+08:00"},"s":"I", "c":"NETWORK", "id":23018, "ctx":"listener","msg":"Error accepting new connection on local endpoint","attr":{"localEndpoint":"127.0.0.1:27017","error":"Too many open files"}}
    {"t":{"$date":"2021-11-24T17:22:16.631+08:00"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"thread5","msg":"WiredTiger error","attr":{"error":24,"message":"[1637745736:631536][651:0x7000060ff000], log-server: __directory_list_worker, 46: ../db//journal: directory-list: opendir: Too many open files"}}
    {"t":{"$date":"2021-11-24T17:22:16.631+08:00"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"thread5","msg":"WiredTiger error","attr":{"error":24,"message":"[1637745736:631685][651:0x7000060ff000], log-server: __log_prealloc_once, 505: log pre-alloc server error: Too many open files"}}
    {"t":{"$date":"2021-11-24T17:22:16.631+08:00"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"thread5","msg":"WiredTiger error","attr":{"error":24,"message":"[1637745736:631712][651:0x7000060ff000], log-server: __log_server, 961: log server error: Too many open files"}}
    {"t":{"$date":"2021-11-24T17:22:16.631+08:00"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"thread5","msg":"WiredTiger error","attr":{"error":-31804,"message":"[1637745736:631736][651:0x7000060ff000], log-server: __log_server, 961: the process must exit and restart: WT_PANIC: WiredTiger library panic"}}
    {"t":{"$date":"2021-11-24T17:22:16.631+08:00"},"s":"F", "c":"-", "id":23089, "ctx":"thread5","msg":"Fatal assertion","attr":{"msgid":50853,"file":"src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp","line":520}}
    {"t":{"$date":"2021-11-24T17:22:16.631+08:00"},"s":"F", "c":"-", "id":23090, "ctx":"thread5","msg":"\n\n***aborting after fassert() failure\n\n"}
    {"t":{"$date":"2021-11-24T17:22:16.631+08:00"},"s":"F", "c":"CONTROL", "id":4757800, "ctx":"thread5","msg":"Writing fatal message","attr":{"message":"Got signal: 6 (Abort trap: 6).\n"}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31431, "ctx":"thread5","msg":"BACKTRACE: {bt}","attr":{"bt":{"backtrace":[{"a":"10BA5DB9C","b":"1098F2000","o":"216BB9C","s":"_ZN5mongo18stack_trace_detail12_GLOBAL__N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE","s+":"10C"},{"a":"10BA5F2A8","b":"1098F2000","o":"216D2A8","s":"_ZN5mongo15printStackTraceEv","s+":"28"},{"a":"10BA5CDDB","b":"1098F2000","o":"216ADDB","s":"_ZN5mongo12_GLOBAL__N_116abruptQuitActionEiP9__siginfoPv","s+":"BB"},{"a":"7FFF6B6465FD","b":"7FFF6B643000","o":"35FD","s":"_sigtramp","s+":"1D"},{"a":"0"},{"a":"7FFF6B51C808","b":"7FFF6B49D000","o":"7F808","s":"abort","s+":"78"},{"a":"10BA442D7","b":"1098F2000","o":"21522D7","s":"_ZN5mongo25fassertFailedWithLocationEiPKcj","s+":"197"},{"a":"1099BF6FB","b":"1098F2000","o":"CD6FB","s":"_ZN5mongo12_GLOBAL__N_141mdb_handle_error_with_startup_suppressionEP18__wt_event_handlerP12__wt_sessioniPKc","s+":"1FB"},{"a":"109B2AAE7","b":"1098F2000","o":"238AE7","s":"__eventv","s+":"607"},{"a":"109B2AD66","b":"1098F2000","o":"238D66","s":"__wt_panic_func","s+":"FD"},{"a":"109A4659E","b":"1098F2000","o":"15459E","s":"__log_server","s+":"44E"},{"a":"7FFF6B652109","b":"7FFF6B64C000","o":"6109","s":"_pthread_start","s+":"94"},{"a":"7FFF6B64DB8B","b":"7FFF6B64C000","o":"1B8B","s":"thread_start","s+":"F"}],"processInfo":{"mongodbVersion":"4.4.3","gitVersion":"913d6b62acfbb344dde1b116f4161360acd8fd13","compiledModules":[],"uname":{"sysname":"Darwin","release":"19.6.0","version":"Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64","machine":"x86_64"},"somap":[{"path":"/Users/quanwei/Desktop/mongodb/bin/./mongod","machType":2,"b":"1098F2000","vmaddr":"100000000","buildId":"88F05A2CDBD83B9F98DAF635FC65C2E6"},{"path":"/usr/lib/system/libsystem_c.dylib","machType":6,"b":"7FFF6B49D000","vmaddr":"7FFF67253000","buildId":"BBDED5E6A6463EEDB33A91E4331EA063"},{"path":"/usr/lib/system/libsystem_platform.dylib","machType":6,"b":"7FFF6B643000","vmaddr":"7FFF673F9000","buildId":"009A7C1F313A318EB9F230F4C06FEA5C"},{"path":"/usr/lib/system/libsystem_pthread.dylib","machType":6,"b":"7FFF6B64C000","vmaddr":"7FFF67402000","buildId":"62CB1A980B8F31E7A02BA1139927F61D"}]}}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"10BA5DB9C","b":"1098F2000","o":"216BB9C","s":"_ZN5mongo18stack_trace_detail12_GLOBAL__N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE","s+":"10C"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"10BA5F2A8","b":"1098F2000","o":"216D2A8","s":"_ZN5mongo15printStackTraceEv","s+":"28"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"10BA5CDDB","b":"1098F2000","o":"216ADDB","s":"_ZN5mongo12_GLOBAL__N_116abruptQuitActionEiP9__siginfoPv","s+":"BB"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"7FFF6B6465FD","b":"7FFF6B643000","o":"35FD","s":"_sigtramp","s+":"1D"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"0"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"7FFF6B51C808","b":"7FFF6B49D000","o":"7F808","s":"abort","s+":"78"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"10BA442D7","b":"1098F2000","o":"21522D7","s":"_ZN5mongo25fassertFailedWithLocationEiPKcj","s+":"197"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"1099BF6FB","b":"1098F2000","o":"CD6FB","s":"_ZN5mongo12_GLOBAL__N_141mdb_handle_error_with_startup_suppressionEP18__wt_event_handlerP12__wt_sessioniPKc","s+":"1FB"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"109B2AAE7","b":"1098F2000","o":"238AE7","s":"__eventv","s+":"607"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"109B2AD66","b":"1098F2000","o":"238D66","s":"__wt_panic_func","s+":"FD"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"109A4659E","b":"1098F2000","o":"15459E","s":"__log_server","s+":"44E"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"7FFF6B652109","b":"7FFF6B64C000","o":"6109","s":"_pthread_start","s+":"94"}}}
    {"t":{"$date":"2021-11-24T17:22:16.641+08:00"},"s":"I", "c":"CONTROL", "id":31427, "ctx":"thread5","msg":" Frame: {frame}","attr":{"frame":{"a":"7FFF6B64DB8B","b":"7FFF6B64C000","o":"1B8B","s":"thread_start","s+":"F"}}}
    zsh: abort sudo ./mongod --dbpath ../db/
    Vegetable
        1
    Vegetable  
       2021-11-24 17:29:42 +08:00
    QGabriel
        2
    QGabriel  
    OP
       2021-11-24 17:41:05 +08:00
    @Vegetable 感谢!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5434 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:13 · PVG 16:13 · LAX 00:13 · JFK 03:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.