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

Failed to verify artifact #567

Closed
scott-david-walker opened this issue Apr 12, 2023 · 10 comments
Closed

Failed to verify artifact #567

scott-david-walker opened this issue Apr 12, 2023 · 10 comments

Comments

@scott-david-walker
Copy link
Contributor

I'm getting this error when trying to run Terraform. What I find weird is that the advertised checksum is empty?

{"level":"error","ts":"2023-04-12T12:07:51.287Z","msg":"Reconciliation failed after 15.100762353s, next try in 1m0s","controller":"terraform","controllerGroup":"infra.contrib.fluxcd.io","controllerKind":"Terraform","Terraform":{"name":"scott-test2","namespace":"flux-system"},"namespace":"flux-system","name":"scott-test2","reconcileID":"3da98bbc-b9d7-4b1c-a7c2-de3209e78be1","reconciliation-loop-id":"72a4cdb3-463b-4960-ab08-5e6c57361ef5","start-time":"2023-04-12T12:07:36.186Z","revision":"main@sha1:17bca68ee797b8ec40ec42d28dbdc092679eb238","error":"failed to verify artifact: computed checksum 'fd544440eb323cf09252a00cb63e6cf195798fec38e9601026f14044e5e35714' doesn't match advertised ''"}

My file looks like:

apiVersion: infra.contrib.fluxcd.io/v1alpha1
kind: Terraform
metadata:
  name: scott-test2
  namespace: flux-system
spec:
  path: ./terraforms/fusionauth
  interval: 1m
  approvePlan: auto
  sourceRef:
    kind: GitRepository
    name: scott-fake-repo
    namespace: flux-system

Git repository is correctly instantiated and has a status of "stored artifact for revision main" so it appears to have the data necessary

@chanwit
Copy link
Collaborator

chanwit commented Apr 12, 2023

Hi @scott-david-walker

Thank you for reporting! We're addressing this issue here #557 and we've just got the new image that seems to work with Flux v2.0.0-rc.1

@scott-david-walker
Copy link
Contributor Author

hi @chanwit

Is the release candidate installed via the bootstrapping mechanism? I presumed that would only be stable versions?

@chanwit
Copy link
Collaborator

chanwit commented Apr 12, 2023

Hi Scott,

To try out the PR-based or the RC versions, you would just change the value in your HelmRelease object like this:

  values:
    replicaCount: 1
    concurrency: 24
    resources:
      limits:
        cpu: 1000m
        memory: 2Gi
      requests:
        cpu: 400m
        memory: 64Mi
    caCertValidityDuration: 24h
    certRotationCheckFrequency: 30m
    image:
      tag: upgrade-to-flux-2-rc-1-d3949b9e
    runner:
      image:
        tag: upgrade-to-flux-2-rc-1-d3949b9e

you would also rollback to the stable version anytime you wanted.

@scott-david-walker
Copy link
Contributor Author

Sorry maybe I didn't explain my question in the best way.

I installed Flux around 5 days ago via the documented bootstrapping mechanism. Is it valid behaviour that it would install a release candidate as a part of the bootstrap?

@chanwit
Copy link
Collaborator

chanwit commented Apr 12, 2023

Is it valid behaviour that it would install a release candidate as a part of the bootstrap?

Ah sorry. so you asked about Flux?
I shall ping @stefanprodan or @hiddeco to help answer this question then.

@stefanprodan
Copy link
Contributor

Is it valid behaviour that it would install a release candidate as a part of the bootstrap?

Yes it is, see fluxcd/flux2#3782 (comment)

@scott-david-walker
Copy link
Contributor Author

Thanks both. Will close this issue as using the rc image seemed to solve the issue

@chimisu
Copy link

chimisu commented Jun 20, 2023

upgrade-to-flux-2-rc-1-d3949b9e

Hi @chanwit ,I also met this issue,do i need to update tag to upgrade-to-flux-2-rc-1-d3949b9e?or any new update?

@chanwit
Copy link
Collaborator

chanwit commented Jun 20, 2023

Hello @chimisu
Please install Flux v2 rc.5 and try tf-controller v0.15.0-rc.5

@chimisu
Copy link

chimisu commented Jun 20, 2023

Hello @chimisu Please install Flux v2 rc.5 and try tf-controller v0.15.0-rc.5

I have installed Flux v2 rc.5 and tf-controller v0.15.0-rc.5,its the same issue.

And when I deleteing the terraform CRD,it has another issue:
image
image

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

4 participants