Skip to content

Handle corrupt manifests more gracefully #42

Closed

Description

@edolstra
  • Maybe Nix should warn about corrupt manifests rather than die.
  • Maybe corrupt SQLite caches should be deleted/recreated automatically.

Activity

  1. ctheune commented on Jan 23, 2017

    @ctheune
    Contributor

    I think we just met a very specific instance of this. We upgraded our hydra which now hands out nars using xz. Our clients' binary cache database still contain the information from narinfos that were generated with the old hydra telling them they should expect bz2 compressed data.

    I haven't seen any obvious part of the code that would be able to validate this automatically. For now we'll likely just scrap our binary cache databases once, but from a usability perspective those upgrades should manage themselves. Happy to help if you point me in the right direction.

  2. copumpkin commented on Jan 24, 2017

    @copumpkin
    Member

    I thought manifests were dead?

  3. edolstra commented on Feb 7, 2017

    @edolstra
    MemberAuthor

    Indeed.

  4. ctheune commented on Feb 9, 2017

    @ctheune
    Contributor

    For clarification and people who may stumble over this in the future: I guess I wasn't aware that narinfo != manifest, right?

  5. domenkozar commented on Feb 9, 2017

    @domenkozar
    Member

    @ctheune correct, manifest were for binary diffing so you didn't need to download the whole store path on "upgrade".

  6. added a commit that references this issue on Aug 28, 2020
  7. added a commit that references this issue on Jan 1, 2024
  8. added a commit that references this issue on Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions