Giter Club home page Giter Club logo

Comments (6)

dupeiran001 avatar dupeiran001 commented on June 11, 2024

more info: I found there's something wrong with the mem cache. It keep sending the wrong cksum package untile I restart the kellnr. Maybe the cksum need to be verified before store it in mem cache?

from kellnr.

secana avatar secana commented on June 11, 2024

Can you verify if the problem still exists if you disable the mem cache? You can do that by setting it's cache_size to 0. That would help me pin down if the issue is in the mem cache or already before that.

from kellnr.

dupeiran001 avatar dupeiran001 commented on June 11, 2024

Yes, set size to zero solves the problem.

from kellnr.

secana avatar secana commented on June 11, 2024

Thank you for verifying. I'll have a look what is wrong with the cacheing logic.

from kellnr.

Christiaan676 avatar Christiaan676 commented on June 11, 2024

Reading the issue, I don' t think that there is anything wrong with the cashing logic. Downloading of crate went wrong, resulting in a broken file on disk. When the package is requested by cargo, the file is loaded from disk and cached. Resulting in the checksum error.

Removing the file from disk will not remove the file from the cache. So the next download will return the cached version, and will again result in a checksum error. Restarting Kellnr solves this, as it will clear the memory file cache, resulting in a redownload of the crate the next time it is requested.

from kellnr.

secana avatar secana commented on June 11, 2024

There is now checksum that can be checked as crates.io does not provide any. I'll close the issue until there is more information available. Reproducing the issue is still not possible.

from kellnr.

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.