-
Notifications
You must be signed in to change notification settings - Fork 150
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
CockroachDB doesnt start and init doesnt seem to launch #402
Comments
I'm seeing this as well. Did you figure it out? I see this in the log, it looks like its trying the wrong url to the pods:
In my case its adding in 'keycloak-cockroachdb.' and in your case its adding in 'cockroachdb.', which it looks like it shouldn't be. |
I've got the same problem with the latest 14.0.3 chart. |
Are either of you able to share your values file? A redacted version is likely fine, just to see what overrides you have set. I have. not ben able to reproduce this with the default values. |
@udnay , here ya go:
Result:
Logs of each cockroachdb pod show:
|
I have the same issue.
|
I think for reproducing this issue,
ref: https://helm.sh/docs/topics/charts_hooks/#hooks-and-the-release-lifecycle Otherwise the deadlock occurs, where the Job/Hook is waiting for the StatefulSet to become ready, but the StatefulSet needs the Job to run the The solution in #195 seems to have been #195 (comment):
I did not test this first hand (yet). But it lines up with what I read and know about Helm. If people confirm this working, maybe a note somewhere in the chart README would prevent people to get stuck at this point again. |
As in the spec of Job "cockroachdb-init"? I don't even see such a Job created. Just the self signer stuff. |
Also this issue is a duplicate of #69. (There are so many issues referencing the init job on install...) My suggestion, even though I didn't try it, would be to combine Helm's That way the Job could be deployed as a simple Job, not a Hook, on install. And run as a hook on upgrade (since upgrades don't seem so cause any issues anymore?). I plan on testing this soon, as I am currently reinstalling a cluster of mine, but if someone else is faster than I am, please try this. |
This only applies if you use Flux(v2) to deploy cockroachdb. The spec is in reference to the HelmRelease CRD of Flux. If you install cockroachdb with an |
Got it. I'm wrapping in Opentofu, which was defaulting to |
For reference, my idea to solve this independently of Helm's |
Hello everyone,
I would like to deploy cockroachDB using helm but the problem is that the cluster can't start and I get this error that keeps appearing:
Error
I240718 13:09:06.023104 191 server/init.go:405 ⋮ [T1,Vsystem,n?] 37 ‹cockroachdb-1.cockroachdb.cockroachdb.svc.cluster.local:26257› is itself waiting for init, will retry
Can you help me by giving me some hints on how to fix the problem?
Here's the entire log file and the values.yaml file
db.txt
values-cockroach.txt
I'm using cockroach version 24.1.1
The chart 13.0.1
What do you expect to see ?
The cockroach cluster launching just fine
What happened
Error
I240718 13:09:06.023104 191 server/init.go:405 ⋮ [T1,Vsystem,n?] 37 ‹cockroachdb-1.cockroachdb.cockroachdb.svc.cluster.local:26257› is itself waiting for init, will retry
The text was updated successfully, but these errors were encountered: