Hi Everyone My system-update job is failing with b...
# all-things-deployment
g
Hi Everyone My system-update job is failing with below errors as attached in the screen shot , can any one please assist
Copy code
client.go:770: [debug] datahub-datahub-system-update-job: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
upgrade.go:436: [debug] warning: Upgrade "datahub" failed: pre-upgrade hooks failed: timed out waiting for the condition
Error: UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the condition
when I ran kubectl describe pod <name of the pod> I see datahub-auth-secrets is not created automatically and throws error Error: secret "datahub-auth-secrets" not found Helm values has provision secrets set to be true
Copy code
metadata_service_authentication:
      enabled: true
      systemClientId: "__datahub_system"
      systemClientSecret:
        secretRef: "datahub-auth-secrets"
        secretKey: "token_service_signing_key"
      tokenService:
        signingKey:
          secretRef: "datahub-auth-secrets"
          secretKey: "token_service_signing_key"
        salt:
          secretRef: "datahub-auth-secrets"
          secretKey: "token_service_salt"
      # Set to false if you'd like to provide your own auth secrets
      provisionSecrets:
        enabled: true
        autoGenerate: true
l
Hey there 👋 I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: 1️⃣ There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? 2️⃣ It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues?
a
This could be an error with pods waiting on one another- what version are you updating from/to? Allocating more pod resources may help
w
c
@great-monkey-52307 could you fix this?
g
To Fix the issue, I manually created "datahub-auth-secrets" with 3 secretKey as per Yaml and updated provision secrets to false. So, If I create manually it worked but it was throwing error as mentioned earlier by trying below settings Provision Secrets: enabled: true autoGenerate: true