{"id":21675,"date":"2024-01-02T13:26:29","date_gmt":"2024-01-02T13:26:29","guid":{"rendered":"https:\/\/server.hk\/blog\/21675\/"},"modified":"2024-11-14T10:28:50","modified_gmt":"2024-11-14T02:28:50","slug":"how-to-fix-mongodb-error-code-82-noprogressmade","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/21675\/","title":{"rendered":"\u5982\u4f55\u4fee\u5fa9 MongoDB \u932f\u8aa4\u4ee3\u78bc &#8211; 82 &#8211; NoProgressMade"},"content":{"rendered":"<h1 id=\"how-to-fix-mongodb-error-code-82-noprogressmade-pMQcyWclLd\">\u5982\u4f55\u4fee\u5fa9 MongoDB \u932f\u8aa4\u4ee3\u78bc &#8211; 82 &#8211; NoProgressMade<\/h1>\n<p>MongoDB \u662f\u4e00\u500b\u6d41\u884c\u7684\u958b\u6e90 NoSQL \u6578\u64da\u5eab\uff0c\u63d0\u4f9b\u9ad8\u6027\u80fd\u3001\u53ef\u64f4\u5c55\u6027\u548c\u9748\u6d3b\u6027\u3002\u7136\u800c\uff0c\u50cf\u4efb\u4f55\u8edf\u4ef6\u4e00\u6a23\uff0c\u5b83\u53ef\u80fd\u6703\u9047\u5230\u53ef\u80fd\u5e72\u64fe\u5176\u6b63\u5e38\u904b\u4f5c\u7684\u932f\u8aa4\u3002\u5176\u4e2d\u4e00\u500b\u932f\u8aa4\u662f MongoDB \u932f\u8aa4\u4ee3\u78bc &#8211; 82 &#8211; NoProgressMade\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5011\u5c07\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u539f\u56e0\u4e26\u63d0\u4f9b\u89e3\u6c7a\u65b9\u6848\u4f86\u4fee\u5fa9\u5b83\u3002<\/p>\n<h2 id=\"understanding-mongodb-error-code-82-noprogressmade-pMQcyWclLd\">\u7406\u89e3 MongoDB \u932f\u8aa4\u4ee3\u78bc &#8211; 82 &#8211; NoProgressMade<\/h2>\n<p>MongoDB \u932f\u8aa4\u4ee3\u78bc &#8211; 82 &#8211; NoProgressMade \u767c\u751f\u5728 MongoDB \u64cd\u4f5c\u5728\u7279\u5b9a\u6642\u9593\u9650\u5236\u5167\u672a\u80fd\u53d6\u5f97\u4efb\u4f55\u9032\u5c55\u6642\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u767c\u751f\u5728\u9577\u6642\u9593\u904b\u884c\u7684\u64cd\u4f5c\u4e2d\uff0c\u4f8b\u5982\u7d22\u5f15\u69cb\u5efa\u6216\u5927\u578b\u6578\u64da\u9077\u79fb\u3002\u7576 MongoDB \u6aa2\u6e2c\u5230\u5728\u5141\u8a31\u7684\u6642\u9593\u5167\u6c92\u6709\u9032\u5c55\u6642\uff0c\u5b83\u6703\u62cb\u51fa\u6b64\u932f\u8aa4\u3002<\/p>\n<h2 id=\"possible-causes-of-mongodb-error-code-82-noprogressmade-pMQcyWclLd\">MongoDB \u932f\u8aa4\u4ee3\u78bc &#8211; 82 &#8211; NoProgressMade \u7684\u53ef\u80fd\u539f\u56e0<\/h2>\n<p>\u6b64\u932f\u8aa4\u53ef\u80fd\u6709\u5e7e\u500b\u6f5b\u5728\u539f\u56e0\uff1a<\/p>\n<ul>\n<li><strong>\u7cfb\u7d71\u8cc7\u6e90\u4e0d\u8db3\uff1a<\/strong>\u5982\u679c\u904b\u884c MongoDB \u7684\u7cfb\u7d71\u6c92\u6709\u8db3\u5920\u7684\u8cc7\u6e90\uff0c\u5982 CPU\u3001\u5167\u5b58\u6216\u78c1\u789f\u7a7a\u9593\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u64cd\u4f5c\u7de9\u6162\u6216\u505c\u6eef\uff0c\u5f9e\u800c\u5f15\u767c NoProgressMade \u932f\u8aa4\u3002<\/li>\n<li><strong>\u9396\u722d\u7528\uff1a<\/strong>MongoDB \u4f7f\u7528\u9396\u4f86\u78ba\u4fdd\u6578\u64da\u4e00\u81f4\u6027\u3002\u5982\u679c\u591a\u500b\u64cd\u4f5c\u722d\u7528\u540c\u4e00\u9396\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u6b7b\u9396\u60c5\u6cc1\uff0c\u5f9e\u800c\u5f15\u767c\u932f\u8aa4\u3002<\/li>\n<li><strong>\u7db2\u7d61\u554f\u984c\uff1a<\/strong>MongoDB \u7bc0\u9ede\u4e4b\u9593\u7684\u7db2\u7d61\u9023\u63a5\u7de9\u6162\u6216\u4e0d\u53ef\u9760\u53ef\u80fd\u6703\u5c0e\u81f4\u64cd\u4f5c\u505c\u6eef\uff0c\u9032\u800c\u5c0e\u81f4 NoProgressMade \u932f\u8aa4\u3002<\/li>\n<li><strong>\u786c\u4ef6\u6545\u969c\uff1a<\/strong>\u5982\u679c\u51fa\u73fe\u786c\u4ef6\u6545\u969c\uff0c\u4f8b\u5982\u78c1\u789f\u6545\u969c\u6216\u7db2\u7d61\u5361\u6545\u969c\uff0c\u53ef\u80fd\u6703\u5e72\u64fe MongoDB \u64cd\u4f5c\u4e26\u5c0e\u81f4\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2 id=\"fixing-mongodb-error-code-82-noprogressmade-pMQcyWclLd\">\u4fee\u5fa9 MongoDB \u932f\u8aa4\u4ee3\u78bc &#8211; 82 &#8211; NoProgressMade<\/h2>\n<p>\u8981\u89e3\u6c7a NoProgressMade \u932f\u8aa4\uff0c\u60a8\u53ef\u4ee5\u5617\u8a66\u4ee5\u4e0b\u89e3\u6c7a\u65b9\u6848\uff1a<\/p>\n<h3 id=\"1-check-system-resources-pMQcyWclLd\">1. \u6aa2\u67e5\u7cfb\u7d71\u8cc7\u6e90<\/h3>\n<p>\u78ba\u4fdd\u904b\u884c MongoDB \u7684\u7cfb\u7d71\u5177\u6709\u8db3\u5920\u7684\u8cc7\u6e90\u3002\u76e3\u63a7 CPU\u3001\u5167\u5b58\u548c\u78c1\u789f\u4f7f\u7528\u60c5\u6cc1\uff0c\u4ee5\u8b58\u5225\u4efb\u4f55\u74f6\u9838\u3002\u5982\u6709\u5fc5\u8981\uff0c\u8003\u616e\u5347\u7d1a\u786c\u4ef6\u6216\u512a\u5316\u8cc7\u6e90\u5206\u914d\u3002<\/p>\n<h3 id=\"2-optimize-queries-and-indexes-pMQcyWclLd\">2. \u512a\u5316\u67e5\u8a62\u548c\u7d22\u5f15<\/h3>\n<p>\u6aa2\u67e5\u60a8\u7684 MongoDB \u67e5\u8a62\u548c\u7d22\u5f15\u3002\u672a\u7d93\u512a\u5316\u7684\u67e5\u8a62\u6216\u7f3a\u5c11\u7d22\u5f15\u53ef\u80fd\u6703\u5c0e\u81f4\u64cd\u4f5c\u7de9\u6162\u3002\u4f7f\u7528 MongoDB \u7684 <code>explain()<\/code> \u65b9\u6cd5\u4f86\u5206\u6790\u67e5\u8a62\u57f7\u884c\u8a08\u5283\u4e26\u78ba\u5b9a\u6539\u9032\u7684\u5730\u65b9\u3002<\/p>\n<h3 id=\"3-increase-operation-timeouts-pMQcyWclLd\">3. \u589e\u52a0\u64cd\u4f5c\u8d85\u6642<\/h3>\n<p>\u5982\u679c\u5728\u9577\u6642\u9593\u904b\u884c\u7684\u64cd\u4f5c\u4e2d\u51fa\u73fe NoProgressMade \u932f\u8aa4\uff0c\u60a8\u53ef\u4ee5\u589e\u52a0\u64cd\u4f5c\u8d85\u6642\uff0c\u4ee5\u5141\u8a31\u66f4\u591a\u6642\u9593\u4f86\u5b8c\u6210\u3002\u8abf\u6574\u7279\u5b9a\u64cd\u4f5c\u7684 <code>maxTimeMS<\/code> \u53c3\u6578\u6216\u8003\u616e\u5c0d\u6e38\u6a19\u64cd\u4f5c\u4f7f\u7528 <code>noCursorTimeout<\/code> \u9078\u9805\u3002<\/p>\n<h3 id=\"4-check-network-connectivity-pMQcyWclLd\">4. \u6aa2\u67e5\u7db2\u7d61\u9023\u63a5<\/h3>\n<p>\u78ba\u4fdd MongoDB \u7bc0\u9ede\u4e4b\u9593\u7684\u7db2\u7d61\u9023\u63a5\u7a69\u5b9a\u53ef\u9760\u3002\u6aa2\u67e5\u662f\u5426\u5b58\u5728\u4efb\u4f55\u7db2\u7d61\u554f\u984c\uff0c\u4f8b\u5982\u9ad8\u5ef6\u9072\u6216\u6578\u64da\u5305\u4e1f\u5931\u3002\u5982\u6709\u5fc5\u8981\uff0c\u8003\u616e\u512a\u5316\u7db2\u7d61\u914d\u7f6e\u6216\u5347\u7d1a\u7db2\u7d61\u57fa\u790e\u8a2d\u65bd\u3002<\/p>\n<h3 id=\"5-monitor-and-troubleshoot-lock-contention-pMQcyWclLd\">5. \u76e3\u63a7\u548c\u6392\u67e5\u9396\u722d\u7528<\/h3>\n<p>\u5982\u679c\u9396\u722d\u7528\u5c0e\u81f4 NoProgressMade \u932f\u8aa4\uff0c\u8acb\u76e3\u63a7 MongoDB \u65e5\u8a8c\u4ee5\u67e5\u770b\u4efb\u4f55\u8207\u9396\u76f8\u95dc\u7684\u6d88\u606f\u3002\u8b58\u5225\u6d89\u53ca\u7684\u64cd\u4f5c\u4e26\u5206\u6790\u5176\u8cc7\u6e90\u4f7f\u7528\u6a21\u5f0f\u3002\u8003\u616e\u8abf\u6574\u4e26\u767c\u8a2d\u7f6e\u6216\u91cd\u65b0\u8a2d\u8a08\u61c9\u7528\u908f\u8f2f\uff0c\u4ee5\u6700\u5c0f\u5316\u9396\u722d\u7528\u3002<\/p>\n<h3 id=\"6-verify-hardware-health-pMQcyWclLd\">6. \u9a57\u8b49\u786c\u4ef6\u5065\u5eb7\u72c0\u6cc1<\/h3>\n<p>\u6aa2\u67e5\u904b\u884c MongoDB \u7684\u786c\u4ef6\u5065\u5eb7\u72c0\u6cc1\u3002\u76e3\u63a7\u78c1\u789f\u5065\u5eb7\u3001\u7db2\u7d61\u63a5\u53e3\u53ca\u5176\u4ed6\u786c\u4ef6\u7d44\u4ef6\u7684\u6545\u969c\u8de1\u8c61\u3002\u66f4\u63db\u4efb\u4f55\u6545\u969c\u7684\u786c\u4ef6\uff0c\u4ee5\u78ba\u4fdd\u5e73\u7a69\u904b\u884c\u3002<\/p>\n<h2 id=\"summary-pMQcyWclLd\">\u7e3d\u7d50<\/h2>\n<p>MongoDB \u932f\u8aa4\u4ee3\u78bc &#8211; 82 &#8211; NoProgressMade \u53ef\u80fd\u7531\u591a\u7a2e\u539f\u56e0\u5f15\u8d77\uff0c\u5305\u62ec\u7cfb\u7d71\u8cc7\u6e90\u4e0d\u8db3\u3001\u9396\u722d\u7528\u3001\u7db2\u7d61\u554f\u984c\u6216\u786c\u4ef6\u6545\u969c\u3002\u8981\u4fee\u5fa9\u6b64\u932f\u8aa4\uff0c\u5fc5\u9808\u6aa2\u67e5\u7cfb\u7d71\u8cc7\u6e90\u3001\u512a\u5316\u67e5\u8a62\u548c\u7d22\u5f15\u3001\u589e\u52a0\u64cd\u4f5c\u8d85\u6642\u3001\u78ba\u4fdd\u7db2\u7d61\u9023\u63a5\u3001\u76e3\u63a7\u548c\u6392\u67e5\u9396\u722d\u7528\uff0c\u4ee5\u53ca\u9a57\u8b49\u786c\u4ef6\u5065\u5eb7\u72c0\u6cc1\u3002<\/p>\n<p>\u5982\u679c\u60a8\u9047\u5230 MongoDB \u932f\u8aa4\u4ee3\u78bc &#8211; 82 &#8211; NoProgressMade\uff0c\u8acb\u8003\u616e\u9075\u5faa\u4e0a\u8ff0\u89e3\u6c7a\u65b9\u6848\u4f86\u89e3\u6c7a\u554f\u984c\uff0c\u78ba\u4fdd\u60a8\u7684 MongoDB \u6578\u64da\u5eab\u5e73\u7a69\u904b\u884c\u3002<\/p>\n<p>\u82e5\u9700\u53ef\u9760\u4e14\u9ad8\u6027\u80fd\u7684 VPS \u6258\u7ba1\u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8003\u616e <a href=\"https:\/\/server.hk\">Server.HK<\/a>\u3002\u6211\u5011\u7684\u6258\u7ba1\u670d\u52d9\u70ba\u904b\u884c MongoDB \u548c\u5176\u4ed6\u61c9\u7528\u7a0b\u5e8f\u63d0\u4f9b\u7406\u60f3\u74b0\u5883\uff0c\u78ba\u4fdd\u6700\u4f73\u6027\u80fd\u548c\u53ef\u64f4\u5c55\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4fee\u5fa9 MongoDB \u932f\u8aa4\u4ee3&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-21675","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=21675"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21675\/revisions"}],"predecessor-version":[{"id":23734,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21675\/revisions\/23734"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=21675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=21675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=21675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}