Skip to content
Tyler Mulligan edited this page May 10, 2014 · 1 revision

Troubleshooting

If you get the following error:

pymongo.errors.ConnectionFailure: could not connect to localhost:27017: [Errno 111] Connection refused

It’s because you don’t have enough free space (cat /var/log/mongodb/mongodb.log)

To resolve this, you can run mongodb with the --smallfiles flag, using the following command:

sudo mongod --smallfiles

Clone this wiki locally