Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565698 - dev-libs/mongodb-2.6.8: checkpath: mkdir: No such file or directory
Summary: dev-libs/mongodb-2.6.8: checkpath: mkdir: No such file or directory
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-13 18:24 UTC by Austin English (RETIRED)
Modified: 2016-03-24 16:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Austin English (RETIRED) gentoo-dev 2015-11-13 18:24:36 UTC
mongodb-2.6.8's conf.d file does not define MONGODB_RUN, causing an error when attempting to start the service:

austin1 ads # /etc/init.d/mongodb restart
 * Stopping mongodb ...
 * start-stop-daemon: no matching processes found                                                                                                                                       [ ok ]
 * : creating directory
 * checkpath: mkdir: No such file or directory
 * Starting mongodb ...     


adding:
MONGODB_RUN=/var/run/mongodb

to /etc/conf.d/monogdb avoids the issue.

This occurs because the initd uses $MONGODB_RUN before it is initialized (at the top of start() ):
start() {
        checkpath -d -m 0750 -o "${MONGODB_USER}":mongodb "${MONGODB_RUN}"

...
later
...
        start-stop-daemon --background --start --make-pidfile \
...
                --unixSocketPrefix ${MONGODB_RUN:-/var/run/mongodb} \


Reproducible: Always
Comment 1 Austin English (RETIRED) gentoo-dev 2015-11-13 22:45:57 UTC
MONGODB_USER should also be set, otherwise the directory is owned root:mongodb and mongodb still fails to start.
Comment 2 Austin English (RETIRED) gentoo-dev 2016-03-24 16:20:29 UTC
This was in an issue with a local overlay I had missed, apologies.