Illegal instruction (core dumped) error when running mongodb 6.0.19 amd64 in Ubuntu 22.04 x64

I recent installed mongodb 6.0.19 using the repo found at ```
MongoDB Repositories jammy/mongodb-org/6.0


I'm running Ubuntu 22.04 x64. lscpu output is:

> Architecture:             x86_64
>   CPU op-mode(s):         32-bit, 64-bit
>   Address sizes:          40 bits physical, 48 bits virtual
>   Byte Order:             Little Endian

file command output for mongod is:

> /usr/bin/mongod: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=7bbbe87135a29c2500e831ca56a81fec4f81c292, not stripped

Possibly your hardware doesn’t match the minimum CPU requirements.

2 Likes

I figured out that the default CPU in Proxmox is x86-64-v2-AES and is not compatible. I changed it to x86-64-v3 and it worked.

4 Likes