Skip to content
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

jx git operator minikube install on windows hangs on "waiting for the mandatory Secrets to be populated from ExternalSecrets" util timeout. #8588

Open
hughexp opened this issue Jul 5, 2023 · 1 comment

Comments

@hughexp
Copy link

hughexp commented Jul 5, 2023

I have installed jx3 on windows with minikube according to the description of the official document,but is hangs waiting for secret.is there any why to find our what secret is missing?all info shows bellow:
error info:

jx gitops split --dir /tmp/generate
jx gitops rename --dir /tmp/generate
jx gitops helmfile move --output-dir config-root --dir /tmp/generate --dir-includes-release-name
jx secret convert --source-dir config-root -r jx-vault -m kubernetes
jx secret replicate --selector secret.jenkins-x.io/replica-source=true
jx gitops namespace --dir-mode --dir config-root/namespaces
jx gitops scheduler
jx gitops hash --pod-spec --kind Deployment -s config-root/namespaces/jx/lighthouse-config/config-cm.yaml -s config-root/namespaces/jx/lighthouse-config/plugins-cm.yaml -d config-root/namespaces/jx/lighthouse
jx gitops label --dir config-root/cluster gitops.jenkins-x.io/pipeline=cluster
jx gitops label --dir config-root/customresourcedefinitions gitops.jenkins-x.io/pipeline=customresourcedefinitions
jx gitops label --dir config-root/namespaces gitops.jenkins-x.io/pipeline=namespaces
jx gitops annotate --dir config-root --selector app=pusher-wave kapp.k14s.io/change-group=apps.jenkins-x.io/pusher-wave
jx gitops annotate --dir config-root --selector app.kubernetes.io/name=ingress-nginx kapp.k14s.io/change-group=apps.jenkins-x.io/ingress-nginx
jx gitops label --dir config-root/cluster --kind=Namespace team=jx
jx gitops annotate --dir config-root/namespaces --kind Deployment --selector app=pusher-wave --invert-selector wave.pusher.com/update-on-config-change=true
jx gitops git setup
found git user.name ******* from requirements
found git user.email from requirements
setup git user email [email protected]
generated Git credentials file: /workspace/xdg_config/git/credentials with username: ******* email:
git add --all
git commit -m "chore: regenerated" -m "/pipeline cancel"
[main 79e6e02] chore: regenerated
5 files changed, 5 insertions(+), 2 deletions(-)
make[1]: Leaving directory '/workspace/source'
make regen-phase-3 NEW_CLUSTER=true
make[1]: Entering directory '/workspace/source'
Already up to date.
To https://github.com/*******/jx3-minikube.git
c80b7c6..79e6e02 main -> main
JX_VAULT_ROLE=jx-vault JX_VAULT_MOUNT_POINT=kubernetes VAULT_ADDR=https://vault.jx-vault:8200 VAULT_NAMESPACE=jx-vault EXTERNAL_VAULT=false jx secret populate --secret-namespace jx-vault
VAULT_ADDR=https://vault.jx-vault:8200 jx secret wait -n jx
waiting for the mandatory Secrets to be populated from ExternalSecrets...
bucketrepo-config: valid: config.yaml/config.yaml
docker-registry-secret: key proxyUsername missing properties: proxyUsername, key proxyPassword missing properties: proxyPassword
jenkins-x-bucketrepo: valid: BASIC_AUTH_PASS/BASIC_AUTH_PASS, BASIC_AUTH_USER/BASIC_AUTH_USER
jx-basic-auth-user-password: valid: password/password, username/username
lighthouse-hmac-token: valid: hmac/hmac
lighthouse-oauth-token: valid: oauth/oauth
tekton-container-registry-auth: valid: .dockerconfigjson/.dockerconfigjson
tekton-git: valid: password/password, username/username
error: timed out waiting for the Secrets to be valid from the ExternalSecrets after waiting 30m0s
make[1]: *** [versionStream/src/Makefile.mk:259: secrets-wait] Error 1
make[1]: Leaving directory '/workspace/source'
error: failed to regenerate phase 3: failed to run 'make regen-phase-3 NEW_CLUSTER=true' command in directory '.', output: ''
make: *** [versionStream/src/Makefile.mk:269: regen-check] Error 1
error: failed to tail the Jenkins X boot Job pods: timed out after waiting for duration 30m0s

versions:

minikube:1.30.1
kubernetes-version:1.24.12
jx version:3.10.83

infos:

C:\Users\Administrator>jx secret verify
SECRET STATUS
jx-production/tekton-container-registry-auth valid: .dockerconfigjson/.dockerconfigjson
jx-staging/tekton-container-registry-auth valid: .dockerconfigjson/.dockerconfigjson
jx/bucketrepo-config valid: config.yaml/config.yaml
jx/docker-registry-secret key proxyUsername missing properties: proxyUsername
jx/docker-registry-secret key proxyPassword missing properties: proxyPassword
jx/jenkins-maven-settings valid: settings.xml/settings.xml, settings-security.xml/settings-security.xml
jx/jenkins-x-bucketrepo valid: BASIC_AUTH_PASS/BASIC_AUTH_PASS, BASIC_AUTH_USER/BASIC_AUTH_USER
jx/jx-basic-auth-htpasswd valid: auth/auth
jx/jx-basic-auth-user-password valid: password/password, username/username
jx/jx-local-secrets valid: secrets.yaml/secrets.yaml
jx/lighthouse-hmac-token valid: hmac/hmac
jx/lighthouse-oauth-token valid: oauth/oauth
jx/tekton-container-registry-auth valid: .dockerconfigjson/.dockerconfigjson
jx/tekton-git valid: password/password, username/username

C:\Users\Administrator>kubectl get secrets -n jx
NAME TYPE DATA AGE
bucketrepo-config Opaque 1 32m
docker-registry-secret Opaque 3 32m
jenkins-maven-settings Opaque 2 32m
jenkins-x-bucketrepo Opaque 2 32m
jx-basic-auth-htpasswd Opaque 1 32m
jx-basic-auth-user-password Opaque 2 32m
jx-boot Opaque 4 67s
jx-boot-job-env-vars Opaque 0 67s
jx-boot-oci-registries Opaque 0 67s
jx-local-secrets Opaque 1 32m
lighthouse-hmac-token Opaque 1 32m
lighthouse-oauth-token Opaque 1 32m
tekton-container-registry-auth kubernetes.io/dockerconfigjson 1 32m
tekton-git

C:\Users\Administrator>kubectl get ExternalSecret -n jx
NAME LAST SYNC STATUS AGE
bucketrepo-config 33m
docker-registry-secret 33m
jenkins-maven-settings 33m
jenkins-x-bucketrepo 33m
jx-basic-auth-htpasswd 33m
jx-basic-auth-user-password 33m
jx-local-secrets 33m
lighthouse-hmac-token 33m
lighthouse-oauth-token 33m
tekton-container-registry-auth 33m
tekton-git 33

C:\Users\Administrator>kubectl get es -A
NAMESPACE NAME LAST SYNC STATUS AGE
jx-production tekton-container-registry-auth 33m
jx-staging tekton-container-registry-auth 33m
jx bucketrepo-config 34m
jx docker-registry-secret 34m
jx jenkins-maven-settings 34m
jx jenkins-x-bucketrepo 34m
jx jx-basic-auth-htpasswd 34m
jx jx-basic-auth-user-password 33m
jx jx-local-secrets 33m
jx lighthouse-hmac-token 33m
jx lighthouse-oauth-token 33m
jx tekton-container-registry-auth 33m
jx tekton-git 33

@elyesmanai911
Copy link

Same problem here !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants