Celeb Glow
news | April 01, 2026

MongoDB connection error AND Insufficient free space for journal files

I installed a VMWare Ubuntu 64-bit virtual machine and grunt with mongoDB.

Everything worked fine and one day when I typed "grunt serve" as always, I got:

Debugger listening on port 5858
Express server listening on 9000, in development mode
Running "wait" task
Waiting for server reload...
MongoDB connection error: MongoError: connect ECONNREFUSED 127.0.0.1:27017
Stopping Express server

After I typed mongod I got:

ERROR: Insufficient free space for journal files

I tried everything written in previous topics including reinstalling mongo and the whole VM. Adding --smallfiles in mongod.conf doesn't work as well. Also, when I type the df command the output suggests that I don't have any partition which is full.

df command output:

enter image description here

2 Answers

I suppose the MongoDB data directory is full. Please check the configuration file of MongoDB and find the data directory and see whether there is enough space in it.

4

Do you have apropriate rights to write to mongodb data directory - user which starts mongod has rights to write to mongodb data directory ?

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy