helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

provisionCluster fails because it is running to early

Open Jbaukens opened this issue 1 year ago • 0 comments

Hello,

I noticed that the provisionCluster in the init-job.yaml is failing because its running to early.

If i am changing the code with a sleep on forehand the users and databases are created with success https://github.com/cockroachdb/helm-charts/blob/master/cockroachdb/templates/job.init.yaml#L216 sleep 5;provisionCluster; outputs

CREATE ROLE
CREATE DATABASE
Provisioning completed successfully

Without the sleep, i am getting an error asking to check if cockroach is running

Is the server running?
If the server is running, check --host client-side and --advertise server-side.
dial tcp ip:26257: connect: connection refused
Failed running "sql"
Provisioning completed successfully

I am trying to install is as dependeny on minikube

Jbaukens avatar Jun 29 '23 20:06 Jbaukens