Trouble with FluxCD's LAB 2

I’m having trouble with FluxCD’s LAB 2 (“Deploying an Application”). The flux bootstrap command is hanging and never completes, which is preventing me from proceeding. Has anyone else encountered this issue?

controlplane ~ ➜  flux bootstrap git \
--url=https://git.example.com/bob/block-buster.git \
--username=bob --password=Bob_pass123 \
--branch=master --token-auth=true \
--path=flux-clusters/dev-cluster \
--ca-file=/var/lib/gitea/custom/cert.pem
► cloning branch "master" from Git repository "https://git.example.com/bob/block-buster.git"
✔ cloned repository
► generating component manifests
✔ generated component manifests
✔ component manifests are up to date
► installing components in "flux-system" namespace
✔ installed components
✔ reconciled components
► determining if source secret "flux-system/flux-system" exists
► generating source secret
► applying source secret "flux-system/flux-system"
✔ reconciled source secret
► generating sync manifests
✔ generated sync manifests
✔ sync manifests are up to date
► applying sync manifests
✔ reconciled sync configuration
◎ waiting for GitRepository "flux-system/flux-system" to be reconciled
✗ context deadline exceeded
◎ waiting for Kustomization "flux-system/flux-system" to be reconciled
✗ client rate limiter Wait returned an error: context deadline exceeded
► confirming components are healthy
✗ helm-controller: deployment not ready
✗ kustomize-controller: deployment not ready
✗ notification-controller: deployment not ready
✗ source-controller: deployment not ready
✗ bootstrap failed with 3 health check failure(s): [error while waiting for GitRepository to be ready: 'context deadline exceeded', error while waiting for Kustomization to be ready: 'client rate limiter Wait returned an error: context deadline exceeded', timed out waiting for all resources to be ready]

Not sure what’s up with your case. Your command looks correct; I ran the following (which looks the same) and got a positive result:

flux bootstrap git \
  --url=https://git.example.com/bob/block-buster.git \
  --username=bob \
  --password=Bob_pass123 \
  --branch=master --token-auth=true \
  --path=flux-clusters/dev-cluster \
  --ca-file=/var/lib/gitea/custom/cert.pem

This resulted in:

► cloning branch "master" from Git repository "https://git.example.com/bob/block-buster.git"
✔ cloned repository
► generating component manifests
✔ generated component manifests
✔ committed component manifests to "master" ("fc7c665d61181d4090c0c8f009699f4dd72f6648")
► pushing component manifests to "https://git.example.com/bob/block-buster.git"
► installing components in "flux-system" namespace
✔ installed components
✔ reconciled components
► determining if source secret "flux-system/flux-system" exists
► generating source secret
► applying source secret "flux-system/flux-system"
✔ reconciled source secret
► generating sync manifests
✔ generated sync manifests
✔ committed sync manifests to "master" ("e04a5f2433917daf820fe2f373878d6869d36932")
► pushing sync manifests to "https://git.example.com/bob/block-buster.git"
► applying sync manifests
✔ reconciled sync configuration
◎ waiting for GitRepository "flux-system/flux-system" to be reconciled
✔ GitRepository reconciled successfully
◎ waiting for Kustomization "flux-system/flux-system" to be reconciled
✔ Kustomization reconciled successfully
► confirming components are healthy
✔ helm-controller: deployment ready
✔ kustomize-controller: deployment ready
✔ notification-controller: deployment ready
✔ source-controller: deployment ready
✔ all components are healthy

which validated. Since I don’t see anything wrong in your command, I’m wondering if this is an intermittent lab issue. Please try the lab again, and see if this recurs.

1 Like

Yes, it was strange.
I tried again, and now it works. Thank you for your reply.

Greetings