Describe the bug
A clear and concise description of what the bug is.
I can't use promethues data
Version of Helm and Kubernetes:
helm v2.12.3
k8s: 1.11.8
Which chart:
prometheus-8.15.0
What happened:
[lifei@centos7 helm-playbooks]$ kubectl logs -f -n mon prometheus-server-5d8cb49b5f-7mwxq -c prometheus-server
level=info ts=2019-11-25T08:57:24.064Z caller=main.go:329 msg="Starting Prometheus" version="(version=2.11.1, branch=HEAD, revision=e5b22494857deca4b806f74f6e3a6ee30c251763)"
level=info ts=2019-11-25T08:57:24.064Z caller=main.go:330 build_context="(go=go1.12.7, user=root@d94406f2bb6f, date=20190710-13:51:17)"
level=info ts=2019-11-25T08:57:24.064Z caller=main.go:331 host_details="(Linux 4.14.56-1.el7.x86_64 #1 SMP Tue Jul 17 22:39:01 EDT 2018 x86_64 prometheus-server-5d8cb49b5f-7mwxq (none))"
level=info ts=2019-11-25T08:57:24.064Z caller=main.go:332 fd_limits="(soft=1048576, hard=1048576)"
level=info ts=2019-11-25T08:57:24.064Z caller=main.go:333 vm_limits="(soft=unlimited, hard=unlimited)"
level=info ts=2019-11-25T08:57:24.068Z caller=web.go:448 component=web msg="Start listening for connections" address=0.0.0.0:9090
level=info ts=2019-11-25T08:57:24.068Z caller=main.go:652 msg="Starting TSDB ..."
level=info ts=2019-11-25T08:57:24.070Z caller=main.go:521 msg="Stopping scrape discovery manager..."
level=info ts=2019-11-25T08:57:24.070Z caller=main.go:535 msg="Stopping notify discovery manager..."
level=info ts=2019-11-25T08:57:24.070Z caller=main.go:557 msg="Stopping scrape manager..."
level=info ts=2019-11-25T08:57:24.070Z caller=manager.go:776 component="rule manager" msg="Stopping rule manager..."
level=info ts=2019-11-25T08:57:24.070Z caller=manager.go:782 component="rule manager" msg="Rule manager stopped"
level=info ts=2019-11-25T08:57:24.070Z caller=main.go:517 msg="Scrape discovery manager stopped"
level=info ts=2019-11-25T08:57:24.070Z caller=notifier.go:602 component=notifier msg="Stopping notification manager..."
level=info ts=2019-11-25T08:57:24.071Z caller=main.go:531 msg="Notify discovery manager stopped"
level=info ts=2019-11-25T08:57:24.070Z caller=main.go:551 msg="Scrape manager stopped"
level=info ts=2019-11-25T08:57:24.071Z caller=main.go:722 msg="Notifier manager stopped"
level=error ts=2019-11-25T08:57:24.071Z caller=main.go:731 err="opening storage failed: lock DB directory: open /data/lock: permission denied"
What you expected to happen:
successfully use prometheus-server
How to reproduce it (as minimally and precisely as possible):
I use pvc(512Mi) to storage data which been mounted prometheus-server containers
Anything else we need to know:
please check the lock file permission.
I have sloved the probelm through chmod command
Hey @kiddingl , can you please help me, to which user/group did you give permission to. Also on which file as /lock is not present. I have already given chmod a+rwx /data.
Most helpful comment
Hey @kiddingl , can you please help me, to which user/group did you give permission to. Also on which file as /lock is not present. I have already given chmod a+rwx /data.