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

getting-started docker compose file has error upon starting #13065

Closed
paul1r opened this issue May 29, 2024 · 1 comment
Closed

getting-started docker compose file has error upon starting #13065

paul1r opened this issue May 29, 2024 · 1 comment
Assignees

Comments

@paul1r
Copy link
Collaborator

paul1r commented May 29, 2024

Describe the bug
When starting docker-compose using the files in examples/getting-started, there is an error

ts=2024-05-29T06:44:56.887806714Z level=warn msg="could not transfer logs" component_path=/ component_id=loki.source.docker.flog_scrape target=docker/39b515f95b20876a207d1a6b773340322a7be345d5f1d726ded6e6765473b459 written=0 container=39b515f95b20876a207d1a6b773340322a7be345d5f1d726ded6e6765473b459 err="context canceled"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x39e1a70]

goroutine 425 [running]:
github.com/grafana/alloy/internal/component/loki/source/docker/internal/dockertarget.(*Target).Stop(0x4002478480)
	/src/alloy/internal/component/loki/source/docker/internal/dockertarget/target.go:238 +0x20
github.com/grafana/alloy/internal/component/loki/source/docker.(*tailer).Run(0x40024d5460, {0x8717cd0, 0x40024ae640})
	/src/alloy/internal/component/loki/source/docker/runner.go:116 +0x260
github.com/grafana/alloy/internal/runner.(*Runner[...]).ApplyTasks.func2()
	/src/alloy/internal/runner/runner.go:166 +0x98
created by github.com/grafana/alloy/internal/runner.(*Runner[...]).ApplyTasks in goroutine 188
	/src/alloy/internal/runner/runner.go:163 +0x490

To Reproduce
Steps to reproduce the behavior:

  1. Change to examples/getting-started
  2. Run docker compose up
  3. Observe error in the alloy container

Expected behavior
No errors

Environment:
Chip: M1
ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79
Docker version 25.0.5, build 5dc9bcc

Screenshots, Promtail config, or terminal output
If applicable, add any output to help explain your problem.

@paul1r
Copy link
Collaborator Author

paul1r commented May 29, 2024

@rea1shane , I was able to track down the issue, and it has been reported (and fixed).

We've adjusted the docker file appropriately a couple of hours ago, so you can either pull the latest version, or adjust the alloy image on this line to image: grafana/alloy:v1.0.0

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