serialised integer is too large for type #831

Closed
opened 2025-05-12 17:37:33 +00:00 by benaryorg · 1 comment

Describe the bug

I can't quite say when it's been starting (I'd guess a month or two), but recently I've been getting a large number of these errors:

warning: SSH to 'nix-ssh@nixos.home.bsocat.net' failed, stdout first line: ''
cannot build on 'ssh://nix-ssh@nixos.home.bsocat.net': error: failed to start SSH connection to 'nix-ssh@nixos.home.bsocat.net': error: serialised integer 7022364302122705765 is too large for type 'j'
full error
% nix -vv build --no-link --print-build-logs --print-out-paths -f . ceph -j0
these 2 derivations will be built:
  /nix/store/7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv
  /nix/store/5l4372rcci38jyl4raycd1hpz0gvldgd-ceph-19.2.2.drv
connecting to 'ssh://nix-ssh@nixos.home.bsocat.net'...
warning: SSH to 'nix-ssh@nixos.home.bsocat.net' failed, stdout first line: ''
cannot build on 'ssh://nix-ssh@nixos.home.bsocat.net': error: failed to start SSH connection to 'nix-ssh@nixos.home.bsocat.net': error: serialised integer 7022364302122705765 is too large for type 'j'
Failed to find a machine for remote build!
derivation: 7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv
required (system, features): (x86_64-linux, [])
1 available machines:
(systems, maxjobs, supportedFeatures, mandatoryFeatures)
([x86_64-linux], 32, [benchmark, big-parallel, nixos-test], [])
error: unable to start any build; remote machines may not have all required system features.
       https://docs.lix.systems/manual/lix/stable/advanced-topics/distributed-builds.html
and a snippet from the even more verbose version
building of '/nix/store/7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv^out' from .drv file: trying to build
locking path '/nix/store/84d8lhd0xxa5pvkaqjhkkrxz12rw1n1a-python3-3.11.12-env'
lock acquired on '/nix/store/84d8lhd0xxa5pvkaqjhkkrxz12rw1n1a-python3-3.11.12-env.lock'
removing invalid path '/nix/store/84d8lhd0xxa5pvkaqjhkkrxz12rw1n1a-python3-3.11.12-env'
starting build hook '/nix/store/cvb4myiq79l6503ka1627wng3svcb8bm-lix-2.93.0-dev/bin/nix __build-remote'
got 1 remote builders
considering building on remote machine 'ssh://nix-ssh@nixos.home.bsocat.net'
connecting to 'ssh://nix-ssh@nixos.home.bsocat.net'...
warning: SSH to 'nix-ssh@nixos.home.bsocat.net' failed, stdout first line: ''
killing process 2161819
cannot build on 'ssh://nix-ssh@nixos.home.bsocat.net': error: failed to start SSH connection to 'nix-ssh@nixos.home.bsocat.net': error: serialised integer 7022364302122705765 is too large for type 'j'
considering building on remote machine 'ssh://nix-ssh@nixos.home.bsocat.net'
Failed to find a machine for remote build!
derivation: 7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv
required (system, features): (x86_64-linux, [])
1 available machines:
(systems, maxjobs, supportedFeatures, mandatoryFeatures)
([x86_64-linux], 32, [benchmark, big-parallel, nixos-test], [])
hook reply is 'decline'
lock released on '/nix/store/84d8lhd0xxa5pvkaqjhkkrxz12rw1n1a-python3-3.11.12-env.lock'

Where 7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv looks like a normal derivation to me.
To be sure I checked the internal-json log format and while that one mentions an "id", it is a different one than the reported "j", and grep -Eo '[0-9]+' | jq -s max on the .drv file gives 56118121 which is far off.

Steps To Reproduce

The problem is that I can consistently reproduce it whenever it happens (i.e. Arrow Up, Enter), but since it depends on the ssh transport and only happens sometimes with a seemingly random derivation.
Not sure if anyone can reproduce this with the

Expected behavior

Either a more usable error message (if there is an identifiable underlying problem) or "it should just work".

nix --version output

Lix 885dde9c3d

nix (Lix, like Nix) 2.93.0-dev
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/benaryorg/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/benaryorg/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/benaryorg/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/benaryorg/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/qcplsl7m8ydk4293if9n6nkb8j0r24s7-lix-2.93.0-dev/share

Additional context

The only reference (that isn't the upstream bug which doesn't apply to me) I can find to this is a Discourse thread.

To be clear, this is not breaking for me due to my infra, so I don't depend on this, and I'm fine with it being lowest prio given that I seem to be one of three people who had this issue.

## Describe the bug I can't quite say when it's been starting (I'd guess a month or two), but recently I've been getting a large number of these errors: ```text warning: SSH to 'nix-ssh@nixos.home.bsocat.net' failed, stdout first line: '' cannot build on 'ssh://nix-ssh@nixos.home.bsocat.net': error: failed to start SSH connection to 'nix-ssh@nixos.home.bsocat.net': error: serialised integer 7022364302122705765 is too large for type 'j' ``` <details><summary>full error</summary> ```console % nix -vv build --no-link --print-build-logs --print-out-paths -f . ceph -j0 these 2 derivations will be built: /nix/store/7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv /nix/store/5l4372rcci38jyl4raycd1hpz0gvldgd-ceph-19.2.2.drv connecting to 'ssh://nix-ssh@nixos.home.bsocat.net'... warning: SSH to 'nix-ssh@nixos.home.bsocat.net' failed, stdout first line: '' cannot build on 'ssh://nix-ssh@nixos.home.bsocat.net': error: failed to start SSH connection to 'nix-ssh@nixos.home.bsocat.net': error: serialised integer 7022364302122705765 is too large for type 'j' Failed to find a machine for remote build! derivation: 7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv required (system, features): (x86_64-linux, []) 1 available machines: (systems, maxjobs, supportedFeatures, mandatoryFeatures) ([x86_64-linux], 32, [benchmark, big-parallel, nixos-test], []) error: unable to start any build; remote machines may not have all required system features. https://docs.lix.systems/manual/lix/stable/advanced-topics/distributed-builds.html ``` </details> <details><summary>and a snippet from the even more verbose version</summary> ```text building of '/nix/store/7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv^out' from .drv file: trying to build locking path '/nix/store/84d8lhd0xxa5pvkaqjhkkrxz12rw1n1a-python3-3.11.12-env' lock acquired on '/nix/store/84d8lhd0xxa5pvkaqjhkkrxz12rw1n1a-python3-3.11.12-env.lock' removing invalid path '/nix/store/84d8lhd0xxa5pvkaqjhkkrxz12rw1n1a-python3-3.11.12-env' starting build hook '/nix/store/cvb4myiq79l6503ka1627wng3svcb8bm-lix-2.93.0-dev/bin/nix __build-remote' got 1 remote builders considering building on remote machine 'ssh://nix-ssh@nixos.home.bsocat.net' connecting to 'ssh://nix-ssh@nixos.home.bsocat.net'... warning: SSH to 'nix-ssh@nixos.home.bsocat.net' failed, stdout first line: '' killing process 2161819 cannot build on 'ssh://nix-ssh@nixos.home.bsocat.net': error: failed to start SSH connection to 'nix-ssh@nixos.home.bsocat.net': error: serialised integer 7022364302122705765 is too large for type 'j' considering building on remote machine 'ssh://nix-ssh@nixos.home.bsocat.net' Failed to find a machine for remote build! derivation: 7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv required (system, features): (x86_64-linux, []) 1 available machines: (systems, maxjobs, supportedFeatures, mandatoryFeatures) ([x86_64-linux], 32, [benchmark, big-parallel, nixos-test], []) hook reply is 'decline' lock released on '/nix/store/84d8lhd0xxa5pvkaqjhkkrxz12rw1n1a-python3-3.11.12-env.lock' ``` </details> Where [*7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv*](https://s3.home.ニャー.net/pub/7ak8cya3ryxn7wyv20pbpxvyrrx0ij7y-python3-3.11.12-env.drv) looks like a normal derivation to me. To be sure I checked the *internal-json* log format and while that one mentions an "id", it is a different one than the reported "j", and `grep -Eo '[0-9]+' | jq -s max` on the .drv file gives 56118121 which is far off. ## Steps To Reproduce The problem is that I can consistently reproduce it whenever it happens (i.e. Arrow Up, Enter), but since it depends on the ssh transport and only happens sometimes with a seemingly random derivation. Not sure if anyone can reproduce this with the ## Expected behavior Either a more usable error message (if there is an identifiable underlying problem) or "it should just work". ## `nix --version` output Lix 885dde9c3d65ffe90bc8411f143a06c4c62f46e1 ```text nix (Lix, like Nix) 2.93.0-dev System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/benaryorg/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/benaryorg/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/benaryorg/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/benaryorg/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/qcplsl7m8ydk4293if9n6nkb8j0r24s7-lix-2.93.0-dev/share ``` ## Additional context The only reference (that isn't [the upstream bug](https://github.com/NixOS/nixpkgs/issues/37287) which doesn't apply to me) I can find to this is [a Discourse thread](https://discourse.nixos.org/t/how-can-i-nixos-rebuild-on-the-pi-without-getting-the-error-serialized-integer-is-too-large-for-type/39108/4). To be clear, this is not breaking *for me* due to my infra, so I don't depend on this, and I'm fine with it being lowest prio given that I seem to be one of three people who had this issue.
Owner

duplicate of #830

duplicate of #830
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#831
No description provided.