Skip to content

Crashing in Kubernetes #848

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
tesharp opened this issue Dec 8, 2023 · 3 comments
Closed

Crashing in Kubernetes #848

tesharp opened this issue Dec 8, 2023 · 3 comments
Assignees
Labels
bug Something isn't working Kubernetes

Comments

@tesharp
Copy link

tesharp commented Dec 8, 2023

Tried to set up the AzureAppConfigurationProvider in AKS using the 1.0.0 release. After creating the first configuration the provider just starts crashing.

Not been able to sync any configurations so far. There are key vault references in the configuration

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x153cdfb]

goroutine 123 [running]:
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:119 +0x1fa
panic({0x16a2500, 0x2651990})
        /usr/local/go/src/runtime/panic.go:884 +0x213
azappconfig/provider/internal/providers.(*ConfigurationSettingProvider).CreateKeyValueSettings(0xc0002118c0, {0x1aed2e8?, 0xc0008d7ec0}, {0x0, 0x0})
        /workspace/internal/providers/configuration_setting_provider.go:138 +0xa3b
azappconfig/provider/internal/controllers.(*AppConfigurationProviderProcessor).ProcessFullReconciliation(0xc000459a38)
        /workspace/internal/controllers/processor.go:60 +0x52
azappconfig/provider/internal/controllers.(*AppConfigurationProviderProcessor).PopulateSettings(0x168fe00?, 0xc00047c0c0?)
        /workspace/internal/controllers/processor.go:43 +0x25
azappconfig/provider/internal/controllers.(*AzureAppConfigurationProviderReconciler).Reconcile(0xc00047c0f0, {0x1aed2e8, 0xc0008d7ec0}, {{{0xc00050f100, 0x10}, {0xc000aaa180, 0x22}}})
        /workspace/internal/controllers/appconfigurationprovider_controller.go:177 +0xe4e
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x1aed2e8?, {0x1aed2e8?, 0xc0008d7ec0?}, {{{0xc00050f100?, 0x16272c0?}, {0xc000aaa180?, 0x40f926?}}})
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:122 +0xc8
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0002683c0, {0x1aed240, 0xc0003f5f90}, {0x16fdc20?, 0xc0008b49a0?})
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:323 +0x377
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0002683c0, {0x1aed240, 0xc0003f5f90})
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:274 +0x1d9
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:235 +0x85
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:231 +0x587
@linglingye001
Copy link
Contributor

linglingye001 commented Dec 13, 2023

@tesharp Thank you for bringing this issue to our attention. We have reproduced the problem when the value of the key is null and are working on a fix for it. The issue will be resolved in version 1.1.0.

@jimmyca15
Copy link
Member

To add a bit to @linglingye001 has mentioned. This error occurs whenever a key-value is pulled from App Configuration that has a null value. Until the fix that was mentioned is provided, this error can be avoided by ensuring that no key-values that are referenced in App Configuration have a null value.

@jimmyca15 jimmyca15 added the bug Something isn't working label Dec 18, 2023
@RichardChen820
Copy link
Contributor

@tesharp Fixed in v1.1.0

@zhenlan zhenlan closed this as completed Jan 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working Kubernetes
Projects
None yet
Development

No branches or pull requests

5 participants