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

Loki read: unsupported protocol scheme #12179

Closed
taind772 opened this issue Mar 12, 2024 · 1 comment · Fixed by #12191
Closed

Loki read: unsupported protocol scheme #12179

taind772 opened this issue Mar 12, 2024 · 1 comment · Fixed by #12191
Labels
type/bug Somehing is not working as expected

Comments

@taind772
Copy link
Contributor

Describe the bug
Loki print error logs "unsupported protocol scheme":

level=error ts=2024-03-12T10:01:31.610156973Z caller=http.go:97 msg="error getting delete requests from the store" err="Get \"/loki/api/v1/delete\": unsupported protocol scheme \"\""

To Reproduce
Steps to reproduce the behavior:

  1. Started Loki (SHA or version): 2.9.4

Expected behavior
No error.

Environment:

  • Infrastructure: Kubernetes
  • Deployment tool: Helm
  • Deployment type: Simple scalable

Screenshots, Promtail config, or terminal output
image

@JStickler JStickler added the type/bug Somehing is not working as expected label Mar 12, 2024
@taind772
Copy link
Contributor Author

I think this error was caused by https://github.com/grafana/loki/blob/main/production/helm/loki/templates/_helpers.tpl#L877-L889.

According to the official document, compactor_address should look like http://host:port.
When using Helm, the default compactor_address was loki-backend.

helm template grafana/loki | yq 'select(.kind == "ConfigMap" and .metadata.name == "loki")'

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Somehing is not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants