Hi Team, I am deploying datahub in gitlab CI and ...
# all-things-deployment
p
Hi Team, I am deploying datahub in gitlab CI and it is failed with the error
Error: UPGRADE FAILED: error validating "": error validating data: unknown object type "nil" in Secret.data.token_service_salt
it runs fine when I execute manually from my console, this the command that I am using.
Copy code
helm -n bi-datahub upgrade --install datahub datahub/datahub -f helm/charts/${ENV}/datahub.yaml
Help would be highly appreciated.
plus1 1
i
Hello Hamid, Did you update the helm chart to the latest helm chart?
Please make sure you are using helm chart v0.2.76
e
Hi guys, I got the same error once I updated the repo. However, in my case it doesn't work on the terminal manually either. I did the following steps: 1.
helm repo update
2.
helm upgrade datahub datahub/datahub
Am I missing something? Thanks in advance. I'm trying to update from
v0.8.33
to
v0.8.35
i
If you run
helm install -f <values.yaml> datahub charts/datahub --dry-run
do you get a secret generated with a
token_service_salt
key?
p
yes I get the
token_service_signing_key
i
Not signing_key, the salt
they are 2 different keys on the secret resource
p
another one is
token_service_salt
yes I found it
i
Ok, so the new secret value is getting generated
Can you share the logs?
p
you mean
--debug
logs?
i
the output of the helm install command, is it not throwing an error?
You mentioned the install not working, what are you seeing?
p
Copy code
history.go:56: [debug] getting history for release datahub
upgrade.go:142: [debug] preparing upgrade for datahub
Error: UPGRADE FAILED: error validating "": error validating data: unknown object type "nil" in Secret.data.token_service_salt
helm.go:84: [debug] error validating "": error validating data: unknown object type "nil" in Secret.data.token_service_salt
<http://helm.sh/helm/v3/pkg/kube.scrubValidationError|helm.sh/helm/v3/pkg/kube.scrubValidationError>
        <http://helm.sh/helm/v3/pkg/kube/client.go:632|helm.sh/helm/v3/pkg/kube/client.go:632>
<http://helm.sh/helm/v3/pkg/kube.(*Client).Build|helm.sh/helm/v3/pkg/kube.(*Client).Build>
        <http://helm.sh/helm/v3/pkg/kube/client.go:204|helm.sh/helm/v3/pkg/kube/client.go:204>
<http://helm.sh/helm/v3/pkg/action.validateManifest|helm.sh/helm/v3/pkg/action.validateManifest>
        <http://helm.sh/helm/v3/pkg/action/upgrade.go:528|helm.sh/helm/v3/pkg/action/upgrade.go:528>
<http://helm.sh/helm/v3/pkg/action.(*Upgrade).prepareUpgrade|helm.sh/helm/v3/pkg/action.(*Upgrade).prepareUpgrade>
        <http://helm.sh/helm/v3/pkg/action/upgrade.go:259|helm.sh/helm/v3/pkg/action/upgrade.go:259>
<http://helm.sh/helm/v3/pkg/action.(*Upgrade).RunWithContext|helm.sh/helm/v3/pkg/action.(*Upgrade).RunWithContext>
        <http://helm.sh/helm/v3/pkg/action/upgrade.go:143|helm.sh/helm/v3/pkg/action/upgrade.go:143>
main.newUpgradeCmd.func2
        <http://helm.sh/helm/v3/cmd/helm/upgrade.go:197|helm.sh/helm/v3/cmd/helm/upgrade.go:197>
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
        <http://github.com/spf13/cobra@v1.3.0/command.go:856|github.com/spf13/cobra@v1.3.0/command.go:856>
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
        <http://github.com/spf13/cobra@v1.3.0/command.go:974|github.com/spf13/cobra@v1.3.0/command.go:974>
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
        <http://github.com/spf13/cobra@v1.3.0/command.go:902|github.com/spf13/cobra@v1.3.0/command.go:902>
main.main
        <http://helm.sh/helm/v3/cmd/helm/helm.go:83|helm.sh/helm/v3/cmd/helm/helm.go:83>
runtime.main
        runtime/proc.go:250
runtime.goexit
        runtime/asm_amd64.s:1571
UPGRADE FAILED
main.newUpgradeCmd.func2
        <http://helm.sh/helm/v3/cmd/helm/upgrade.go:199|helm.sh/helm/v3/cmd/helm/upgrade.go:199>
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
        <http://github.com/spf13/cobra@v1.3.0/command.go:856|github.com/spf13/cobra@v1.3.0/command.go:856>
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
        <http://github.com/spf13/cobra@v1.3.0/command.go:974|github.com/spf13/cobra@v1.3.0/command.go:974>
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
        <http://github.com/spf13/cobra@v1.3.0/command.go:902|github.com/spf13/cobra@v1.3.0/command.go:902>
main.main
        <http://helm.sh/helm/v3/cmd/helm/helm.go:83|helm.sh/helm/v3/cmd/helm/helm.go:83>
runtime.main
        runtime/proc.go:250
runtime.goexit
        runtime/asm_amd64.s:1571
and this is the only problem with
0.2.76
version, it works fine with
0.2.72
i
Could you share your values.yaml? Particularly the section around
metadata_service_authentication
p
Copy code
metadata_service_authentication:
      enabled: false
      systemClientId: "__datahub_system"
      systemClientSecret:
        secretRef: "datahub-auth-secrets"
        secretKey: "token_service_signing_key"
      tokenService:
        signingKey:
          secretRef: "datahub-auth-secrets"
          secretKey: "token_service_signing_key"
      # Set to false if you'd like to provide your own auth secrets
      provisionSecrets: true
i
Please add
Copy code
salt:
          secretRef: "datahub-auth-secrets"
          secretKey: "token_service_salt"
Under tokenService and try again
p
didn’t work, same error
i
Could you share your values.yaml with me privately so I can try to reproduce the issue?
p
shared
s
Hi all, this problem should be fixed with Helm chart version 0.2.77 🙂 See also here: https://github.com/acryldata/datahub-helm/pull/120
thank you 1
✅ 1
p
@shy-scooter-37097 @incalculable-ocean-74010 Thanks, the issue is fixed in 0.2.77 version. 🙂