Unable to start MongoDB

185 views
Skip to first unread message

Ajay Bidyarthy

unread,
Mar 30, 2016, 12:50:57 PM3/30/16
to gce-discussion
Hi, 

I am unable to start the MongoDB. 

When I type mongo in console, it throw this error: 

Uttam@mongodb-gullak:~$ mongo
MongoDB shell version: 3.2.0
connecting to: /opt/bitnami/mongodb/tmp/mongodb-27017.sock:27017/test
2016-03-30T16:48:29.138+0000 W NETWORK  [thread1] Failed to connect to /opt/bitnami/mongodb/tmp/mongodb-27017.sock:0, reason: errno:13 Permission denied
2016-03-30T16:48:29.138+0000 E QUERY    [thread1] Error: couldn't connect to server /opt/bitnami/mongodb/tmp/mongodb-27017.sock:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:226:14
@(connect):1:6


Please help.

Thanks, 
Ajay

Faizan (Google Cloud Support)

unread,
Mar 30, 2016, 2:53:49 PM3/30/16
to gce-dis...@googlegroups.com
Hello Ajay,

From the error message it seems to be the user permission issue. Have you tried $ sudo mongo?

I hope that helps.

Faizan
Reply all
Reply to author
Forward
0 new messages