Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDocker: unable to mount /prometheus #875
Comments
This comment has been minimized.
This comment has been minimized.
|
Hmm, not sure. Works for me with native Docker (not boot2docker) on Ubuntu Linux:
|
This comment has been minimized.
This comment has been minimized.
|
Volume are kind of special with boot2docker. Lot of problems about permissions. I will test it tonight. |
This comment has been minimized.
This comment has been minimized.
KoichiSenada
commented
Jul 8, 2015
|
I have the same bug with the latest Kitematic and Docker Hub Prom Prometheus
|
This comment has been minimized.
This comment has been minimized.
|
another test case on Mac/boot2docker 1.7.1:
|
This comment has been minimized.
This comment has been minimized.
|
Docker experts (like @discordianfish ), any insights here? |
This comment has been minimized.
This comment has been minimized.
|
I think I had the same/similar issue when trying to use sshfs to store prometheus metrics on. boot2docker and kitematic probably use some network filesystem as well, so probably the same issue. |
This comment has been minimized.
This comment has been minimized.
|
Was there any resolution here? If we need a filesystem that supports fsync then we should document that somewhere. |
This comment has been minimized.
This comment has been minimized.
|
I think we discussed this back then and the sentiment was that it's probably safe to ignore and other are doing the same, but we thought it only affected nfs which was deemed to be less of a problem. |
This comment has been minimized.
This comment has been minimized.
|
Okay, I'll close for now. If it comes up again we can discuss it. |
brian-brazil
closed this
Aug 20, 2015
This comment has been minimized.
This comment has been minimized.
|
The issue is closed, but I cannot find a solution in prior comments. Prometheus still does not work for me with a volume mount. Without an -v it all works just fine.
|
brian-brazil
reopened this
Aug 21, 2015
This comment has been minimized.
This comment has been minimized.
|
@rtoma It appears you need a filesystem that supports fsync, which is going to be a requirement for any database-type system such as prometheus. An strace will help you know exactly which syscall is failing. |
This comment has been minimized.
This comment has been minimized.
|
Since Prometheus is not a very consistent database anyway, I would say it should log a warning (once) on a failed fsync, but carry on and hope for the best. |
This comment has been minimized.
This comment has been minimized.
|
Alternatively, it could provide a |
This comment has been minimized.
This comment has been minimized.
Consistency at the application level isn't the same thing as consistency at the filesystem level. Mostly silently disabling a key safety feature could cause us problems and support hassle, we already seem to have quite a few users who are KILLing rather than TERMing prometheus, and a few reports of corruption so let's not add more noise to the mix. |
This comment has been minimized.
This comment has been minimized.
|
Then let's at least allow to override this. It prevents anyone on a docker/mac or network storage from using Prometheus. |
This comment has been minimized.
This comment has been minimized.
We first need to ask if that's a use case we want to support. There are more than a few users out there who'll blindly disable fsync without realising they no longer have a database they can rely on. I think the better question is why docker on mac doesn't support fsync. |
This comment has been minimized.
This comment has been minimized.
|
as mentioned in #875 (comment) it seemed to work on my mac. |
brian-brazil
added
the
question
label
Dec 16, 2015
This comment has been minimized.
This comment has been minimized.
|
It doesn't look like there's much we can safely do here, it's not practical to run any sort of stateful system on top of a filesystem that doesn't support fsync. I'd recommend using a more standard local filesystem rather than the more complex network ones. |
brian-brazil
closed this
Feb 29, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
rtoma commentedJul 3, 2015
Using boot2docker and docker 1.7.0.
Gets me this:
AFAIK this is result of LevelDB on a Virtualbox mount? Couldn't find a fix/workaround.
Any help welcome!