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

Prometheus and grafana don't start as issue with permission denied #23

Open
guillermocol opened this issue May 6, 2022 · 1 comment

Comments

@guillermocol
Copy link

Hello community,
After running the steps described creating .env and the environmental variables and running docker-compose up -d prometheus and grafana keep restarting due to a permission denied issue. Do you know which user should have is prometheus:prometheus?

should be 99:99 1000:1000 prometheus:prometheus or something like that as looks like a chown permission issue?

Thank you for your help.
gcol

@guillermocol
Copy link
Author

Additional information below docker logs prometheus

evel=info ts=2022-05-06T09:50:13.765Z caller=main.go:684 msg="TSDB started"
level=info ts=2022-05-06T09:50:13.765Z caller=main.go:788 msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml
level=info ts=2022-05-06T09:50:13.765Z caller=main.go:535 msg="Stopping scrape discovery manager..."
level=info ts=2022-05-06T09:50:13.765Z caller=main.go:549 msg="Stopping notify discovery manager..."
level=info ts=2022-05-06T09:50:13.765Z caller=main.go:571 msg="Stopping scrape manager..."
level=info ts=2022-05-06T09:50:13.765Z caller=main.go:545 msg="Notify discovery manager stopped"
level=info ts=2022-05-06T09:50:13.765Z caller=main.go:531 msg="Scrape discovery manager stopped"
level=info ts=2022-05-06T09:50:13.765Z caller=main.go:565 msg="Scrape manager stopped"
level=info ts=2022-05-06T09:50:13.765Z caller=manager.go:882 component="rule manager" msg="Stopping rule manager..."
level=info ts=2022-05-06T09:50:13.765Z caller=manager.go:892 component="rule manager" msg="Rule manager stopped"
level=info ts=2022-05-06T09:50:13.770Z caller=notifier.go:598 component=notifier msg="Stopping notification manager..."
level=info ts=2022-05-06T09:50:13.770Z caller=main.go:738 msg="Notifier manager stopped"
level=error ts=2022-05-06T09:50:13.770Z caller=main.go:747 err="error loading config from "/etc/prometheus/prometheus.yml": couldn't load configuration (--config.file="/etc/prometheus/prometheus.yml"): open /etc/prometheus/prometheus.yml: permission denied"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant