You are not logged in.
The package mongodb-bin 4.4.3-1 doesn't set the permissions to /var/lib/mongodb so that the new mongodb user can access it. This causes the service to fail.
To fix run:
chown -R mongodb:mongodb /var/lib/mongodb
Also there are no error logs available in systemctl and the service is disabled by default, but I guess these are a different topic.
Last edited by pakoti (2021-02-05 18:53:02)
Offline
and the service is disabled by default
Of course it is. This is Arch, not Ubuntu.
Offline
The permissions change is done by systemd-tmpfiles: https://aur.archlinux.org/cgit/aur.git/ … ?h=mongodb
Where it logs is up to upstream, and the service being disabled by default is normal on Arch.
Online