Skip to content

Downloading from manifest fails if binary cache returns invalid contents #242

Closed

Description

@wizeman

I'm not sure if this is the right place to report this error or if I even understand it completely.

Yesterday, while the nixos.org domain was hijacked, cache.nixos.org was returning invalid contents and I think this was preventing Nix from downloading from my own Hydra channel during nixos-rebuild.

To clarify: Basically, I have my own private Hydra instance, and I added my channel using nix-channel --add "http://localserver:3000" channelname. I use this Hydra instance to build packages with my nixpkgs patches on top.

Normally, when I use nixos-rebuild on my laptop, nix-daemon will automatically download from localserver:3000 the already-built packages (even though I did not add localserver:3000 to /etc/nix/nix.conf, I just added the Nix channel).

However, yesterday nixos-rebuild was trying to rebuild all packages on my laptop, even though localserver already contained built packages. The only out-of-the-ordinary event yesterday was the nixos.org domain hijacking.

Also, I found out that if I used nixos-rebuild switch --option binary-caches "", then Nix would work fine and download from my local server. So I guess this can be used as a workaround, but it would be nice if Nix would be fixed so that the problem didn't happen in the first place (in the event cache.nixos.org is returning invalid contents).

Activity

  1. edolstra commented on Apr 3, 2018

    @edolstra
    Member

    Closing since manifest support has been removed.

  2. added a commit that references this issue on Jan 1, 2024
  3. added a commit that references this issue on Feb 26, 2025
  4. added a commit that references this issue on Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions