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

Unable to start with error "../loki-local-config.yaml: no such file or directory" #68

Closed
coolbrg opened this issue Dec 12, 2018 · 3 comments
Assignees

Comments

@coolbrg
Copy link

coolbrg commented Dec 12, 2018

Hi,

I was following the Run locally using Docker instructions and hit by this first issue of file not found.

$ docker run --name loki --network=loki -p 3100:3100 --volume "$PWD/docs:/etc/loki" grafana/loki:master -config.file=/etc/loki/loki-local-config.yaml
level=error ts=2018-12-12T09:54:40.816954563Z caller=main.go:28 msg="error loading config" filename=/etc/loki/loki-local-config.yaml err="Error reading config file: open /etc/loki/loki-local-config.yaml: no such file or directory"

Observation

When I cd into locally cloned repo of loki, I am able to start.
I was under assumption that I can start from any place like $HOME.

@daniellee
Copy link
Contributor

Loki and promtail need config files - so you have to map them in somewhere. I will update the docs to be more clear on this point - thanks for reporting this!

@coolbrg
Copy link
Author

coolbrg commented Dec 12, 2018

@daniellee Please verify #69.

coolbrg added a commit to coolbrg/loki that referenced this issue Dec 12, 2018
@tomwilkie
Copy link
Contributor

I've removed the raw docker instructions and tested that this works with compose. I also moved the config into the container. This should be fixed.

periklis added a commit to periklis/loki that referenced this issue Dec 2, 2022
Update from upstream repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants