8000 pynixd: a build input that cache.nixos.org holds is reported 'not valid' · Issue #16 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

pynixd: a build input that cache.nixos.org holds is reported 'not valid' #16

Closed

Description

@Lillecarl

A build through pynixd failed because an input that cache.nixos.org holds was "not valid". The cause is not known yet. This issue records what was seen.

Seen on dynhetz, 2026-10-18 (UTC), pynixd /nix/store/09hbrqjapvlkzhyvdvc21pgwjzf94m4m-pynixd-0.1.0. An ekn kubeapply realised a manifest closure D1C5 through pynixd for 970 s and failed at 17:47:53:

error: error: path '/nix/store/0d75g2735r8rz9hba90ifvc748v6wd9k-python3.12-asn1crypto-1.5.1-unstable-2023-11-03' is not valid
error: Cannot build '/nix/store/rgqajmdcjfn3bri4f9zydgp20z497k96-odoo-serve.drv'.
       Reason: 1 dependency failed.

Right after, the path was not in /nix/store, and the two sockets disagreed:

nix path-info <path>                       -> "will be fetched (1.5 MiB download)", then "is not valid"
nix path-info --store .../upstream <path>  -> "will be fetched (259.0 KiB download)", then "is not valid"
nix build --store .../upstream <path>      -> copied from http://127.0.0.1:8080, valid

So pynixd's HTTP front served the NAR, and a plain substitution through the real daemon worked. A retry of the same apply then passed this point.

In the same window (17:31-17:48), pynixd logged:

  • 10 substitution_query_timeout against http-cache.nixos.org (17:32), for other paths.
  • GC activity: 3 gc_veto_closure_incomplete, 3 gc_chunk_interrupted, 170 gc_chunk_refused.

The journal names the asn1crypto path only at 17:48, in the manual substitution. Neither lead is shown to be the cause: a timed-out substituter query, or a GC chunk that removed an input before the build used it.


Assisted-By: Claude Opus 5.5

Activity

  1. added theissue type on Oct 19, 2026
  2. Lillecarl commented on Nov 10, 2026

    @Lillecarl
    ContributorAuthor

    A lead, not a proof: the window held 10 substitution_query_timeout lines. Until f39f4fa (#1265), a substituter query past 2 s counted as "no substitute", and a narinfo GET past 5 s failed. Under load, both turned a path that cache.nixos.org holds into one pynixd treated as unavailable. pynixd has no deadline on a query now, as in Nix. If this recurs after a deploy of f39f4fa, that lead is ruled out.


    Assisted-By: Claude Opus 5.5

  3. added a commit that references this issue on Nov 17, 2026
    73f58ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: pynixd

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0