Please help with error on running sudo systemctl status mongod

Hello,
I’m a newbie trying to install MongoDB Community Edition on Ubuntu (20.04.3 LTS, focal). Upon running sudo systemctl status mongod , I got the following error:

     Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
     Active: failed (Result: core-dump) since Mon 2021-10-04 17:00:14 EDT; 11s ago
       Docs: https://docs.mongodb.org/manual
    Process: 30695 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL)
   Main PID: 30695 (code=dumped, signal=ILL)

Oct 04 17:00:13 MattSFF systemd[1]: Started MongoDB Database Server.
Oct 04 17:00:14 MattSFF systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
Oct 04 17:00:14 MattSFF systemd[1]: mongod.service: Failed with result 'core-dump'. 

Before doing so, I followed the installation instructions. I did not modify any ulimit settings, since on "ulimit page’ it says

“If you installed MongoDB via a package manager such as yum or apt , the service file installed as part of your installation already contains these ulimit values.” (the required/suggested values for MongoDB).

I also did not change the user account nor touch the configuration file.

After encountering this error, I searched these forums and found a post about a similar problem, which suggested that a solution was to follow the " Uninstall MongoDB Community Edition" instructions here, and do a fresh resinstall, which I did. However, I am still getting the same error message.

For reference, this is the output of my config file:


# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
  dbPath: /var/lib/mongodb
  journal:
    enabled: true
#  engine:
#  wiredTiger:

# where to write logging data.
systemLog:
  destination: file
  logAppend: true
  path: /var/log/mongodb/mongod.log

# network interfaces
net:
  port: 27017
  bindIp: 127.0.0.1


# how the process runs
processManagement:
  timeZoneInfo: /usr/share/zoneinfo

#security:

#operationProfiling:

#replication:

#sharding:

## Enterprise-Only Options:

#auditLog:

#snmp:

Also, for reference, when I run ls -ld /var/lib/mongodb /var/log/mongodb/, this is the output:

drwxr-xr-x 2 mongodb mongodb 4096 Oct  4 16:59 /var/lib/mongodb
drwxr-xr-x 2 mongodb mongodb 4096 Oct  4 16:59 /var/log/mongodb/

Can anybody help me? Thank you!

ILL error may be due to unsupported CPU architecture

Check this link

Installation problem with activation failing on Ubuntu 18.04

Welcome to the MongoDB Community Forums @Matthew_Di_Micelli !`

As @Ramachandra_Tummala noted, ILL (“Illegal Instruction”) indicates that you are trying to run binaries in an environment where your CPU (or virtualised CPU) does not meet not meet the x86_64 microarchitecture requirements for MongoDB 5.0.

To help investigate further can you please:

  • Provide the output of /proc/cpuinfo
  • Confirm if your Ubuntu is running in a VM and if so, the host O/S and VM software versions

There are a few related discussions on the forums, for example:

Regards,
Stennie

Thank you Ramachandra and Stennie for your responses!

I will look into that link that Ramachandra sent me. I will also check out the links that Stennie included.

The following is the ouput of /proc/cpuinfo:

model name      : Intel(R) Core(TM)2 Duo CPU     E7600  @ 3.06GHz
stepping        : 10
microcode       : 0xa0b
cpu MHz         : 1866.873
cache size      : 3072 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
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 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti dtherm
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips        : 6118.03
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Duo CPU     E7600  @ 3.06GHz
stepping        : 10
microcode       : 0xa0b
cpu MHz         : 2960.631
cache size      : 3072 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
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 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti dtherm
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips        : 6118.03
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

(END)

My Ubuntu is running natively, not in a VM.

Thank you!

Hi @Matthew_Di_Micelli,

Unfortunately the Core 2 Duo E7600 CPU microarchitecture doesn’t meet the minimum requirements for MongoDB 5.0 packages. This CPU design is a few years earlier than the AVX (aka Sandy Bridge Extensions) which were first introduced by Intel in 2011.

I suggest trying to install MongoDB 4.4, as the 4.4 packages do not use the same compiler optimisations.

Alternatively you could get started with a MongoDB Atlas free tier cluster, which provides 512MB of data storage and is great for learning purposes.

Regards,
Stennie

1 Like

Stennie,

Thank you so much for your answer! I really appreciate your help!

1 Like

Hi @Stennie,

Where did you get this compatibility info from… could you share the source please. Is there any official documentation with this info, somewhere?

My CPU is Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz & I too am getting the same error as in the question. I’m trying to install MongoDB 5.0 on Ubuntu 20.04 LTS (focal).

Thank you.

Velan Chandrasekar

Please check the link x86_64 microarchitecture requirements above

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.