Code Monkey home page Code Monkey logo

Comments (5)

secana avatar secana commented on May 26, 2024

One possible problem could be that the crates where downloaded before from crates.io and now they are downloaded from your kellnr proxy. Unfortunately cargo is not able to work with "mixed" indicies.

Can you try to delete your Cargo.lock and clean your old index cache with rm -rf ~/.cargo/registry/* and check if the issue persists?

from kellnr.

adrianncovaci avatar adrianncovaci commented on May 26, 2024

One possible problem could be that the crates where downloaded before from crates.io and now they are downloaded from your kellnr proxy. Unfortunately cargo is not able to work with "mixed" indicies.

Can you try to delete your Cargo.lock and clean your old index cache with rm -rf ~/.cargo/registry/* and check if the issue persists?

Sorry, I forgot to mention, the issue persists even after deleting the registry directory and running 'cargo clean'

from kellnr.

secana avatar secana commented on May 26, 2024

If if it's not a mixed index, I don't have another idea, but I'll try to help debug the issue.

Can you provide logs from Kellnr (log level = trace) and from cargo when you run it with a verbose flag? Maybe there is a hint somewhere in the logs.

from kellnr.

adrianncovaci avatar adrianncovaci commented on May 26, 2024

when running with trace kellnr log level I get:

...
2024-01-14T16:35:21.769952Z DEBUG registry::cratesio_api: Crate not found on disk, downloading from crates.io
2024-01-14T16:35:21.845836Z TRACE registry::cratesio_api: Downloading crate: unicase (2.7.0) from path /opt/kdata/crates/unicase-2.7.0.crate
2024-01-14T16:35:21.846510Z TRACE registry::cratesio_api: Crate found in cache, skipping download

cargo run --verbose
doesn't return any other errors than:

error: failed to download replaced source registry `crates-io`
Caused by:
failed to verify the checksum of `unicase v2.7.0 (registry `kellnr-cratesio`)`

I've removed ~/.cargo/registry
I've ran cargo clean
I've deleted Cargo.lock

from kellnr.

secana avatar secana commented on May 26, 2024

I'm out of ideas, as I cannot reproduce the issue. I'll close the issue, but if you find out what the issue is, or have more information available, feel free to reopen it.

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.