Open danielselbachtechofc opened 3 months ago
Olá, essa falha está relacionada a arquitetura de processador, conforme documentado no Fórum do MongoDB: https://www.mongodb.com/community/forums/t/setting-up-mongodb-v5-0-on-ubuntu-20-core-dump-status-4-ill/120705 - mande mais detalhes da saída da sua CPU: cat /proc/cpuinfo veja a documentação: https://www.mongodb.com/pt-br/docs/manual/administration/production-notes/ - (Infelizmente as versões novas do MongoDB tem várias incompatibildiade de Processadores e Máquinas Virtuais).
Entendi, o processador do laboratório em nuvem de uma empresa que contratei o lab, eles estão usando um processador Intel Core i7 10700k no servidor, segundo relatos deles, segue abaixo informação solicitada:
cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping : 3 microcode : 0x1 cpu MHz : 3791.998 cache size : 4096 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid tsc_known_freq pni cx16 popcnt hypervisor lahf_lm abm cpuid_fault pti bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown bhi bogomips : 7583.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping : 3 microcode : 0x1 cpu MHz : 3791.998 cache size : 4096 KB physical id : 1 siblings : 1 core id : 0 cpu cores : 1 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid tsc_known_freq pni cx16 popcnt hypervisor lahf_lm abm cpuid_fault pti bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown bhi bogomips : 7583.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping : 3 microcode : 0x1 cpu MHz : 3791.998 cache size : 4096 KB physical id : 2 siblings : 1 core id : 0 cpu cores : 1 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid tsc_known_freq pni cx16 popcnt hypervisor lahf_lm abm cpuid_fault pti bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown bhi bogomips : 7583.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping : 3 microcode : 0x1 cpu MHz : 3791.998 cache size : 4096 KB physical id : 3 siblings : 1 core id : 0 cpu cores : 1 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid tsc_known_freq pni cx16 popcnt hypervisor lahf_lm abm cpuid_fault pti bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown bhi bogomips : 7583.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
processor : 4 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping : 3 microcode : 0x1 cpu MHz : 3791.998 cache size : 4096 KB physical id : 4 siblings : 1 core id : 0 cpu cores : 1 apicid : 4 initial apicid : 4 fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid tsc_known_freq pni cx16 popcnt hypervisor lahf_lm abm cpuid_fault pti bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown bhi bogomips : 7583.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
processor : 5 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping : 3 microcode : 0x1 cpu MHz : 3791.998 cache size : 4096 KB physical id : 5 siblings : 1 core id : 0 cpu cores : 1 apicid : 5 initial apicid : 5 fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid tsc_known_freq pni cx16 popcnt hypervisor lahf_lm abm cpuid_fault pti bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown bhi bogomips : 7583.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
processor : 6 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping : 3 microcode : 0x1 cpu MHz : 3791.998 cache size : 4096 KB physical id : 6 siblings : 1 core id : 0 cpu cores : 1 apicid : 6 initial apicid : 6 fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid tsc_known_freq pni cx16 popcnt hypervisor lahf_lm abm cpuid_fault pti bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown bhi bogomips : 7583.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping : 3 microcode : 0x1 cpu MHz : 3791.998 cache size : 4096 KB physical id : 7 siblings : 1 core id : 0 cpu cores : 1 apicid : 7 initial apicid : 7 fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid tsc_known_freq pni cx16 popcnt hypervisor lahf_lm abm cpuid_fault pti bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown bhi bogomips : 7583.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
Olá olhando a saída do comando não achei a instrução (FLAG): AVX (Advanced Vector Extensions) https://pt.wikipedia.org/wiki/Advanced_Vector_Extensions que é utilizado pelo MongoDB desde a versão 5.x https://www.mongodb.com/community/forums/t/mongo-db-failed-unable-to-start-mongodb/124039 - qual o sistema de Virtualização está sendo usado, você sabe? (KVM, QEMU, ESXi, Docker, etc...) muitas vezes pode ser que essse recursos não está habilitado ou não está sendo transferidos para a VM, exemplo do meu processador com filtro de AVX (avx e avx2):
cat /proc/cpuinfo | grep -i avx processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 158 model name : Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz stepping : 10 microcode : 0xf6 cpu MHz : 1226.083 cache size : 8192 KB physical id : 0 siblings : 8 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 22 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
O comando "cat /proc/cpuinfo | grep -i avx" não retornou nenhuma informação, conforme demonstrado abaixo. Referente ao sistema de virtualização seria o QEMU, conforme mostrado também no comando abaixo.
cat /proc/cpuinfo | grep -i avx
cat /proc/cpuinfo | grep -i qemu model name : QEMU Virtual CPU version 1.0 model name : QEMU Virtual CPU version 1.0 model name : QEMU Virtual CPU version 1.0 model name : QEMU Virtual CPU version 1.0 model name : QEMU Virtual CPU version 1.0 model name : QEMU Virtual CPU version 1.0 model name : QEMU Virtual CPU version 1.0 model name : QEMU Virtual CPU version 1.0
Se estão usando QEMU muito provalmente estão usando o Proxmox-VE (ou outra solução de virtualização), conforme documentação do Fórum: https://www.mongodb.com/community/forums/t/installing-mongodb-5-0-on-a-qemu-vm/166192 - como isso é um proccesso Físico/Lógico de quem fornece a VM para você seria dificil eles resolverem, nesse caso é testar a versão 4.x pois as novas versões depende de várias FLAG's de processadores para funcionar de forma correta.
Pelo que conversei com eles, realmente, deve ser um Proxmox-VE, VMware, ou algum outro, mas fiz um teste no meu notebook, onde subi uma vm ubuntu 24.04 LTS no virtualbox e funcionou normal, consegui até concluir os desafios... Meu processador é AMD Ryzen 5 5500U. Vou postar agora nas redes sociais a conclusão do desafio, mas vou precisar ver com o suporte do lab em nuvem, pois quero subir um servidor graylog para fins de estudo e futura implantação num servidor local que montarei futuramente.
systemctl status mongod.service × mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: core-dump) since Fri 2024-08-02 19:21:20 -03; 5min ago Docs: https://docs.mongodb.org/manual Process: 5415 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL) Main PID: 5415 (code=dumped, signal=ILL) CPU: 7ms
sudo journalctl -t mongod.service -- No entries --
sudo cat /var/log/syslog | grep mongod.service Aug 2 19:16:21 headoffice systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL Aug 2 19:16:21 headoffice systemd[1]: mongod.service: Failed with result 'core-dump'. Aug 2 19:16:29 headoffice systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL Aug 2 19:16:29 headoffice systemd[1]: mongod.service: Failed with result 'core-dump'. Aug 2 19:16:32 headoffice systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL Aug 2 19:16:32 headoffice systemd[1]: mongod.service: Failed with result 'core-dump'. Aug 2 19:16:32 headoffice systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL Aug 2 19:16:32 headoffice systemd[1]: mongod.service: Failed with result 'core-dump'. Aug 2 19:19:13 headoffice systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL Aug 2 19:19:13 headoffice systemd[1]: mongod.service: Failed with result 'core-dump'. Aug 2 19:19:17 headoffice systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL Aug 2 19:19:17 headoffice systemd[1]: mongod.service: Failed with result 'core-dump'. Aug 2 19:19:17 headoffice systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL Aug 2 19:19:17 headoffice systemd[1]: mongod.service: Failed with result 'core-dump'. Aug 2 19:21:20 headoffice systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL Aug 2 19:21:20 headoffice systemd[1]: mongod.service: Failed with result 'core-dump'.
sudo cat /var/log/mongodb/mongod.log cat: /var/log/mongodb/mongod.log: No such file or directory
coredumpctl info PID: 12159 (mongod) UID: 116 (mongodb) GID: 123 (mongodb) Signal: 4 (ILL) Timestamp: Sat 2024-08-03 12:24:59 -03 (6s ago) Command Line: /usr/bin/mongod --config /etc/mongod.conf Executable: /usr/bin/mongod Control Group: /system.slice/mongod.service Unit: mongod.service Slice: system.slice Boot ID: 45fec4b0d5dc4b66af86bbeca41d6453 Machine ID: 22bbaaf76829466098b24855a5c9c6b8 Hostname: headoffice.pti.intra Storage: /var/lib/systemd/coredump/core.mongod.116.45fec4b0d5dc4b66af86bbeca41d6453.12159.1722698699000000.zst (> Disk Size: 557.7K Message: Process 12159 (mongod) of user 116 dumped core.