linux - Starting database: mongod failed -
i fail install mongodb on server (ssh; linux-gnu). following trace:
reading package lists... done building dependency tree reading state information... done following packages installed: mongodb-org-mongos mongodb-org-server mongodb-org-tools following new packages installed: mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-tools 0 upgraded, 4 newly installed, 0 remove , 47 not upgraded. need 0 b/46.7 mb of archives. after operation, 149 mb of additional disk space used. selecting deselected package mongodb-org-server. (reading database ... 73280 files , directories installed.) unpacking mongodb-org-server (from .../mongodb-org-server_3.0.5_amd64.deb) ... selecting deselected package mongodb-org-mongos. unpacking mongodb-org-mongos (from .../mongodb-org-mongos_3.0.5_amd64.deb) ... selecting deselected package mongodb-org-tools. unpacking mongodb-org-tools (from .../mongodb-org-tools_3.0.5_amd64.deb) ... selecting deselected package mongodb-org. unpacking mongodb-org (from .../mongodb-org_3.0.5_amd64.deb) ... processing triggers man-db ... setting mongodb-org-server (3.0.5) ... starting database: mongod failed! invoke-rc.d: initscript mongod, action "start" failed. dpkg: error processing mongodb-org-server (--configure): subprocess installed post-installation script returned error exit status 1 setting mongodb-org-mongos (3.0.5) ... configured not write apport reports setting mongodb-org-tools (3.0.5) ... dpkg: dependency problems prevent configuration of mongodb-org: mongodb-org depends on mongodb-org-server; however: package mongodb-org-server not configured yet. dpkg: error processing mongodb-org (--configure): dependency problems - leaving unconfigured configured not write apport reports errors encountered while processing: mongodb-org-server mongodb-org e: sub-process /usr/bin/dpkg returned error code (1)
i have been following instructions official documentation.
i tried repair it, didn't help.
mongod --repair 2015-08-03t09:11:28.456+0200 storage [initandlisten] exception in initandlisten: 29 data directory /data/db not found., terminating 2015-08-03t09:11:28.456+0200 control [initandlisten] dbexit: rc: 100
i trying install locales, didn't help.
how can around , install mongodb? can error?
after installing mongodb (via homebrew) on yosemite, these instructions displayed:
to have launchd start mongodb @ login: ln -sfv /usr/local/opt/mongodb/*.plist ~/library/launchagents load mongodb now: launchctl load ~/library/launchagents/homebrew.mxcl.mongodb.plist or, if don't want/need launchctl, can run: mongod --config /usr/local/etc/mongod.conf
"/usr/local/etc/mongod.conf" contains "dbpath" argument. after reviewing file able start mongodb follows:
$ mongod --dbpath /usr/local/var/mongodb
on linux environment paths different, hope helps answer question , provides direction solve problem.
Comments
Post a Comment