error: boost::too_many_args: format-string referred to fewer arguments than were passed #178

Closed
opened 2024-03-25 13:31:11 +00:00 by yu-re-ka · 3 comments
Member

Describe the bug

doing a remote build with both local and remote being lix commit 5a1c35f907, I get an error "error: boost::too_many_args: format-string referred to fewer arguments than were passed"

Steps To Reproduce

Not entirely sure 😬. Some combination of remote builds?

Expected behavior

The build should succeed

nix-env --version output

nix-env (Nix) 2.90.0-lix

Additional context

looks like the same as https://github.com/NixOS/nix/issues/10238 (but that is too new to have been imported)

[yuka@m1:~/proj/digital-nixfiles]$ nix --version
nix (Nix) 2.90.0-lix

[yuka@m1:~/proj/digital-nixfiles]$ ssh yoyo.yuka.dev
Last login: Mon Mar 25 14:12:38 2024 from 2a01:599:b01:48e2:ca89:f3ff:feb9:73b

[yuka@yoyo:~]$ nix --version
nix (Nix) 2.90.0-lix

[yuka@yoyo:~]$ 
logout
Shared connection to yoyo.yuka.dev closed.

[yuka@m1:~/proj/digital-nixfiles]$ nix build .#nixosConfigurations.peyote.config.system.build.toplevel --override-input digital-secrets ../digital-fake-secrets/ --override-input nixpkgs ../nixpkgs --keep-going --builders "ssh://yoyo.yuka.dev x86_64-linux" --builders-use-substitutes  -j0
warning: Git tree '/home/yuka/proj/digital-fake-secrets' is dirty
warning: not writing modified lock file of flake 'git+file:///home/yuka/proj/digital-nixfiles':
• Updated input 'digital-secrets':
    'git+ssh://digital@higanbana.fdadf.net/srv/vcs/digital/digital-secrets.git?ref=refs/heads/main&rev=0a513c6fbb4d5fd890fe376add3141a9c7ae508b' (2024-03-15)
  → 'git+file:///home/yuka/proj/digital-fake-secrets' (2023-02-16)
• Updated input 'nixpkgs':
    'github:digtail/nixpkgs/81c2da20cf352dad7c97d8961310ea62b8153d12' (2024-03-02)
  → 'git+file:///home/yuka/proj/nixpkgs?ref=424f9132fbab6eb6b758b5ce2cef2b7bddeafb28&rev=424f9132fbab6eb6b758b5ce2cef2b7bddeafb28' (2024-03-24)
error: boost::too_many_args: format-string referred to fewer arguments than were passed
error:
       … while reading the response from the build hook

       error: unexpected EOF reading a line

[yuka@m1:~/proj/digital-nixfiles]$ 

I did not ever see this on nix 2.17.1, but it seems to be a common issue with newer nix versions.

## Describe the bug doing a remote build with both local and remote being lix commit 5a1c35f90756508617b4d694d49c4ac3defff1c5, I get an error "error: boost::too_many_args: format-string referred to fewer arguments than were passed" ## Steps To Reproduce Not entirely sure 😬. Some combination of remote builds? ## Expected behavior The build should succeed ## `nix-env --version` output nix-env (Nix) 2.90.0-lix ## Additional context looks like the same as https://github.com/NixOS/nix/issues/10238 (but that is too new to have been imported) ``` [yuka@m1:~/proj/digital-nixfiles]$ nix --version nix (Nix) 2.90.0-lix [yuka@m1:~/proj/digital-nixfiles]$ ssh yoyo.yuka.dev Last login: Mon Mar 25 14:12:38 2024 from 2a01:599:b01:48e2:ca89:f3ff:feb9:73b [yuka@yoyo:~]$ nix --version nix (Nix) 2.90.0-lix [yuka@yoyo:~]$ logout Shared connection to yoyo.yuka.dev closed. [yuka@m1:~/proj/digital-nixfiles]$ nix build .#nixosConfigurations.peyote.config.system.build.toplevel --override-input digital-secrets ../digital-fake-secrets/ --override-input nixpkgs ../nixpkgs --keep-going --builders "ssh://yoyo.yuka.dev x86_64-linux" --builders-use-substitutes -j0 warning: Git tree '/home/yuka/proj/digital-fake-secrets' is dirty warning: not writing modified lock file of flake 'git+file:///home/yuka/proj/digital-nixfiles': • Updated input 'digital-secrets': 'git+ssh://digital@higanbana.fdadf.net/srv/vcs/digital/digital-secrets.git?ref=refs/heads/main&rev=0a513c6fbb4d5fd890fe376add3141a9c7ae508b' (2024-03-15) → 'git+file:///home/yuka/proj/digital-fake-secrets' (2023-02-16) • Updated input 'nixpkgs': 'github:digtail/nixpkgs/81c2da20cf352dad7c97d8961310ea62b8153d12' (2024-03-02) → 'git+file:///home/yuka/proj/nixpkgs?ref=424f9132fbab6eb6b758b5ce2cef2b7bddeafb28&rev=424f9132fbab6eb6b758b5ce2cef2b7bddeafb28' (2024-03-24) error: boost::too_many_args: format-string referred to fewer arguments than were passed error: … while reading the response from the build hook error: unexpected EOF reading a line [yuka@m1:~/proj/digital-nixfiles]$ ``` I did not ever see this on nix 2.17.1, but it seems to be a common issue with newer nix versions.
yu-re-ka added the
bug
label 2024-03-25 13:31:11 +00:00
Owner

wonder if you can catch the remote end in the act with a rr recording. This is a terribly frustrating bug, of course, this shouldn't even happen and the fact it's not diagnosable is so silly.

hrmmm. if it happens regularly enough maybe we could get you a patch that aborts on that error so you get a core dump to look at?

wonder if you can catch the remote end in the act with a rr recording. This is a terribly frustrating bug, of course, this shouldn't even happen and the fact it's not diagnosable is so silly. hrmmm. if it happens regularly enough maybe we could get you a patch that aborts on that error so you get a core dump to look at?
Author
Member

It happens reproducibly in my setup, so I could definitely install a patch

It happens reproducibly in my setup, so I could definitely install a patch
qyriad was assigned by jade 2024-03-25 22:27:11 +00:00
Owner

qyriad hit this reproducibly, so we are going to find out what it is.

qyriad hit this reproducibly, so we are going to find out what it is.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#178
No description provided.