I am working with Mongodb Replica clusters.
I keep getting the following error. I got the same error 3-4 times in 2 weeks. I restarted the server via AWS and it worked for 4 5 days without any problems. But I need a complete solution.
Most of the things I’ve researched haven’t helped.
I did the installation from the mongodb documentation.
Mongodb is working fine now. Because I rebooted. But after 3 4 days it will give the same error again and when I type “mongo” I will not be able to connect.
when you run systemctl? You try to connect to localhost, shouldn’t be the same machine? Did you redacted something for security reasons? Sometimes redacted logs or output fools us and make analysis difficult.
Mongod received the kill signal so somebody or something is terminating it. What else run on this machine?
“Mongod received the kill signal so somebody or something is terminating it. What else run on this machine?”
Only mongodb (replicasets) is running on the machine.
“when you run systemctl? You try to connect to localhost, shouldn’t be the same machine? Did you redacted something for security reasons? Sometimes redacted logs or output fools us and make analysis difficult.”
Nothing has been changed for security reasons. I never changed the AWS Security group. 3 Servers are in the same security group.
I restarted 3 servers yesterday. It was working flawlessly.
Today I realized that I could not connect with Mongodb Compass and I made an SSH connection to the replica sets (my primary server) through the servers and these errors appeared again.
In addition;
The contents of the file /etc/mongod.conf
Unless your mongod is up and running you will not be able to connect by mongo shell or compass
Are the servers where you ran sudo systemctl and mongo command are same? steevej was asking why the prompts look different
ubuntu@ip-17x-3x-3x-110 vs ubuntu@ip-17x-3x-3x-11x
Could be a typo while redacting?
You will need to check your security logs to see if there are root or mongod logins, sudos? You may have third party monitoring tools that automatically kills big memory or CPU users.
Do you think this kill is related to “ulimit settings”?
You will need to check your security logs to see if there are root or mongod logins, sudos? You may have third party monitoring tools that automatically kills big memory or CPU users.