You are not logged in.

#1 2021-02-05 18:52:33

pakoti
Member
Registered: 2021-02-05
Posts: 1

MongoDB bug - permissions not set

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

#2 2021-02-05 18:55:37

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: MongoDB bug - permissions not set

pakoti wrote:

and the service is disabled by default

Of course it is. This is Arch, not Ubuntu.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-02-05 18:55:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,539

Re: MongoDB bug - permissions not set

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.

Offline

Board footer

Powered by FluxBB