Skip to content
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

volume bind not happening between local volume and /data (running in the container) #3503

Closed
sundeepk1 opened this Issue Nov 22, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@sundeepk1
Copy link

sundeepk1 commented Nov 22, 2017

sudo docker run -d -p 9090:9090 --name Prometheus-Monitoring -v ${PWD}/PROMETHEUS:/etc/prometheus/ -v ${PWD}/PROMETHEUS/PROMETHEUS_DATA:/data prom/prometheus:v2.0.0 --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/data -- --log.level=debug

docker logs Prometheus-Monitoring

level=info ts=2017-11-22T09:41:37.973165405Z caller=main.go:215 msg="Starting Prometheus" version="(version=2.0.0, branch=HEAD, revision=0a74f98628a0463dddc90528220c94de5032d1a0)"
level=info ts=2017-11-22T09:41:37.973218201Z caller=main.go:216 build_context="(go=go1.9.2, user=root@615b82cb36b6, date=20171108-07:11:59)"
level=info ts=2017-11-22T09:41:37.973236133Z caller=main.go:217 host_details="(Linux 4.4.0-1038-aws #47-Ubuntu SMP Thu Sep 28 20:05:35 UTC 2017 x86_64 2b1e1a313ee6 (none))"
level=info ts=2017-11-22T09:41:37.975595301Z caller=web.go:380 component=web msg="Start listening for connections" address=0.0.0.0:9090
level=info ts=2017-11-22T09:41:37.975564318Z caller=main.go:314 msg="Starting TSDB"
level=error ts=2017-11-22T09:41:37.975793217Z caller=main.go:323 msg="Opening storage failed" err="open DB in /data: open /data/093999223: permission denied"
ubuntu@ip-10-0-0-32:~/CM/Docker-StandAlone$

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Nov 22, 2017

Dupe of #3480

@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Dec 4, 2017

@brian-brazil this is is dupe of #2939 and not #3480 right ?

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 4, 2017

Right you are. Must have had that bug open at the same time and gotten confused.

@jcomeaux

This comment has been minimized.

Copy link

jcomeaux commented Dec 18, 2017

I don't know about this being a dupe of #3480? I was having the exact same issue, and it was because I was missing the "REXRAY_PREEMPT=true" option on the rexray/ebs driver.

Posted my solution here: https://groups.google.com/forum/#!topic/prometheus-users/khALXM9NhYQ

...in case anybody else turns up with the cryptic error from main.go:323 😄

The root of the problem could have been more general though, as that "preempt" option on the rexray/ebs driver basically instructs to take the volume away from another node (and in my case, it was seeing the volume as in use?)

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 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.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.