-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Error connecting to datasource: Data source connected, but no labels received. Verify that Loki and Promtail is configured properly. #271
Comments
Hi , i had similar issue , it appears to be the latest image tag , i.e image: master - always seems to break Loki datasource . Image: |
Refer doc |
make sure you use a recent loki config |
Have a same issue, nothing help for me. Pulled last images loki and promtail.
|
@wilful share the log of loki please. seems that promail part is normal. |
No message is displayed on the Loki side when Promtail starts.
|
I'm having same issue. If I access loki ip on port 3100 and url |
Hello, Error connecting to datasource: Data source connected, but no labels received. Verify that Loki and Promtail is configured properly. |
After 2 weeks of work, the problem returned. Have no idea what happened. UP. Nothing in logs. |
Hi all. You must mount the volume with logs describe in /etc/promtail/docker-config.yaml:
like this:
Check it! |
I seem to be hitting the same problem, to me the problems seems to be that if nothing has been logged for some time (maybe about 20 minutes) then all the logs disappear: Grafana shows the "no label received" error, and trying some API calls such as |
Ref to #430 Look like only label data was lost This error also happened with Loki Cloud. (UserID: 2315) |
Your first stop when you see this issue is the troubleshooting guide. If you're testing things on your laptop, and restart loki or promtail often, you'll face the problem that your low volume logs are already consumed before loki was ready to receive (start promtail a bit after loki), or promtail already pushed all logs (delete positions file to force a new push), or loki did not have time to flush what if indexed before you restarted it (need to push it again, probably by deleting positions file). We're still working on making this single-binary use case a bit smoother. It's worth noting that these issues wont affect production use of Loki: once it's running and replicated it can handle restarts without data loss. And if your apps keep producing logs, there will be labels. |
Closing this issue, seems to be related to some instability in the earlier versions of promtail/loki (which should hopefully be gone now) and miss-config (which there should hopefully be better docs and support for now) |
I'm still seeing this type of issue on a fresh install (using loki-stack chart v0.16.5). Sometimes the labels disappear, sometimes the logs disappear as well. Seems sporadic, didn't see anything in the logs to explain it. |
still seeing the same issue with loki/promtail v0.3.0 |
same issue here #1173 Is there any config can last loki labels for long time? |
Seeing issue also in loki/promtail v0.4.0
On Monday I got this:
Grafana says: "Error connecting to datasource: Data source connected, but no labels received. Verify that Loki and Promtail is configured properly." Service config from compose file:
loki local-config.yaml:
|
When that happens can you use logcli and query for recent logs ? It looks like a problem with docker compose or the local config, let’s move the discussion to the other issue #1173 Please give as much details, logs, config , how you send logs, etc... |
@leops I have the same problem with the latest docker images of loki and promtail on a swarm.
Returns |
I m hitting the same problem in loki+promtail v1.6.1, After replacing with loki+promtail v1.6.0 ,it disappeared |
For the posteriority: What fixed it for me was to make sure I had
|
您好,邮件已收到。。。我是郝海峰!
|
Thank you, the tenant_id should match the "X-Scope-OrgID" header in grafana. |
您好,邮件已收到。。。我是郝海峰!
|
I used the wrong namespace for promtail, so loki never was filled with data. -> grafana/helm-charts#1162 (comment) |
您好,邮件已收到。。。我是郝海峰!
|
Update from upstream repository
what should i do
i just update promtail-local-config.yaml and restart promtail service , it works not normal .but before update,it work normal
The text was updated successfully, but these errors were encountered: