Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728688 - dev-db/mongodb-4.2.6 seems to ignore configuration file content
Summary: dev-db/mongodb-4.2.6 seems to ignore configuration file content
Status: RESOLVED DUPLICATE of bug 706252
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-18 19:11 UTC by Ralph Seichter
Modified: 2020-06-18 19:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/mongodb.conf (mongodb.conf,443 bytes, text/plain)
2020-06-18 19:13 UTC, Ralph Seichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Seichter 2020-06-18 19:11:31 UTC
MongoDB no longer starts after updating to ebuild version 4.2.6, neither via the OpenRC init script nor manually:

    root@wedjat # sudo -u mongodb -- /usr/bin/mongod --config /etc/mongodb.conf
    CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
    ASIO     [main] No TransportLayer configured during NetworkInterface startup
    CONTROL  [initandlisten] MongoDB starting : pid=5754 port=27017 dbpath=/data/db 64-bit host=wedjat
    CONTROL  [initandlisten] db version v4.2.6
    CONTROL  [initandlisten] git version: 20364840b8f1af16917e4c23c1b5f5efd8b352f8
    CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.1g  21 Apr 2020
    CONTROL  [initandlisten] allocator: tcmalloc
    CONTROL  [initandlisten] modules: none
    CONTROL  [initandlisten] build environment:
    CONTROL  [initandlisten]     distarch: x86_64
    CONTROL  [initandlisten]     target_arch: x86_64
    CONTROL  [initandlisten] options: { config: "/etc/mongodb.conf" }
    STORAGE  [initandlisten] exception in initAndListen: NonExistentPath: Data directory /data/db not found., terminating
    NETWORK  [initandlisten] shutdown: going to close listening sockets...
    -        [initandlisten] Stopping further Flow Control ticket acquisitions.
    CONTROL  [initandlisten] now exiting
    CONTROL  [initandlisten] shutting down with code:100

The odd part is that

    options: { config: "/etc/mongodb.conf" }

indicates that mongod is aware of a config file (world-readable in my case) is being passed, but that the contents like "dbPath" et al are apparently ignored.
Comment 1 Ralph Seichter 2020-06-18 19:13:42 UTC
Created attachment 645184 [details]
/etc/mongodb.conf
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-06-18 19:46:26 UTC
Thanks for this. I have a horrible feeling it's bug 706252 which has come bug to bite us.

*** This bug has been marked as a duplicate of bug 706252 ***