Problem with many services after installing and deleting mongodb.
Hi, good morning..
i was trying to install Mongodb4.0 i removed and reinstalled several times and then some services stopped and didn't work anymore…
i made some apt remove mongodb-org/ apt purge mongodb* and i don't know if i deleted some critical packages i tried to fix but seems nothing work…
When i reboot the linode i can see that many services aren't working like Postgresql, SSh, Fail2ban, snapd… https://www.dropbox.com/s/rx7znu18z47pj30/Captura%20de%20pantalla%202019-04-25%2011.59.12.png?dl=0
this is so.. weird and i'm starting to get scared.
can anyone help me on this? i could post my history about the things i made with mongo db until this started to happen.
any help is appreciated
thank you so much.
4 Replies
I'd try to investigate why these services are failing:
journalctl -b --no-pager -u sshd
journalctl -b --no-pager -u fail2ban
etc.
There may be more detailed info in service specific log files e.g.
less /var/log/fail2ban.log
tap G to scroll to the end.
Looks like MySQL did start, and your failures (in the screenshot) are of fail2ban and sshd.
PS - when un-installing stuff, better check what packages are going to be removed, apt-get
does tell you :)
Hi
i did it with postgres:
https://www.dropbox.com/s/teouuub531zbpk3/Captura%20de%20pantalla%202019-04-25%2013.34.23.png?dl=0
ssh:
https://www.dropbox.com/s/5njv2wb6wczrv46/Captura%20de%20pantalla%202019-04-25%2013.34.48.png?dl=0
fail2ban:
https://www.dropbox.com/s/n7fwog0d5lhwi54/Captura%20de%20pantalla%202019-04-25%2013.35.10.png?dl=0
less /var/log/fail2ban.log
https://www.dropbox.com/s/1s6jzg15qgzy6sm/Captura%20de%20pantalla%202019-04-25%2013.35.37.png?dl=0
/usr/sbin/sshd -T
https://www.dropbox.com/s/js9hfb5qwuc7ea6/Captura%20de%20pantalla%202019-04-25%2013.36.58.png?dl=0
thank you for your reply!
sshd is complaining about "missing privilege separation directory /var/run/sshd".
https://serverfault.com/questions/941855
Maybe you uninstalled package systemd-tmpfiles
somehow?
Please try to install that back, see apt says it's already installed - or actually downloads and installs it.
EDIT - systemd-tmpfiles
is part of base systemd
package, which must be installed. Maybe try to reinstall it using apt-get install --reinstall systemd
?
PS - I assume you're using Debian or Ubuntu?
PPS - it'd be more useful to share logs as text if you can so their content isn't clipped (if the issue continues are there are more logs to show).