Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Connection reset by peer" during first use #609

Open
l0b0 opened this issue Dec 15, 2023 · 1 comment
Open

"Connection reset by peer" during first use #609

l0b0 opened this issue Dec 15, 2023 · 1 comment

Comments

@l0b0
Copy link

l0b0 commented Dec 15, 2023

After setting

{
  services.cachix-watch-store = {
    cacheName = "[removed]";
    cachixTokenFile = "${config.users.users.default.home}/.config/cachix/token.txt";
    enable = true;
  };
}

, creating the token file by running printf '%s' "$CACHIX_AUTH_TOKEN" > ~/.config/cachix/token.txt, and running sudo nixos-rebuild switch, the cachix-watch-store-agent service started successfully. However, when running sudo nixos-rebuild boot --show-trace --upgrade-all immediately afterwards it produced about 15 errors like this in the journal:

fsnotify: handler threw exception: CppStdException e "error: cannot open connection to remote store 'daemon': error: reading from file: Connection reset by peer"(Just "nix::Error")

Is this indicative of an actual network issue? The rest of the downloads during the upgrade went fine. Or was Cachix down at around 2023-12-15T14:55:39+1300? Or is there something else entirely going on?

Let me know if I should include the cache name.

@domenkozar
Copy link
Member

That means nix-daemon was down and cachix daemon was unable to connect to it. Most likely part of your upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants