-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
[bitnami/kafka] Could not find or load main class kafka.tools.StorageTool #25954
Comments
It seems it is not related to the custom values but rather to the K8S cluster. Out of curiosity, I tested the above configuration with a local "k3d" cluster (K8S 1.22) and there Kafka is starting up properly. Back in my production cluster to get a shell into the Kafka POD (after changing the command to "bash -c sleep 3600", I see:
Running the scripts this way is surely not the proper way but I think it's good enough to see that there might be a problem with loading the Java classes. Some more information:
Kubernetes version: 1.25.6 What could cause this? |
I think I got it:
So, the Seccomp profile "RuntimeDefault" seems to be different between the Kubernetes clusters I have tested. To verify, I used "amicontained" (https://github.com/genuinetools/amicontained) in my production cluster and in the local "k3d" test cluster. The result is pretty similar but the default profile in my production cluster had six more blocked syscalls:
My guess is that the Seccomp profile is defined by the container runtime and in my production cluster it is "containerd" and in the "k3d" test cluster it is "Docker". I think I will continue with For reference the "amicontained" output from my production cluster:
And the output from the "k3d" cluster:
|
Maybe it's worth to mention this in the README of this chart? Anyway, in case other users are affected similarly it might be worth a note in the README and/or in the |
Hi! Thank you so much for letting us know! I will forward it to the documentation team, but as you discovered the issue, would you like to add a small note in the configuration section of the chart? |
Thank you.
I'd rather not. I'm not yet confident enough what seccomp profile is used resp. where and how it is set, need to figure this out. |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Name and Version
bitnami/kafka 28.2.4
What architecture are you using?
amd64
What steps will reproduce the bug?
Install the Bitnami Kafka chart via
helm upgrade --install --namespace kafka-test kafka-test oci://registry-1.docker.io/bitnamicharts/kafka --values custom-values.yaml
.custom.values
are listed below.Are you using any custom parameters or values?
What is the expected behavior?
Kafka service is starting up
What do you see instead?
The init container seems to run fine even though it has no output.
The "kafka" container crashes shortly after startup with the following output:
And then is started again by the STS and fails until it reaches the CrashLoopBackOff state.
Additional information
I wonder what is the reason for this crash.
Since there do not seem many users affected by this, it might be rather a configuration problem than a bug.
Still, I could reproduce it in two different Kubernetes clusters.
The above provided custom values are a stripped down version of my actual setup which originates from the Sentry Helm chart (sentry-kubernetes/charts#1241) but both show the same error.
What I've tried so far:
kubeVersion
and leaving it emptycontroller.controllerOnly
volumePermissions.enable
kraft.clusterId
controller.persistence.enabled: true
andcontroller.persistence.existingClaim
Kubernetes version: 1.25
The text was updated successfully, but these errors were encountered: