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

panic on k8s API timeouts #113

Closed
mazay opened this issue Jan 25, 2022 · 0 comments
Closed

panic on k8s API timeouts #113

mazay opened this issue Jan 25, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mazay
Copy link
Owner

mazay commented Jan 25, 2022

Describe the bug

{"@timestamp":"2022-01-25T05:08:05Z","app":"s3sync-service","level":"error","message":"etcdserver: request timed out","version":"devel"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x1555b77]

goroutine 29 [running]:
github.com/mazay/s3sync-service/service.(*Config).setDefaults(...)
	/go/src/github.com/mazay/s3sync-service/service/config.go:62
github.com/mazay/s3sync-service/service.readConfigString(0x0, 0x0, 0x7ffc805b7383)
	/go/src/github.com/mazay/s3sync-service/service/config.go:168 +0xb7
github.com/mazay/s3sync-service/service.getConfig(0xc000653eb8)
	/go/src/github.com/mazay/s3sync-service/service/config.go:133 +0xab
github.com/mazay/s3sync-service/service.Start.func1(0xc00007f260, 0xc00007f2c0, 0xc00007f200, 0xc00007f320, 0xc00007f1a0, 0xc00007f140, 0xc00007f0e0)
	/go/src/github.com/mazay/s3sync-service/service/main.go:181 +0x9a5
created by github.com/mazay/s3sync-service/service.Start
	/go/src/github.com/mazay/s3sync-service/service/main.go:158 +0x65f

To Reproduce
Steps to reproduce the behaviour:

  1. Run on k8s with configmap integration
  2. Take one of the k8s masters out (eg. reboot)
  3. See the above error

Expected behaviour
The app should keep running and properly handle API glitches.

Environment (please complete the following information):

  • OS: k3s
  • Version: v1.22.5+k3s1
@mazay mazay added the bug Something isn't working label Jan 25, 2022
@mazay mazay self-assigned this Jan 25, 2022
@mazay mazay closed this as completed in 51a0e00 Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant