-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insufficient free space for journal files #9
Comments
Changing the |
@jareware instead of modifying the docker file you can run the container this way
|
I still don't understand why you need smallfiles. So, I'd vote for re-opening the issue. |
@davclark +1 |
I'm fairly certain my issue was caused by using boot2docker, which is surprising given the OP. Basically, A message that would have saved me some confusion would have been to print out a slightly more informative message with the approximate free space available. |
I increased my boot2docker hard drive to 60GB, and have no problem running this command
Apparently docker is imposing some incorrect limit on the |
I am getting the same error - it worked for me multiple times to run the container and now all off the sudden it decided to throw me this error without any apparent reason. |
Is anyone finding a proper solution for this, that does not require smallfiles? |
Happens also to me, with OS X and boot2docker 1.3.1. and Command-line is: And I get the error:
And:
UPDATE: So the solution for me was to set /mnt/sda1 as the volume for my docker volumes. |
this is my fig yml right now: db:
what should be the content of command??
Is this correct? |
@bicccio remove the s in commands
P.S. this is an ongoing issue that should probably get a fix. Shouldn't have to be using --smallfiles |
I mounted a directory from the host ex. |
I have the same problem in AWS EC2 with Amazon Linux. Even though I mounted a directory from the host as suggested by @eloone it doesn't work. |
Have the same problem with aws ec2, any update on this? |
I'm using the official image (https://registry.hub.docker.com/_/mongo/) now, no issues, very much recommended. |
Destroy and recreate the boot2docker VM and pull mongo:latest again, the issue disappears for now.
|
Still now fix for this? I have to resort to destroying and recreating my VM like @HaiLiang mentions, but after a while it happens again. --smallfiles didn't work either |
@michael-erasmus, have you tried the official image? |
I'm getting this on my Linux Fedora installation now. I just updated to docker-1.7.0-6.git74e7a7a.fc22.x86_64 which caused me to have to wipe out /var/lib/docker and set up some docker-storage like this:
And
Worked, many many times, but now it does not. "docker images" only shows 2 image (docker.io/node and docker.io/mongo) and "docker ps -a" only shows the named mongo container, which is not starting up:
Any clues? |
And docker info shows this:
Any help would be greatly appreciated. |
@jareware Running into the same issue on OS X with boot2docker and official mongo image |
I have issues with mongodb image using Docker Machine with VirtualBox VM, using small files setting. Makes no difference. |
@yosifkit's answer in this issue docker-library/mongo#51 fixed it for me |
Cleaning up tagged images (#51) to create more space might be a band-aid, but it doesn't explain root cause. |
LGTM |
Hi Guys am experiencing almost a similar problem. I really need a quick solution to this. I have dockerized mongodb and meteor and my mongodb image is 309mb but my container is increasing size with a 1 gig everyday. Hoe can i overcome this problem? |
For me the problem was that I shut down my computer without shutting down the container properly. When starting the container an internal problem happened with the mongo. I SSH'ed into the machine and deleted a lock file and then the container started all right for me. |
My solution was to create a new docker-machine, with 30gb instead of 20gb |
I'm having the same issue on OSX, Docker Version 1.12.3-beta29.3 (13640), and tutum/mongodb, for what it's worth. The error on docker-compose up was: db_1 ... ERROR: Insufficient free space for journal files Since I'm using the new(ish) Docker app, instead of the old approach, it's a little unclear at first glance how I'll do the rebuild workaround, and restarting the Docker app isn't helping. update: posting this in docker-library/mongo#51 ; please advise if this was not the right thing to do. |
Cleaning up my Docker data with these instructions fixed the issue, particularly removing unnecessary volumes. |
It seems the problem is only present in the 3.0 version of MongoDB. Switching to a 3.1 or later version corrects the problem. |
If someone stumbles on this issue more recently: Note that since mongo 3.2 the default storage engine is wiredTiger, which does not have smallfiles config, but it seems, as noted above, that mongo version 3.1+ solves the problem anyway. |
Seeing persistent errors that there's not enough space. This is a common issue in MongoDB prior to 3.0[1]. Setting the --smallfiles flag addressed the problem. [1]: dockerfile/mongodb#9
I'm having trouble starting the image on Ubuntu:
...though it runs fine in a
boot2docker
box for example.Any ideas? I was under the impression the default container virtual size limit was around 10 GB, though I'm having a hard time finding a source for that...
The text was updated successfully, but these errors were encountered: