{"id":4034,"date":"2025-04-19T16:29:23","date_gmt":"2025-04-19T07:29:23","guid":{"rendered":"https:\/\/eternalsphere.net\/echoes\/?p=4034"},"modified":"2025-06-22T07:47:03","modified_gmt":"2025-06-21T22:47:03","slug":"lhkruj6rbutay6z","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2025\/04\/19\/lhkruj6rbutay6z\/","title":{"rendered":"MongoDB \u542f\u52a8\u5931\u8d25\u6848\u4f8b\u5206\u6790\uff1aExit Code 62 \u9519\u8bef\u8be6\u89e3\u4e0e setFeatureCompatibilityVersion \u7684\u9690\u85cf\u5751"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728\u4e00\u6b21 Rocket.Chat + MongoDB \u7684 Docker \u5347\u7ea7\u8fc7\u7a0b\u4e2d\uff0c\u9047\u5230 MongoDB \u65e0\u6cd5\u542f\u52a8\u5e76\u81ea\u52a8\u9000\u51fa\u7684\u95ee\u9898\u3002\u6700\u7ec8\u786e\u8ba4\uff0c\u662f\u56e0\u4e3a <strong>\u672a\u8bbe\u7f6e <code>setFeatureCompatibilityVersion<\/code>\uff08FCV\uff09\u5bfc\u81f4\u7684\u542f\u52a8\u5931\u8d25<\/strong>\u3002\u8fd9\u7bc7\u6587\u7ae0\u5c06\u5b8c\u6574\u8bb0\u5f55\u95ee\u9898\u65e5\u5fd7\u3001\u9519\u8bef\u5206\u6790\u4e0e\u89e3\u51b3\u8fc7\u7a0b\uff0c\u5e0c\u671b\u4e3a\u5927\u5bb6\u907f\u5751\u63d0\u4f9b\u53c2\u8003\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udde9 \u95ee\u9898\u73b0\u8c61<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u4f7f\u7528 Docker \u542f\u52a8 MongoDB 7.0 \u65f6\uff0c\u5bb9\u5668\u6ca1\u6709\u6b63\u5e38\u8fd0\u884c\uff0c\u800c\u662f\u7acb\u5373\u89e6\u53d1\u4e86 shutdown \u6d41\u7a0b\u3002\u65e5\u5fd7\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">jsonCopyEdit<code>{\"msg\":\"Shutting down the IndexBuildsCoordinator\"}\n{\"msg\":\"Shutting down the storage engine\"}\n{\"msg\":\"WiredTiger closed\"}\n{\"msg\":\"Now exiting\"}\n{\"msg\":\"Shutting down\",\"attr\":{\"exitCode\":62}}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u540e\u4e00\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">jsonCopyEdit<code>\"exitCode\":62\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2753 Exit Code 62 \u662f\u4ec0\u4e48\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>exitCode: 62<\/code> \u5728 MongoDB \u4e2d\u8868\u793a\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>EX_UNCAUGHT (62)<\/strong><br>MongoDB \u521d\u59cb\u5316\u8fc7\u7a0b\u4e2d\u53d1\u751f\u4e86\u672a\u6355\u83b7\u5f02\u5e38\uff08uncaught exception\uff09\uff0c\u5bfc\u81f4\u670d\u52a1\u7ec8\u6b62\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u8fd9\u610f\u5473\u7740\u914d\u7f6e\u6216\u6570\u636e\u5b58\u5728\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd0d \u95ee\u9898\u539f\u56e0\uff1a\u672a\u8bbe\u7f6e FCV\uff08setFeatureCompatibilityVersion\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ecf\u8fc7\u68c0\u67e5\uff0c\u53d1\u73b0\u662f <strong>\u5728\u5347\u7ea7 MongoDB \u5230 7.0 \u540e\uff0c\u672a\u8bbe\u7f6e <code>featureCompatibilityVersion<\/code>\uff08FCV\uff09<\/strong> \u5bfc\u81f4\u7cfb\u7edf\u62d2\u7edd\u542f\u52a8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u5347\u7ea7 MongoDB \u65f6\uff0c<strong>\u5fc5\u987b\u624b\u52a8\u8bbe\u7f6e\u7248\u672c\u517c\u5bb9\u6027<\/strong>\uff0c\u5426\u5219\u7cfb\u7edf\u4f1a\u56e0\u7248\u672c\u4e0d\u5339\u914d\u800c\u5d29\u6e83\u9000\u51fa\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 \u89e3\u51b3\u65b9\u6848<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ea\u9700\u5728 MongoDB \u8fd0\u884c\u65f6\u624b\u52a8\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">javascriptCopyEdit<code>db.adminCommand({\n  setFeatureCompatibilityVersion: \"7.0\",\n  confirm: true\n})\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6267\u884c\u6210\u529f\u540e\uff0cMongoDB \u5c06\u6b63\u5f0f\u542f\u7528 7.0 \u6240\u9700\u7684\u5185\u90e8\u7ed3\u6784\uff0c\u5e76\u80fd\u6b63\u5e38\u542f\u52a8\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0 \u6392\u67e5\u8def\u5f84\u5c0f\u7ed3<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u6b65\u9aa4<\/th><th>\u5185\u5bb9<\/th><\/tr><\/thead><tbody><tr><td>\u2705 \u67e5\u770b\u65e5\u5fd7<\/td><td>\u53d1\u73b0\u542f\u52a8\u8fc7\u7a0b\u4e2d\u76f4\u63a5\u89e6\u53d1 shutdown<\/td><\/tr><tr><td>\u2705 \u68c0\u67e5\u6302\u8f7d\u4e0e\u6743\u9650<\/td><td>\u65e0\u95ee\u9898\uff0c\u8bfb\u5199\u6b63\u5e38<\/td><\/tr><tr><td>\u2705 \u68c0\u67e5 <code>.lock<\/code> \u6587\u4ef6<\/td><td>\u65e0\u6b8b\u7559<\/td><\/tr><tr><td>\u2705 \u6000\u7591 WiredTiger \u6570\u636e\u635f\u574f<\/td><td>\u5426\u5b9a\uff0crepair \u65e0\u6548<\/td><\/tr><tr><td>\u2705 \u6700\u7ec8\u5b9a\u4f4d<\/td><td>\u7f3a\u5c11 FCV \u8bbe\u7f6e\uff0cMongoDB \u62d2\u7edd\u4ee5\u4e0d\u786e\u5b9a\u72b6\u6001\u542f\u52a8<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcd8 \u4e3a\u4ec0\u4e48\u9700\u8981\u624b\u52a8\u8bbe\u7f6e FCV\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MongoDB \u7684 <code>featureCompatibilityVersion<\/code> \u63a7\u5236\u6570\u636e\u5e93\u7684\u884c\u4e3a\u4e0e\u5185\u90e8\u7ed3\u6784\uff0c\u786e\u4fdd\u65b0\u7248\u672c\u542f\u52a8\u4e0d\u4f1a\u7834\u574f\u65e7\u6570\u636e\u7ed3\u6784\u3002\u5982\u679c\u6ca1\u6709\u8bbe\u7f6e\uff0c\u7cfb\u7edf\u5904\u4e8e\u201c\u4e0d\u786e\u5b9a\u7248\u672c\u72b6\u6001\u201d\uff0cMongoDB \u4f1a\u4e3a\u907f\u514d\u6570\u636e\u635f\u574f\u800c\u7ec8\u6b62\u8fd0\u884c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f MongoDB \u7684<strong>\u7248\u672c\u5b89\u5168\u4fdd\u62a4\u673a\u5236<\/strong>\uff0c\u5c24\u5176\u5728\u6d89\u53ca\u526f\u672c\u96c6\u6216\u5206\u7247\u96c6\u7fa4\u65f6\uff0c<strong>\u8bbe\u7f6e FCV \u662f\u5f3a\u5236\u8981\u6c42<\/strong>\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u270d \u7ed3\u8bed<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u6b21\u95ee\u9898\u8868\u9762\u4e0a\u662f Exit Code 62 \u7684\u5e38\u89c4\u9519\u8bef\uff0c\u4f46\u5b9e\u8d28\u4e0a\u662f\u4e00\u6b21<strong>\u5347\u7ea7\u6d41\u7a0b\u672a\u6267\u884c\u5173\u952e\u6b65\u9aa4<\/strong>\u7684\u95ee\u9898\u3002\u5982\u679c\u4f60\u4e5f\u5728\u4f7f\u7528 Docker \u5347\u7ea7 MongoDB\uff0c\u52a1\u5fc5\u8bb0\u5f97\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u2705 <strong>\u5347\u7ea7\u7248\u672c\u540e\uff0c\u6267\u884c <code>setFeatureCompatibilityVersion<\/code>\uff01<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u907f\u514d\u83ab\u540d\u5176\u5999\u7684\u542f\u52a8\u5931\u8d25\uff0c\u8282\u7701\u5927\u91cf\u6392\u67e5\u65f6\u95f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e00\u6b21 Rocket.Chat + MongoDB \u7684 Docker \u5347\u7ea7\u8fc7\u7a0b\u4e2d\uff0c\u9047\u5230 MongoDB \u65e0\u6cd5\u542f\u52a8\u5e76\u81ea\u52a8\u9000\u51fa\u7684\u95ee\u9898\u3002\u6700\u7ec8\u786e\u8ba4\uff0c\u662f\u56e0\u4e3a \u672a\u8bbe\u7f6e setFeatureCompatibilityVersion\uff08FCV\uff09\u5bfc\u81f4\u7684\u542f\u52a8\u5931\u8d25\u3002\u8fd9\u7bc7\u6587\u7ae0\u5c06\u5b8c\u6574\u8bb0\u5f55\u95ee\u9898\u65e5\u5fd7\u3001\u9519\u8bef\u5206\u6790\u4e0e\u89e3\u51b3\u8fc7\u7a0b\uff0c\u5e0c\u671b\u4e3a\u5927\u5bb6\u907f\u5751\u63d0\u4f9b\u53c2\u8003\u3002 \ud83e\udde9 \u95ee\u9898\u73b0\u8c61 \u5728\u4f7f\u7528 Docker \u542f\u52a8 MongoDB 7.0 \u65f6\uff0c\u5bb9\u5668\u6ca1\u6709\u6b63\u5e38\u8fd0\u884c\uff0c\u800c\u662f\u7acb\u5373\u89e6\u53d1\u4e86 shutdown \u6d41\u7a0b\u3002\u65e5\u5fd7\u5982\u4e0b\uff1a jsonCopyEdit{&#8220;msg&#8221;:&#8221;Shutting down the IndexBuildsCoordinator&#8221;} {&#8220;msg&#8221;:&#8221;Shutting down the storage engine&#8221;} {&#8220;msg&#8221;:&#8221;WiredTiger closed&#8221;} {&#8220;msg&#8221;:&#8221;Now exiting&#8221;} {&#8220;msg&#8221;:&#8221;Shutting down&#8221;,&#8221;attr&#8221;:{&#8220;exitCode&#8221;:62}} \u6700\u540e\u4e00\u884c\uff1a jsonCopyEdit&#8221;exitCode&#8221;:62 \u2753 Exit Code 62 \u662f\u4ec0\u4e48\uff1f exitCode: 62 \u5728 MongoDB \u4e2d\u8868\u793a\uff1a EX_UNCAUGHT (62)MongoDB &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-4034","post","type-post","status-publish","format-standard","hentry","category-y8behyrmw-2lc"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/4034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=4034"}],"version-history":[{"count":2,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/4034\/revisions"}],"predecessor-version":[{"id":4358,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/4034\/revisions\/4358"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=4034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=4034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=4034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}