I have a database with 10 million records. I executed command to create index:

```
db.web_tech.createIndex({"applications.name":1}).

```

After one minute of execution it gives me error:

> 
> 2017-02-11T06:57:24.839+0000 W NETWORK [thread1] Failed to connect to
>  /opt/bitnami/mongodb/tmp/mongodb-27017.sock:0, in(connect), reason:
>  Connection refused.
> 
> 
> 

When I am trying to login to mongodb it is not allowing me to login.

I am running MongoDB on Ubuntu.