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

Docker container crash on boot #714

Closed
marcotuna opened this issue Jul 3, 2019 · 4 comments · Fixed by cortexproject/cortex#1492
Closed

Docker container crash on boot #714

marcotuna opened this issue Jul 3, 2019 · 4 comments · Fixed by cortexproject/cortex#1492
Labels
good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us!

Comments

@marcotuna
Copy link

marcotuna commented Jul 3, 2019

Hello, I am trying to run loki 0.1.0 in a docker container however it keeps crashing on boot.

docker run grafana/loki:v0.1.0

user@SRV:/home/manager# docker run grafana/loki:v0.1.0
level=info ts=2019-07-03T16:12:32.406462617Z caller=loki.go:125 msg=initialising module=server
level=info ts=2019-07-03T16:12:32.406775586Z caller=server.go:120 http=[::]:80 grpc=[::]:9095 msg="server listening on addresses"
level=info ts=2019-07-03T16:12:32.407069841Z caller=loki.go:125 msg=initialising module=overrides
level=info ts=2019-07-03T16:12:32.40713033Z caller=override.go:48 msg="per-tenant overides disabled"
level=info ts=2019-07-03T16:12:32.407148093Z caller=loki.go:125 msg=initialising module=table-manager
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0xfa49f9]

goroutine 1 [running]:
github.com/grafana/loki/vendor/github.com/cortexproject/cortex/pkg/chunk/storage.NewTableClient(0x1351139, 0x3, 0x0, 0x4000000000000000, 0x0, 0x0, 0x0, 0x186a0, 0x3ff4cccccccccccd, 0x13991a0, ...)
	/go/src/github.com/grafana/loki/vendor/github.com/cortexproject/cortex/pkg/chunk/storage/factory.go:160 +0x79
github.com/grafana/loki/pkg/loki.(*Loki).initTableManager(0xc0000bb800, 0xc0000a2a20, 0x7)
	/go/src/github.com/grafana/loki/pkg/loki/modules.go:193 +0xf7
github.com/grafana/loki/pkg/loki.(*Loki).initModule(0xc0000bb800, 0x7, 0x0, 0x0)
	/go/src/github.com/grafana/loki/pkg/loki/loki.go:127 +0x1be
github.com/grafana/loki/pkg/loki.(*Loki).init(0xc0000bb800, 0x8, 0xc000551378, 0x10)
	/go/src/github.com/grafana/loki/pkg/loki/loki.go:116 +0x7b
github.com/grafana/loki/pkg/loki.New(0x8, 0x1, 0x1351af9, 0x4, 0x0, 0x0, 0x50, 0x0, 0x0, 0x2387, ...)
	/go/src/github.com/grafana/loki/pkg/loki/loki.go:86 +0x15c
main.main()
	/go/src/github.com/grafana/loki/cmd/loki/main.go:60 +0x264

Any hints?
Thanks.

@cyriltovena
Copy link
Contributor

try

docker run grafana/loki:v0.1.0 -config.file=/etc/loki/local-config.yaml

No configuration is passed by default but one exist in the container.

@marcotuna
Copy link
Author

Hello @Kuqd, it worked.
Shouldn't this error be treated?
This misleads the end user when starting a new container from stratch.

@cyriltovena
Copy link
Contributor

cyriltovena commented Jul 4, 2019

Sure the fix is easy we could default to that path.

If someone want to take this one, it's a good one to get started.

@cyriltovena cyriltovena added good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! labels Jul 4, 2019
@sh0rez
Copy link
Member

sh0rez commented Jul 10, 2019

All changes merged.. Close?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants