Code Monkey home page Code Monkey logo

Comments (8)

joelcomp1 avatar joelcomp1 commented on September 23, 2024 1

I did verify we are running Zarf 0.26.2 in all locations so should have all matched

from zarf.

Racer159 avatar Racer159 commented on September 23, 2024

Interesting... The checksums are stored at the root of a zarf package and should always match the image layer SHA (hence the filename images/blobs/sha256/e543d039704a927686af50ee12c85b8e8fff304c933b202624bbc705cf60161a and the expected SHA e543d039704a927686af50ee12c85b8e8fff304c933b202624bbc705cf60161a matching each other). Have you observed flakiness where it starts working again? Or does it always fail once it starts to fail?

Also just to check, are you using the same Zarf version between package create and deploy?

Also if you really need to and want to push past this error you could run with --insecure though I would recommend only doing that on a test instance since there is a chance of there being a corrupted layer. Under the hood Zarf unpacks the package to the temporary directory of the system and afterwards checks the package checksums before proceeding - something could be going wrong during this unarchive/copy process. When Zarf fails it leaves these files behind for inspection and you could use zarf prepare sha256sum <filepath> to investigate the files more directly.

from zarf.

joelcomp1 avatar joelcomp1 commented on September 23, 2024

Interesting you say that. I have seen it to be that it will eventually work if you either do it enough times or I was also seeing I rebooted the machine it would work after reboot the first time. We actually tried to use - -insecure but that didn't seem to help. I will verify but I'm fairly certain our zarf versions matched as I was worried that could be a potential issue.

from zarf.

Racer159 avatar Racer159 commented on September 23, 2024

Rebooting the machine is an interesting symptom... Are you specifying --tmpdir at all or just using /tmp? If you run rm -rf /tmp/zarf-* does that have the same effect as rebooting?

from zarf.

Racer159 avatar Racer159 commented on September 23, 2024

(also looking at the code the --insecure flag help text is wrong (or at least misleading) we do disable the validation of signatures (and thus you can modify the checksums to match) but we still always look at the checksums if they are present - will make a note to update that)

from zarf.

joelcomp1 avatar joelcomp1 commented on September 23, 2024

No I am not specifying --tmpdir, so it would just be /tmp, I actually didn't realize until recently how much stuff was dumped into /tmp on failures, but I don't believe I ever tried to clear that out during a checksum failure. I know I did `rm -rf /tmp/zarf-*' at one point but I can't 100% recall if it was around the checksum time. Next time I see it though I will give that a try. I know we are a few releases behind, is there anything on the newer releases since 0.26.2 that would have fixed anything in regards to this?

from zarf.

Racer159 avatar Racer159 commented on September 23, 2024

There have been some minor refactors done to checksum handling in the intervening versions but there shouldn't have been any behavioral changes

from zarf.

Noxsios avatar Noxsios commented on September 23, 2024

Closing as stale.

If you are still seeing this issue @joelcomp1, feel free to re-open and provide the team w/ more info!

from zarf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.