Reference:Mongo 5.0.0 crashes but 4.4.6 works #485
23 Ocak 2022
40 kişi değerlendirdi
1 yorum
{"2_bhnz":{"state":{"logo":{"href":"//yandex.com.tr","isForeign":true},"form":{"action":"/search","searchLabel":"Bul","hiddenInputs":[{"name":"lr","value":20815}]},"actions":{"advancedSearch":{"checked":false,"ariaLabel":"Gelişmiş arama"},"moreButtonProps":{"ariaLabel":"Daha fazla"},"cbir":{"name":"cbir","label":"Поиск по картинке","infoUrl":"//yandex.ru/promo/photosearch/index?source=landingdesk","isMacOS":false}},"userSection":{"loggedIn":false,"loginProps":{"loginUrl":"https://passport.yandex.com.tr/auth?retpath=%2F&origin=serp_desktop_auth_new","loginText":"Giriş yap","burgerAriaLabel":"Menü"}},"navigation":{"tabs":[{"id":"www","label":"Arama","url":"//yandex.com.tr","params":{"source":"tabbar"},"target":""},{"id":"images","label":"Görsel","url":"//yandex.com.tr/gorsel/search","params":{"text":"[$query]","noreask":"[$noreask]","nomisspell":"[$nomisspell]","parent-reqid":"[$reqid]","from":"tabbar"}},{"id":"video","label":"Video","url":"//yandex.com.tr/video/search","params":{"text":"[$query]","noreask":"[$noreask]","parent-reqid":"[$reqid]","from":"tabbar"}},{"id":"maps","label":"Haritalar","url":"//yandex.com.tr/harita","params":{"text":"[$query]","source":"serp_navig"}},{"id":"translate","label":"Çeviri","url":"//ceviri.yandex.com.tr","params":{"text":"[$query]","from":"tabbar"}}],"selectedTabId":"www"},"context":{"query":"mongodb 5.0+ requires a cpu with avx support, and your current system does not appear to have that","reqid":"1721382015776398-9059168982192814545-balancer-l7leveler-kubr-yp-vla-32-BAL","noreask":"1","lr":"20815","counters":{"type":"b","data":{"$header":"0_1qjtz000","logo":"0_1qjtz001","login":"0_1qjtz003","usermenu":"0_1qjtz004","market-cart":"0_1qjtz006","more-button":"0_1qjtz007","cbir":"0_1qjtz008","$navigation":"0_1qjtz009","item":"0_1qjtz00i","tab-www":"0_1qjtz00b","tab-images":"0_1qjtz00d","tab-video":"0_1qjtz00f","tab-maps":"0_1qjtz00h","tab-translate":"0_1qjtz00j"}}},"loggedIn":false,"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"0_1qjtw01-0-1"},"ui":"desktop","service":"web","reqid":"1721382015776398-9059168982192814545-balancer-l7leveler-kubr-yp-vla-32-BAL","fast":{"name":"header-desktop"}}}}},"type":"header-desktop"},"2_1qjt0":{"state":{"answersUrl":"https://stackoverflow.com/questions/70818543/mongo-db-deployment-not-working-in-kubernetes-because-processor-doesnt-have-avx#answers","type":"fact","tabsOptions":[{"id":"question","text":"Soru"},{"id":"bestAnswer","text":"En iyi yanıt"},{"id":"moreAnswers","text":"5 yanıt daha","shortText":"Daha fazla"}],"tabContents":{"question":{"construct":[{"type":"paragraph","content":[{"type":"text","content":"I am trying to deploy a "},{"type":"code","content":[{"type":"text","content":"mongo db"}],"isInline":true},{"type":"text","content":" deployment together with service, as follows:"}]},{"type":"code","content":[{"type":"text","content":"apiVersion: apps/v1"},{"type":"text","content":"kind: Deployment"},{"type":"text","content":"metadata:"},{"type":"text","content":" name: mongo-deployment"},{"type":"text","content":" labels:"},{"type":"text","content":" app: mongo"},{"type":"text","content":"spec:"},{"type":"text","content":" replicas: 1"},{"type":"text","content":" selector:"},{"type":"text","content":" matchLabels:"},{"type":"text","content":" app: mongo"},{"type":"text","content":" template:"},{"type":"text","content":" metadata:"},{"type":"text","content":" labels:"},{"type":"text","content":" app: mongo"},{"type":"text","content":" spec:"},{"type":"text","content":" containers:"},{"type":"text","content":" - name: mongo"},{"type":"text","content":" image: mongo:5.0"},{"type":"text","content":" ports:"},{"type":"text","content":" - containerPort: 27017"},{"type":"text","content":" env:"},{"type":"text","content":" - name: MONGO_INITDB_ROOT_USERNAME"},{"type":"text","content":" valueFrom:"},{"type":"text","content":" secretKeyRef:"},{"type":"text","content":" name: mongo-secret"},{"type":"text","content":" key: mongo-user"},{"type":"text","content":" - name: MONGO_INITDB_ROOT_PASSWORD"},{"type":"text","content":" valueFrom:"},{"type":"text","content":" secretKeyRef:"},{"type":"text","content":" name: mongo-secret"},{"type":"text","content":" key: mongo-password"},{"type":"text","content":"---"},{"type":"text","content":"apiVersion: v1"},{"type":"text","content":"kind: Service"},{"type":"text","content":"metadata:"},{"type":"text","content":" name: mongo-service"},{"type":"text","content":"spec:"},{"type":"text","content":" selector:"},{"type":"text","content":" app: mongo"},{"type":"text","content":" ports:"},{"type":"text","content":" - protocol: TCP"},{"type":"text","content":" port: 27017"},{"type":"text","content":" targetPort: 27017"}]},{"type":"paragraph","content":[{"type":"text","content":"Even though everything seems to be configured right and deployed, it gets to a "},{"type":"code","content":[{"type":"text","content":"CrashLoopBackOff"}],"isInline":true},{"type":"text","content":" state instead of "},{"type":"code","content":[{"type":"text","content":"Running"}],"isInline":true},{"type":"text","content":", using a "},{"type":"code","content":[{"type":"text","content":"kubectl logs \u003cdeployment-name>"}],"isInline":true},{"type":"text","content":" I get the following error:"}]},{"type":"code","content":[{"type":"text","content":"MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!"}]},{"type":"paragraph","content":[{"type":"text","content":"Does anybody know what to do?"}]}],"footerProps":{"date":1642891424,"numLiked":23,"numCommented":1}},"bestAnswer":{"construct":[{"type":"paragraph","content":[{"type":"text","content":"To solve this issue I had to run an older "},{"type":"code","content":[{"type":"text","content":"mongo-db"}],"isInline":true},{"type":"text","content":" docker image version (4.4.6), as follows:"}]},{"type":"code","content":[{"type":"text","content":"image: mongo:4.4.6"}]},{"type":"paragraph","content":[{"type":"text","content":"Reference:"}]},{"type":"paragraph","content":[{"type":"text","content":"Mongo 5.0.0 crashes but 4.4.6 works #485"}]}],"footerProps":{"date":1642891424,"numLiked":40,"numCommented":1}},"moreAnswers":[{"construct":[{"type":"paragraph","content":[{"type":"text","content":"The latest version that can work WITHOUT "},{"type":"code","content":[{"type":"text","content":"AVX"}],"isInline":true},{"type":"text","content":" is"}]},{"type":"code","content":[{"type":"text","content":[{"type":"text","color":"name","content":"image"},{"type":"text","content":": mongo:4.4.18"}]}]},{"type":"paragraph","content":[{"type":"text","content":"but if you are using it on a VPS, its worth a shot to contact their support, mine said that they changed the CPU type and that fixed the problem."}]}],"footerProps":{"date":1671810832,"numLiked":10,"numCommented":0}},{"construct":[{"type":"paragraph","content":[{"type":"text","content":"If you use Windows+VirtualBox this will resolve the issue:"}]},{"type":"code","content":[{"type":"text","content":"bcdedit /set hypervisorlaunchtype off"},{"type":"text","content":"DISM /Online /Disable-Feature:Microsoft-Hyper-V"}]},{"type":"paragraph","content":[{"type":"text","content":"perhaps host reboot required."}]}],"footerProps":{"date":1652796729,"numLiked":5,"numCommented":0}}]},"organic":{"faviconProps":{"src":"https://favicon.yandex.net/favicon/v2/https://stackoverflow.com","size":"m","pageNumber":0,"index":0},"title":"Mongo DB deployment not working in kubernetes because processor doesn't \u0007[have\u0007] \u0007[AVX\u0007] \u0007[support\u0007]","pathProps":{"items":[{"url":"https://stackoverflow.com/questions/70818543/mongo-db-deployment-not-working-in-kubernetes-because-processor-doesnt-have-avx","text":"stackoverflow.com"},{"url":"https://stackoverflow.com/questions/70818543/mongo-db-deployment-not-working-in-kubernetes-because-processor-doesnt-have-avx","text":"mongo-db-deployment-not-working-in-kubernetes-because-processor-doesnt-have-avx"}]},"faviconPosition":0,"subtitlePosition":1,"linkProps":{"url":"https://stackoverflow.com/questions/70818543/mongo-db-deployment-not-working-in-kubernetes-because-processor-doesnt-have-avx"},"hostTitle":"stackoverflow.com","description":""},"extralinksProps":{"hidden":true,"directions":["bottom-end"],"items":[{"variant":"reportFeedback","reportFeedback":{"feature":"Блок ответов для разработчиков","title":"Bu yanıtta yanlış olan nedir?","checkBoxLabels":[{"value":"Yanıt sorguya uygun değil"},{"value":"Yanıt hatalı"},{"value":"Yanıttaki bilgiler eksik"},{"value":"Diğer"}]}}]},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_1qjtw0f-0-1"},"ui":"desktop","service":"web","reqid":"1721382015776398-9059168982192814545-balancer-l7leveler-kubr-yp-vla-32-BAL","fast":{"name":"article"}}}}},"type":"article"},"2_1qjt1":{"state":{"linksGroups":[{"type":"geo","links":[{"label":"Columbus","title":"Columbus","url":"//yandex.com.tr/tune/geo","logNode":{"name":"region"},"target":"_self","a11yLabel":"Bölgeniz Columbus","needRetpath":true}]},{"type":"feedback","links":[{"label":"Hata bildir","logNode":{"name":"feedback","attrs":{"behaviour":{"type":"dynamic"}}}}]},{"type":"settings","links":[{"label":"Ayarlar","url":"//yandex.com.tr/tune/search","logNode":{"name":"settings"},"target":"_self","needRetpath":true}]},{"type":"company","links":[{"label":"Hakkımızda","url":"https://company.yandex.com.tr","logNode":{"name":"about"},"target":"_blank"},{"label":"Ticari teklifler","url":"/search/direct?text=mongodb+5.0++requires+a+cpu+with+avx+support%2C+and+your+current+system+does+not+appear+to+have+that&filters_docs=direct_cm","logNode":{"name":"commercial"},"target":"_blank"},{"label":"Kariyer","url":"//yandex.com.tr/jobs/?utm_source=serp_turkie&utm_medium=footerlink&utm_content=career","logNode":{"name":"vacancy"},"target":"_blank"},{"label":"Kullanım lisansı","url":"//yandex.com.tr/legal/termsofuse/","logNode":{"name":"license"},"target":"_blank"},{"label":"Gizlilik Politikası","url":"//yandex.com.tr/legal/confidential/","logNode":{"name":"confidential"},"target":"_blank"}],"a11yHidden":true}],"reportFeedbackProps":{"feature":"Подвал","title":"Hata bildir","checkBoxLabels":[]},"isSearchApp":false,"hasExtralinks":true,"limitingSelector":".AliceFabButton","baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_1qjtw0g-0-1"},"ui":"desktop","service":"web","reqid":"1721382015776398-9059168982192814545-balancer-l7leveler-kubr-yp-vla-32-BAL"}}}},"type":"serp-footer"},"2_1qjt2":{"state":{"conditionLoadList":{"marketCart":false,"highchartsHighstock":false,"advProductGallery":false,"musicPlayer":false,"ecomRates":false,"photoViewer":false,"easterEggModal":false,"darkmodeChangeDrawer":true},"reportFeedbackBaseProps":{"initEmail":"","metaFields":{"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","userTestids":"186144,1067664,1062603,1054384,1053380,1052826,1067169,1046719,1066320,1042349,1066380,1010209,1059417,1048639,1061632,744170,754534,1064763,1031194,1068811,936723,1063114,1062081,1062357,1059542,1068710,1066057,1061209,1055871,1067479,1058040,1045124,1036352,1060647,1007956,1056358,120692,1058155,1068473,1053210,1065622,263461,255406,1037487,461652,1063819,1067851,1002327,1067934,1059893,1065202,89889,1064228,151171,13962,287509,1055646,338390,1006026,1065994,1066126,1054352,1047584,1051466,912287","yandexuid":"6448153391721382015","uid":"0","queryText":"mongodb 5.0+ requires a cpu with avx support, and your current system does not appear to have that","reqid":"1721382015776398-9059168982192814545-balancer-l7leveler-kubr-yp-vla-32-BAL","searchSlices":["drawer_search_slice_english","drawer_search_slice_cs"],"userRegionName":"Columbus","userRegionId":"20815"}},"extralinksPopupProps":{"abuseLink":"https://twitter.yandex.com.tr/search/abuse?sign=505716ebacadeecb5ffc6a1ac9739709&keyno=0"},"isLoggedIn":false,"userMenuDialogProps":{"flag":"skin,feedback","host":"yandex.com.tr","lang":"tr","project":"serp","queryParams":{"utm_source":"search"},"retpath":"https%3A%2F%2Ftwitter.yandex.com.tr%2Fsearch%3Flr%3D20815%26noreask%3D1%26rnd%3D7545%26rq%3D1%26serp-reload-from%3Drec_bottom%26source%3Dtabbar%26text%3Dmongodb%2B5.0%252B%2Brequires%2Ba%2Bcpu%2Bwith%2Bavx%2Bsupport%252C%2Band%2Byour%2Bcurrent%2Bsystem%2Bdoes%2Bnot%2Bappear%2Bto%2Bhave%2Bthat%26ncrnd%3D13550","tld":"com.tr"},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_1qjtw0h-0-1"},"ui":"desktop","service":"web","reqid":"1721382015776398-9059168982192814545-balancer-l7leveler-kubr-yp-vla-32-BAL","fast":{"name":"lazy-load"}}}}},"type":"lazy-load"}}