Hello Everyone,
I have tried to make changes in the file /etc/mongod.conf for the location of dbpath and logpath making sure those folders exist.
When I start the service mongod it fails to start.
Can somebody help?
Thanks,
Ram.
Sat Feb 16 15:58:43 [initandlisten] MongoDB starting : pid=8692 port=27017 dbpat
h=/db/database/mongo 64-bit host=project.net
Sat Feb 16 15:58:43 [initandlisten] db version v2.2.3, pdfile version 4.5
Sat Feb 16 15:58:43 [initandlisten] git version: f570771a5d8a3846eb7586eaffcf4c2
f4a96bf08
Sat Feb 16 15:58:43 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.e
c2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
Sat Feb 16 15:58:43 [initandlisten] options: { config: "/etc/mongod.conf", dbpat
h: "/db/database/mongo", fork: "true", logappend: "true", logpath: "/db/log/mong
o/mongod.log", pidfilepath: "/var/run/mongodb/mongod.pid" }
Sat Feb 16 15:58:43 [initandlisten] exception in initAndListen: 10309 Unable to
create/open lock file: /db/database/mongo/mongod.lock errno:13 Permission denied
Is a mongod instance already running?, terminating
Sat Feb 16 15:58:43 dbexit:
Can you connect to the port that you are running mongod on? Simplest way to tell is with telnet:
$ telnet vmhostname 27017
(Except replace 27017 with the port number you used for mongod)
If you get connection refused, it's your system configuration problem, if not then you probably need to configure MongoVue to connect to correct port.
Try simple mongo shell from outside VM.
$ mongo vmhostname:27017
>
(Again use your specific port).
Asya