| 1 May 2023 |
@yuka:yuka.dev | * I would love to see the build-on-target mode use that | 08:31:46 |
@yuka:yuka.dev | this also allows fun things like nix build .#nixosConfigurations.host.config.system.build.toplevel --eval-store ssh-ng://localhost --store ssh-ng://remote-host?remote-store=/mnt when the remote host is booted into a live iso for installation | 08:32:46 |
@yuka:yuka.dev | * this also allows fun things like
$ ssh remote-host "sudo mkdir -p /mnt/nix; sudo chown -R nixos /mnt/nix"
$ system=$(nix build .#nixosConfigurations.host.config.system.build.toplevel --eval-store ssh-ng://localhost --store ssh-ng://nixos@remote-host?remote-store=/mnt --print-out-paths)
$ ssh remote-host "sudo chown -R root:root /mnt/nix; sudo nixos-install --no-root-passwd --root /mnt --system $system"
when the remote host is booted into a live iso for installation
| 08:34:49 |
@yuka:yuka.dev | * this also allows fun things like
$ ssh nixos@remote-host "sudo mkdir -p /mnt/nix; sudo chown -R nixos /mnt/nix"
$ system=$(nix build .#nixosConfigurations.host.config.system.build.toplevel --eval-store ssh-ng://localhost --store ssh-ng://nixos@remote-host?remote-store=/mnt --print-out-paths)
$ ssh nixos@remote-host "sudo chown -R root:root /mnt/nix; sudo nixos-install --no-root-passwd --root /mnt --system $system"
when the remote host is booted into a live iso for installation
| 08:35:09 |
hexa | In reply to @yuka:yuka.dev The reason for this error is an import-from-derivation huh? how so? I see
stderr) error: a 'aarch64-linux' with features {} is required to build '/nix/store/21pl4g80gyk0jn77fy5pg4pr3vixj0vj-cabal2nix-arion-compose.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
| 09:40:02 |
hexa | does ifd not respect configured builders? | 09:40:27 |
@yuka:yuka.dev | from what I understood, no remote builders are configured on the system where colmena is run | 09:42:06 |
@yuka:yuka.dev | --build-on-target does not work by passing the target host as builder to nix | 09:42:22 |
@yuka:yuka.dev | * --build-on-target does pass the target host as builder to nix | 09:42:30 |
@yuka:yuka.dev | it just runs a nix-instantiate locally, then nix-copy-closure the .drv to the remote host, and then nix-store --realise on the remote host | 09:43:16 |
@yuka:yuka.dev | usually this works fine when the local host has a different arch because nix-instantiate only does evaluation and no builds. however, when some expression does an import-from-derivation it will suddenly also have to run builds during the nix-instantiate phase on the local host. and since the nixos system is being evaluated as system = aarch64-linux, those derivations are also using aarch64 binaries | 09:44:44 |
hexa | ah ok | 10:25:09 |
hexa | Didnt understand that --build-on-target was used | 10:25:33 |
| 2 May 2023 |
| @obsidianical:matrix.org changed their display name from ⚠️CYBER⚠️katze to Schrottkatze. | 22:36:20 |
| 3 May 2023 |
hexa | does colmena have a problem working on multiplexed ssh connections? | 13:38:02 |
hexa | I use a ControlMaster socket for ssh | 13:38:31 |
hexa | and when I am already logged into the host I | 13:38:48 |
hexa | * and when I am already logged into the host I'm deploying to, colmena gets stuck at "Pushing system closure" and "Activation system profiile" | 13:39:18 |
hexa | * and when I am already logged into the host I'm deploying to, colmena gets stuck at "Pushing system closure" and "Activation system profile" | 13:39:20 |
hexa | feels like it wants to disconnect/reconnect the ssh connection multiple times | 13:43:17 |
Wanja Hentze | I've seen colmena hang forever at pushing when using proxyjumps | 14:05:10 |
Wanja Hentze | seemed to happen only sporadically and only when using ssh-ng | 14:05:25 |
Wanja Hentze | does your problem happen *always* or just once in a while? | 14:05:49 |
hexa | it is highly reproducible | 14:33:42 |
hexa | iterated on a module, so I did 10+ deploys in a row | 14:33:56 |
hexa | got stuck every time I was logged in, tailing the journal | 14:34:06 |
emily | do you have a lot of deployment keys? jumphost? | 14:34:30 |
hexa | no jumphosts, strict key matching | 14:34:52 |
emily | sshd logs? do you use a lot of deployment keys that need to be uploaded each apply? (--no-keys maybe?) | 14:36:33 |
hexa | I don't use pre-activation keys | 14:39:56 |