The cause of the problem may be that the version of MongoDB you are running requires the system to support the AVX instruction set, and the CPU in the...
When I would only add avx as aCPU_FLAGS_X86, it wants to rebuild a whole lot of packages, so the flagging does work ;) That's why I included the whole list, and now emerge only wants to doMongoDB again.
Reference:Mongo 5.0.0 crashes but 4.4.6 works #485
23 Ocak 2022
39 kişi değerlendirdi
1 yorum
{"2_l9n5":{"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":"Görsele göre arama","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","fixedQuery":"mongodb 5.0 requires a cpu with avx support, and your current system does not appear to have that","reqid":"1726393723801930-12638558704596240296-balancer-l7leveler-kubr-yp-sas-182-BAL","lr":"20815","counters":{"type":"b","data":{"$header":"0_afpoz000","logo":"0_afpoz001","login":"0_afpoz003","usermenu":"0_afpoz004","market-cart":"0_afpoz006","more-button":"0_afpoz007","cbir":"0_afpoz008","$navigation":"0_afpoz009","item":"0_afpoz00i","tab-www":"0_afpoz00b","tab-images":"0_afpoz00d","tab-video":"0_afpoz00f","tab-maps":"0_afpoz00h","tab-translate":"0_afpoz00j"}}},"loggedIn":false,"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"0_afpow01-0-1"},"ui":"desktop","service":"web","reqid":"1726393723801930-12638558704596240296-balancer-l7leveler-kubr-yp-sas-182-BAL","fast":{"name":"header-desktop"}}}}},"type":"header-desktop"},"2_afpo0":{"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":39,"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":11,"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":"stackoverflow.com › mongo-db-deployment-not-working-in-kubernetes-because-processor-doesnt-have-avx"},"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_afpow0f-0-1"},"ui":"desktop","service":"web","reqid":"1726393723801930-12638558704596240296-balancer-l7leveler-kubr-yp-sas-182-BAL","fast":{"name":"article"}}}}},"type":"article"},"2_afpo1":{"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%205.0%20requires%20a%20cpu%20with%20avx%20support%2C%20and%20your%20current%20system%20does%20not%20appear%20to%20have%20that&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_afpow0g-0-1"},"ui":"desktop","service":"web","reqid":"1726393723801930-12638558704596240296-balancer-l7leveler-kubr-yp-sas-182-BAL"}}}},"type":"serp-footer"},"2_afpo2":{"state":{"conditionLoadList":{"marketCart":false,"highchartsHighstock":false,"advProductGallery":false,"musicPlayer":false,"ecomRates":false,"photoViewer":false,"easterEggModal":false,"easterEggPlusGamesModal":false,"futurisFeedbackLoader":false,"darkmodeChangeDrawer":true},"reportFeedbackBaseProps":{"initEmail":"","metaFields":{"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","userTestids":"1057327,470238,186144,1087953,1094197,1106040,1107393,1112085,1110819,1107282,1109514,1111112,1101325,1106431,1109115,1112526,1112152,1106906,1031785,1106104,1106423,1105613,182561,1112159,1112577,1112945,1113456,1106626,1111986,1107978,1111160,1111773,1110332,1007957,1102453,1105751,132360,1103971,1097907,1107795,1105916,1101291,1097122,1102567,1109377,461652,1111513,1108360,1109407,1109513,1107521,1101809,1103313,1102550,19996,1113502,46453,1107616,1112902,850909,151171,1106126,1100497,1069988,13962,287509,338390,1006734,1103877,1106255,1113183,1110421,1112874,1091204,1111191,1083582,1109741","yandexuid":"1962402961726393723","uid":"0","queryText":"mongodb 5.0 requires a cpu with avx support, and your current system does not appear to have that","reqid":"1726393723801930-12638558704596240296-balancer-l7leveler-kubr-yp-sas-182-BAL","searchSlices":["drawer_search_slice_english","drawer_search_slice_cs"],"userRegionName":"Columbus","userRegionId":"20815","isChildAccount":false}},"extralinksPopupProps":{"abuseLink":"https://twitter.yandex.com.tr/search/abuse?sign=3b775233941417d354344b658e98877a&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%2F%3Ffilters_docs%3Ddirect_cm%26lr%3D20815%26text%3Dmongodb%2B5.0%2B%2Brequires%2Ba%2Bcpu%2Bwith%2Bavx%2Bsupport%252C%2Band%2Byour%2Bcurrent%2Bsystem%2Bdoes%2Bnot%2Bappear%2Bto%2Bhave%2Bthat%26ncrnd%3D31772","tld":"com.tr"},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_afpow0h-0-1"},"ui":"desktop","service":"web","reqid":"1726393723801930-12638558704596240296-balancer-l7leveler-kubr-yp-sas-182-BAL","fast":{"name":"lazy-load"}}}}},"type":"lazy-load"}}