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

nil pointer deref during reconciliation with drift detection enabled #671

Closed
bdols opened this issue Apr 12, 2023 · 1 comment · Fixed by #672
Closed

nil pointer deref during reconciliation with drift detection enabled #671

bdols opened this issue Apr 12, 2023 · 1 comment · Fixed by #672
Labels
area/drift Drift detection/correction related issues and pull requests bug Something isn't working

Comments

@bdols
Copy link

bdols commented Apr 12, 2023

I suspended and resumed a HelmRelease to try to get a new installation to work and saw several errors in the logs:

{"level":"error","ts":"2023-04-11T13:59:57.778Z","msg":"Reconciler error","controller":"helmrelease","controllerGroup":"helm.toolkit.fluxcd.io","controllerKind":"HelmRelease","HelmRelease":{"name":"monitor-elastic-dev","namespace":"monitor-elastic"},"namespace":"monitor-elastic","name":"monitor-elastic-dev","reconcileID":"437f38d0-4c5a-46cb-b7d3-87ca0bf34eb0","error":"Helm install failed: timed out waiting for the condition","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:235"}
{"level":"error","ts":"2023-04-11T13:59:58.537Z","msg":"Reconciler error","controller":"helmrelease","controllerGroup":"helm.toolkit.fluxcd.io","controllerKind":"HelmRelease","HelmRelease":{"name":"monitor-elastic-dev","namespace":"monitor-elastic"},"namespace":"monitor-elastic","name":"monitor-elastic-dev","reconcileID":"c6f66a7a-b635-4459-88cc-9c43cc64698a","error":"panic: runtime error: invalid memory address or nil pointer dereference [recovered]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:235"}

I disabled drift detection and was able to proceed with the install.

@stefanprodan stefanprodan added bug Something isn't working area/drift Drift detection/correction related issues and pull requests labels Apr 12, 2023
@stefanprodan
Copy link
Member

Seems related to #669

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/drift Drift detection/correction related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants