good morning
I installed mongodb on a virtual machine with centos 7 operating system.
I followed the guide on the mongodb site
Install MongoDB Community Edition on Red Hat or CentOS
When I run the command systemctl start mongod
gives me the following error
Job for mongod.service failed because a fatal signal was delivered to the control process. See “systemctl status mongod.service” and “journalctl -xe” for details.
The following command systemctl status mongod.service returns
Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Wed 2022-03-30 13:58:28 CEST; 5min ago
Docs: https://docs.mongodb.org/manual
Process: 52061 ExecStart = / usr / bin / mongod $ OPTIONS (code = killed, signal = ILL)
Process: 52058 ExecStartPre = / usr / bin / chmod 0755 / var / run / mongodb (code = exited, status = 0 / SUCCESS)
Process: 52055 ExecStartPre = / usr / bin / chown mongod: mongod / var / run / mongodb (code = exited, status = 0 / SUCCESS)
Process: 52053 ExecStartPre = / usr / bin / mkdir -p / var / run / mongodb (code = exited, status = 0 / SUCCESS)
Tue 30 13:58:28 mongodba systemd [1]: Starting MongoDB Database Server ...
Tue 30 13:58:28 mongodba systemd [1]: mongod.service: control process exited, code = killed status = 4
Tue 30 13:58:28 mongodba systemd [1]: Failed to start MongoDB Database Server.
Tue 30 13:58:28 mongodba systemd [1]: Unit mongod.service entered failed state.
Tue 30 13:58:28 mongodba systemd [1]: mongod.service failed.
while the journalctl -xe
Tue 30 13:58:12 mongodba crond [51736]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 25% if used.)
Tue 30 13:58:12 mongodba crond [51736]: (CRON) INFO (running with inotify support)
Tue 30 13:58:12 mongodba crond [51736]: (CRON) INFO (@reboot jobs will be run at computer's startup.)
Tue 30 13:58:12 mongodba systemd [1]: Reloading.
Tue 30 13:58:12 mongodba systemd [1]: Reloading.
Tue 30 13:58:12 mongodba systemd [1]: Stopped Dynamic System Tuning Daemon.
- Subject: Unit tuned.service has finished shutting down
- Defined-By: systemd
- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-
- Unit tuned.service has finished shutting down.
Tue 30 13:58:12 mongodba systemd [1]: Starting Dynamic System Tuning Daemon ...
- Subject: Unit tuned.service has begun start-up
- Defined-By: systemd
- Support: http:// lists.freedesktop . org /mailman/listinfo/systemd-devel
-
- Unit tuned.service has begun starting up.
Tue 30 13:58:13 mongodba systemd [1]: Started Dynamic System Tuning Daemon.
- Subject: Unit tuned.service has finished start-up
- Defined-By: systemd
- Support: http:/ / lists. freedesktop .org /mailman/listinfo/systemd-devel
-
- Unit tuned.service has finished starting up.
-
- The start-up result is done.
Mar 30 13:58:28 mongodba polkitd [51710]: Registered Authentication Agent for unix-process: 52047: 9623813 (system bus name: 1.100 [/ usr / bin / pkttyagent --notify-fd 5 --fallback], object path / org / freedesktop / P
Tue 30 13:58:28 mongodba systemd [1]: Starting MongoDB Database Server ...
- Subject: Unit mongod.service has begun start-up
- Defined-By: systemd
- Support: http: // lists .freedesktop . org/mailman/listinfo/systemd-devel
-
- Unit mongod.service has begun starting up.
Mar 30 13:58:28 mongodba kernel: traps: mongod [52061] trap invalid opcode ip: 55e8bac4e48a sp: 7ffd62f3cf30 error: 0 in mongod [55e8b6c5d000 + 513a000]
Tue 30 13:58:28 mongodba systemd [1]: mongod.service: control process exited, code = killed status = 4
Tue 30 13:58:28 mongodba systemd [1]: Failed to start MongoDB Database Server.
- Subject: Unit mongod.service has failed
- Defined-By: systemd
- Support: http: // lists .freedesktop .org/ mailman/listinfo/systemd-devel
-
- Unit mongod.service has failed.
-
- The result is failed.
Tue 30 13:58:28 mongodba systemd [1]: Unit mongod.service entered failed state.
Tue 30 13:58:28 mongodba systemd [1]: mongod.service failed.
Tue 30 13:58:28 mongodba polkitd [51710]: Unregistered Authentication Agent for unix-process: 52047: 9623813 (system bus name: 1.100, object path / org / freedesktop / PolicyKit1 / AuthenticationAgent, local en_US.U
Tue 30 14:01:01 mongodba systemd [1]: Started Session 31 of user root.
- Subject: Unit session-31.scope has finished start-up
- Defined-By: systemd
- Support: http :// lists. freedesktop .org/mailman/listinfo/systemd-devel
-
- Unit session-31.scope has finished starting up.
-
- The start-up result is done.
Tue 30 14:01:01 mongodba CROND [52972]: (root) CMD (run-parts /etc/cron.hourly)
Tue 30 14:01:01 mongodba run-parts (/etc/cron.hourly) [52975]: starting 0anacron
Mar 30 14:01:01 mongodba run-parts (/etc/cron.hourly) [52981]: finished 0anacron
the folders for the data are
/ var / lib / mongo (the data directory)
/ var / log / mongodb (the log directory)
and the permissions are correct
What could be causing the problem? How can I solve?
Thanks Alessio