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

Bad remote builder settings are very difficult to revert #1060

Open
zmitchell opened this issue Sep 5, 2024 · 5 comments
Open

Bad remote builder settings are very difficult to revert #1060

zmitchell opened this issue Sep 5, 2024 · 5 comments

Comments

@zmitchell
Copy link

I made a mistake filling out the configuration for a remote builder (I had the comment part of my SSH key still in there), which now means I can't build my system at all:

error: bad machine specification: failed to convert column #3 in a row: 'ssh-ng://nixbld@fd7a:115c:a1e0::19 aarch64-linux ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILsj5Gfjmar7Nj38f2bc7riB9CBqOoByzrR2zw4814HF [email protected] 1 1 kvm,big-parallel,nixos-test,benchmark - c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSU93SjIvSGdwL0N4UWFac2Q0ak1oYjhhNUllY1l1Qm00NWltdGJUWlRWS2Ugcm9vdEBidWlsZC1hcm0K' to 'unsigned int'
error:
       … while reading the response from the build hook

       error: unexpected EOF reading a line

I haven't figured out where this setting is or how to delete it so that I can do a fresh build with the correct config.

  • Rollbacks don't help because they still run the __build-remote hook, which finds whatever this setting is and fails because of it.
  • Doing a build with --offline doesn't work either.

So at this point I'm at a loss how to proceed, I'm completely unable to build the system.

@zmitchell
Copy link
Author

I've also ensured that I have nix.distributedBuilds = false.

@zmitchell
Copy link
Author

Alright, I managed to get myself unstuck. Here's what I did:

$ nix run .#darwin-rebuild -- switch --flake <path to my flake>

WOOF, that was scary for a bit, but I figured it out 😅

@zmitchell
Copy link
Author

It would be nice if there was a way for the user to pass flags to the underlying nix build/nix-build call.

@emilazy
Copy link
Collaborator

emilazy commented Sep 6, 2024

Does darwin-rebuild build --option builders '' not work?

@daniel-hope-koan
Copy link

daniel-hope-koan commented Oct 6, 2024

The config to use the builder may have been in the /etc/nix/nix.conf file

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

3 participants