I installed and re-installed three times MongoDB 6.0.3 on Ubuntu 22.04. I enabled and start mongod without a problem. When I run mongosh I get a ECONNREFUSED:
connect ECONNREFUSED 127.0.0.1:27.017
I ran systemctl status mongod and it showed core-dump. The portions of interest that I think are:
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Fri 2023-01-06 09:46:02 CST; 21 min ago
Process: 20472 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code-dumped, signal=ILL)
mongod.service: Main process exited, code=dumped, status=4/ILL
mongod.service: Failed with result ‘core-dump’.
On another discussion I found that I should run the following commands:
grep avx /proc/cpuinfo
grep avx2 /proc/cpuinfo
If neither command print anything to the console, my CPU doesn’t support v5 and I should install v4. I’m actually installing v6, not v5, and nothing is returning from these commands. Does that mean my CPU doesn’t support MongoDB v6?
My CPU is a 12th Gen Intel Core i9-12900, 2400 Mhz, 16 Cores and I have 96 GB RAM.
This seems recent enough and not a low-cost/low-spec CPU. Indeed intel specifies this support avx2.
Is there any virtualisation involved? There may be setting to change on the hypervisor if there is.
If you are running directly on the hardware it possible that the extension/feature is disabled in the bios/uefi or kernel boot parameters(unlikely, but possible)
I’m running Ubuntu as guest on VirtualBox on a Windows host. On askubuntu.com I found that I should run on the Windows command line (C:\Program Files\oracle\VirtualBox):
Thank you. The link is what I needed. Now I have AVX2 and I also solved another problem I was having with Internet performance. My WIndows host had 1Gbps, but Ubuntu guest had only 30 Mbps. Now I get 900 Mbps on Ubuntu guest.