You are not logged in.

#1 2015-04-08 15:33:16

Pacopag
Member
Registered: 2011-05-29
Posts: 287

[SOLVED] mongodb fails to start with exit status 4

Today I tried starting mongodb via systemctl and it would fail with exit status 4.  The issue turned out to be related to an upgrade from mongodb 2.6 to 3.0.  It took me a bit of digging and trial and error to get it running again, so I thought I should share the steps in case anyone else runs into this

1. Downgrade to 2.6 (using the latest 2.6.x you hopefully still have in the cache)

$ pacman -U /var/cache/pacman/pkg/mongodb-2.6.8-1-x86_64.pkg.tar.xz
$ systemctl start mongodb

2. Run authSchemaUpgrade

$ mongo
> db.adminCommand({authSchemaUpgrade: 1});

3. Upgrade mongdb

$ pacman -S mongodb

Hope this is helpful to someone.

Offline

Board footer

Powered by FluxBB