Mic92/nixos-shell

Getting setup-hook: cannot execute binary file error

573 opened this issue · 5 comments

573 commented

When trying to utilise nixos-shell as remote builder host for my WSL client I accidentally came up with this minimal example - also my issue (note that this command was executed inside the nixos-shell session):

ssh nixos-shell
NIX_PATH=nixpkgs=http://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz nix-shell -p nix-info --run "nix-info -m"
unpacking 'http://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz'...
these paths will be fetched (0.05 MiB download, 0.28 MiB unpacked):
/nix/store/l31qzdd26g3rgn2a9h89sl7yjf71yim1-bash-interactive-4.4-p23-dev
copying path '/nix/store/l31qzdd26g3rgn2a9h89sl7yjf71yim1-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
/nix/store/qdf49mvm79r83n9c9s7pkmmjqwhrw8jv-stdenv-linux/setup: line 519: source: /nix/store/1xmid45vayj917km02cvkwq5054mz2ms-binutils-wrapper-2.35.1/nix-support/setup-hook: cannot execute binary file

The exact error I got when trying to build i. e. pandoc remotely as in:

NIX_PATH=nixpkgs=http://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz nix-build -E '(with import <nixpkgs> { system = "x86_64-linux"; }; pkgs.haskell.packages.ghc884.ghcWithPackages (pkgs: [pkgs.pandoc]))' --option builders 'ssh://nixos-shell' # this got me the error as well, see below
NIX_PATH=nixpkgs=http://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz nix-build -E '(with import <nixpkgs> {}; pkgs.haskell.packages.ghc884.ghcWithPackages (pkgs: [pkgs.pandoc]))' # while this built

Did I do something unusual here ?

The error log:

copying path '/nix/store/6zinf42qdyfx528wgl428s9ljx80s86j-JuicyPixels-3.3.5.tar.gz' from 'https://cache.nixos.org'...
copying path '/nix/store/qk5hji9phm573cp51c97nhph4v6bwwmh-ghc-8.8.4-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/q427hhgznng6cg7510ir4cm41m32hjmn-hscolour-1.24.4' from 'https://cache.nixos.org'...
copying path '/nix/store/i8zrgs1k4w633cgn967ypfhimlpkmnj3-ghc-8.8.4' from 'https://cache.nixos.org'...
copying path '/nix/store/wsjhnhvpaw50jw7zm2zbf818iajr7kq5-primitive-0.7.1.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/fzwylip49bbs36534986di1n47jzclkl-zlib-0.6.2.3-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/fzsrycbcmm4kfhpsahnmv1pacrs2agh2-primitive-0.7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/wpwfs183zgr5z258rpxaxxykfmh23lsr-vector-0.12.3.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/pi84scwxfxrif0qyz9vrlk6ff0jh58i7-zlib-0.6.2.3' from 'https://cache.nixos.org'...
copying path '/nix/store/faaa5szmazy4qasy2p99igwvzl2cadxy-vector-0.12.3.0' from 'https://cache.nixos.org'...
/nix/store/qdf49mvm79r83n9c9s7pkmmjqwhrw8jv-stdenv-linux/setup: line 519: source: /nix/store/1xmid45vayj917km02cvkwq5054mz2ms-binutils-wrapper-2.35.1/nix-support/setup-hook: cannot execute binary file
builder for '/nix/store/j1m8vd2qb047ims91gnkazlh54184dqx-JuicyPixels-3.3.5.drv' failed with exit code 126
573 commented

Is this related to the setting

{...}: {
nix.nixPath = [
  "nixpkgs=${pkgs.path}"
];
}

Or better asked is that needed ?

Mic92 commented

NIX_PATH in the vm should not have any effect when doing remote building. There is no nix code evaluated inside the VM in this case. I would say your issues is maybe more related to what you are trying to build. Maybe check what is inside /nix/store/1xmid45vayj917km02cvkwq5054mz2ms-binutils-wrapper-2.35.1/nix-support/setup-hook inside the VM.

573 commented

@Mic92 good point.

I just can't explain why setup-hook is binary full of zeros now in nixos-shell. When I probe on WSL

$
head -c 16 /nix/store/1xmid45vayj917km02cvkwq5054mz2ms-binutils-wrapper-2.35.1/nix-support/setup-
hook | hexdump -C
00000000 23 20 53 69 6e 63 65 20 74 68 65 20 73 61 6d 65 |# Since the same|
00000010

vs. when I probe on host (nixos-shell)

[root@nixos:~/nixos-shell-14-07-2021]#
head -c 16 /nix/store/1xmid45vayj917km02cvkwq5054mz2ms-binutils-wrapper-2.35.1/nix-support/setup
-hook | hexdump -C
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000010

573 commented

Without virtualisation.writableStoreUseTmpfs = false; in vm.nix I get

# NIX_PATH=nixpkgs=http://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz nix-shell -p nix-info --run "nix-info -m"

  • system: "x86_64-linux"
  • host os: Linux 5.13.2, NixOS, 21.11pre302630.bfef28861df (Porcupine)
  • multi-user?: no
  • sandbox: yes
  • version: nix-env (Nix) 2.3.10
  • nixpkgs: /nix/store/52wjpq748sdxshkwjdaspixh3a47hpp9-nixexprs.tar.xz

Rebuilding pandoc no matter if in WSL directly or in nixos-shell then leads to a different error:

/nix/store/iy1pq628dl0pdmrkbx9nnb4z1w6kqgn0-zip-archive-0.4.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/qb3klgj10h53z2g6k9bzazxx86y4cwrh-xml-1.3.14/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/x83pdbwc62zw47pagzajdjb73xmnfiaf-texmath-0.12.3/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/5fq0yhg2xn06jdihdi2qk18zr8n6p1gh-tagsoup-0.14.8/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/m4cxncd5kz2x4cfc3sg61c0r1i6h7s21-pretty-show-1.10/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/1g38kqc4giv64vldii6h7vvp3iisis79-utf8-string-1.0.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/a76v9cawji1innxqlxpd9agd28rsz1vj-ansi-terminal-0.11/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/hcsqyjzkha6v9p9jzg3mjrk80s3h66vw-skylighting-core-0.10.5.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ix27vaph4dzgr2gbymy8ir93ym4bmc2g-skylighting-0.10.5.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/p00mbkbg05sa6dh86fgbj23cy633d85p-SHA-1.6.4.4/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ycbl22mb419pkl27nf49lysxr3j9qz60-JuicyPixels-3.3.5/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/p1hj4qmxs66dx0lfwfz4v9ddc9xnbd39-jira-wiki-markup-1.4.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ads3bxak0sjlngxns340wz84mispynak-ipynb-0.1.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/wb6cw6g9llmphc44vf3b3f2f2s7vjyhn-http-client-tls-0.3.5.3/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/s165mn27n5im8kjsj9nnc83g3byssa05-mime-types-0.1.0.9/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/lnfa6x1c9pygfs9b3jajz3dg74dy34qn-http-types-0.12.3/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/a6bbbbvrvc6yf8j1ca1a1rv5lbvyzzwx-cookie-0.4.5/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/wv72x5nnlxdr434abzwfpc2vk1sgw7zp-http-client-0.6.4.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/c82s78hlwimysslsrjml1gyrxq7ibc87-HTTP-4000.3.16/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/cp620rpq4aikbab2nz4vhp7xvq4dz4kz-hslua-module-text-0.3.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/qpm2nj1csjc193srjc2mwymni4wbw81z-temporary-1.3/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ssm1052yacv3hj8xdmpz0y2h6d4kqdkc-hslua-module-system-0.2.2.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/7ivm91476rma618ci9fj2ii2s4ylmmmh-hslua-module-path-0.1.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/y34gg5yfrg3nj0q79y2b3jz4zdkyj5qv-hslua-1.3.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ik18zm3ycrpjm01impwadw3rmrvyxz86-haddock-library-1.10.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/0dk49dp5cqz5dhs7jxvndy4047s5wfv1-Glob-0.10.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/f83c2n3vd9b5as0f66na4lpdqcbmqqkk-errors-2.3.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/0az2r9jj15v18b26yhyx2cl0h7hj4zcd-base16-bytestring-1.0.1.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/70l3xrwz33594b4nqa87rycj48yfv42s-text-conversions-0.3.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/n1i59w7w92wx403cwxqdm7m8kfx4vgjn-HsYAML-0.2.1.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/536dn8sg5jlwg6kfzykdqmmypgmdsqpv-doctemplates-0.9/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ks972bwsd97xk41aab45y5vgkd5vis44-doclayout-0.3.0.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/b0h3gwbd04m5cjlf9wmyb5q4g7928j9g-x509-system-1.6.6/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/xr32sahm64dl9783qwpa4cp7m58ff28p-x509-validation-1.6.11/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/72sx0z7nkh85m5wi18z9llxxd48243p4-x509-store-1.6.7/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/slv3pddxzlzbbdpvslp155y0m5hi60bm-pem-0.2.4/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/mik2gfcsdfcgx952wsx46jakqa0dpk43-asn1-parse-0.9.5/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/gvphxvnmygjcb211vc43q47jxygzlbpz-x509-1.7.5/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/q14qymddhsnxz9b1qb2f182if2y42ls1-cryptonite-0.29/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/d3gfn2frqh8j386lxf9pkyyficzdhik9-memory-0.15.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/3i28ix6yvkrpbkmslgx3i450s596pkqs-hourglass-0.2.12/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ji9xn5gd27z26v7xqlgm8ghharybj6vi-asn1-types-0.3.4/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/hhs1d7azv868lcac0agffszk73kafwcf-asn1-encoding-0.9.6/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/538nsj8k2c8x6igfzbvqhmxz0aqacr50-tls-1.5.5/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/7x7zmv3vfhlfcy9hgik57mw8r29gqigh-cereal-0.5.8.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/2jnxkznazg76wfw6janmxyagal5zqqsf-socks-0.6.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/rg4jm71lkmrdy5dyp6ky7cimb7m6cnxj-basement-0.0.12/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/8v8c5shbygi3nxlb10v4jlk7vrim61w5-connection-0.3.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/pyjfx90j1mnxwka96x0casxicla4sl97-commonmark-pandoc-0.2.1.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/88hf60y6mhwk7pcnjkn5kcv4rmfk2fxq-th-compat-0.1.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ijc1y0rflqiphjqic4lpih0n7hv88j4j-network-uri-2.6.4.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/x5c6p1s0x2zfhrnar37kx7ci98cdvrnn-emojis-0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/2hgya018gszjdcc56mnzzszj22f9251d-commonmark-extensions-0.2.1.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/pmcdaydhfmgrb3qz1vb20kdv1571ab6q-unicode-transforms-0.3.7.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/p484hqsn6i1gik28gi50kpl5fgpcr17x-commonmark-0.2.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/x24wja30nk75binvql4v7xi7wl69w6av-xml-types-0.3.8/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/yc66zl380fdklybjn7fl57zfpvwfwjb0-typed-process-0.2.6.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/4cbqq3h4gjlyhbblf4yfbhynz4ds4n5b-zlib-0.6.2.3/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ys31yhig8v606szkvlzmv0nyfmn73hp7-streaming-commons-0.2.2.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/4pq44khbxndn9fdjlrzkk0sp4x8prc2s-network-3.1.1.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/z0jlrylpic9556dw05xgdngwxh2fv8pb-async-2.2.3/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/dzbdjqskl5cc4i9gapcgwwglpj1vckx0-conduit-extra-1.3.5/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/rqk4jv5kycba52jal0xh55cl24mzw7gc-unliftio-core-0.2.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/5k1ixg4yajzigy31janhyy11hvgkvjag-resourcet-1.2.4.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/6pi8qnkzkbxfgv32hyv340w2vyff11sh-vector-algorithms-0.8.0.4/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/i103rj3y0pdg1q5ldai1p2bw04hyhm4m-mono-traversable-1.0.15.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/y9wigxszzz0cyg7pxskl2v0fj4yqnq13-conduit-1.3.4.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/rrfsggq7rf6kwr3rf24mqls8bv5pg4r1-xml-conduit-1.9.1.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/428a6vlj0l2z247cmv517jiddjlw5rn2-uniplate-1.6.13/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/9ricncz6zmfph6lcj8ybga5g2p98fp8m-th-lift-0.8.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/m36672cj89n4v1kb89nnfm4m8hi3fy1y-th-lift-instances-0.1.18/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/4j804mzbz66p1bfdahsyd613z38df35y-unicode-collation-0.1.3/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ksf1gmzxmwxgzl5fzxlssqrxr40mrknc-QuickCheck-2.14.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/v5rxakd9lpy33vnf26jjzmkkhflpbn2m-pandoc-types-1.22/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/gplhgj1lb79frgg1wkdvv6ahgyn49kyv-file-embed-0.0.14.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/nlqi6ljrcr3z8i1i58ib4gbslrd28ypz-data-default-instances-old-locale-0.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/kbjzvih2p2kc3msdm4cn4fzi86lsfq0z-data-default-instances-dlist-0.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/vv6xfqiwmg6bjnmcr1cw5da5i2ii4jjz-data-default-instances-containers-0.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ssc2vj9295iwcawd1gbykgiw2w8dmjqn-data-default-0.7.1.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/vddxmbvz3jcmv8q0xrivzqkpz1wfbryg-citeproc-0.4.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/javm2dyz890s4s1x4hp7a11wgcixhk9s-case-insensitive-1.2.1.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/z8ynf525dsfz6pzi50i2fss4kl5ngmsx-blaze-markup-0.8.2.8/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/d8d0w5n8g8rja97fd2ix5djza3ch0pcp-blaze-builder-0.4.2.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/srfpcq99m0zzbk3pnb0gysap9r7fjxc2-blaze-html-0.9.1.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/l5yv8bl0qgzxhqv3qwvbfrfhcqmdfw0c-base64-bytestring-1.1.0.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/bmvmq0bkfm88sqqdl9dd0ic738zrhr8h-cmdargs-0.10.21/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/bzglvxf0sac3z7n6mmhjc5rpnivbmqsv-aeson-pretty-0.8.8/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/dxbi3c7b1xsgfqdmbhqwdikknb4xz77p-vector-0.12.3.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/y1diq2ncrli0nph0x3lbk0bzx76a02nf-splitmix-0.1.0.3/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/0mwyiycp26y916x5445lxlk9hzi68cg1-random-1.2.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/06i6k264lgl03k8rjyn04bcyvmsm10lg-uuid-types-1.0.5/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/imwac3igar3klz7dz1kl3mxbq0c5b0nc-unordered-containers-0.2.14.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/dg4raw42nqa2f9l6lhcryp522vi613rh-time-compat-1.9.5/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/wfp74hldsdpjxvarsmlxd791zkawja40-these-1.1.1.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ijdzjlk1ky6yzlk1z10z43wp4fjfgarl-th-abstraction-0.4.2.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/k6123m85izwrspgch6qpl5q7a0ms2rp4-transformers-compat-0.6.6/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/3isbqslcpcgrnjl4l3xrfqvy7mrrxdf2-indexed-traversable-0.1.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/fvnfsmmix7n1p9q3ljj89nij802fw36m-tagged-0.8.6.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/mvfyz6n6syb20h5zr1xwnlqns8xhmhsy-distributive-0.6.2.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/4pkk032mah98x8839j0xk4rfvzsshbc9-comonad-5.0.8/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/xn80v073z2hi16v0yx55g8an4c7lyqph-base-orphans-0.8.4/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/z0wcjd8wr3j7q0d4h9256514q6a0c03x-bifunctors-5.5.11/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/1x652hivfiifb9rncc1z9lgc41pcq8by-assoc-1.0.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/rhm9iv0xwnwdzz2a6h1y1g2sklk2vaba-strict-0.4.0.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/sdpcjvc7xxsl4kdhfmlm8212ihm4vcp0-dlist-1.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/srly1hky9nnif18mn2i3xb059ayw7pab-data-fix-0.3.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/a7yq5lagx392671ygns1vd7kgxbm8y58-base-compat-0.11.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/gchs6r75ccqzqr0ljv0yw9rbnnh2dbxf-base-compat-batteries-0.11.2/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/d2yb0q314s3wq9mx4rbf8xzlrk9axbfg-primitive-0.7.1.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/h2ql7fwmwzsi8zc7pd5idkpack9yjl08-integer-logarithms-1.0.3.1/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/dqfis8fmkj31h059fp811k0q0gl1r6g7-hashable-1.3.0.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/5zjwipgajnpz636za201jvilch5lbg6a-scientific-0.3.7.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/w7rslw46k2bqnfbs4ghrh0pjx0z5vy9n-attoparsec-0.13.2.5/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/3zj0nshm0m3bpv54476fbxagfv6hhb68-aeson-1.5.6.0/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/ffx7is1a751r4xhak1wmvvc12i4xl9bg-pandoc-2.14.0.3/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
/nix/store/x2s3x19bz9w95033l5x5dyyl6zfzhn8s-ghc-8.10.4/nix-support:
propagated-build-inputs: /nix/store/md2b1c15x6a9h96n0g2c5h8as5jhsvhk-digest-0.0.1.2/nix-support/propagated-build-inputs
ghc-pkg: Couldn't open database /nix/store/d6imznim4pfdaxywg46jiff0vpdnzs0s-ghc-8.10.4-with-packages/lib/ghc-8.10.4/package.conf.d for modification: {handle: /nix/store/d6imznim4pfdaxywg46jiff0vpdnzs0s-ghc-8.10.4-with-packages/lib/ghc-8.10.4/package.conf.d/package.cache.lock}: hLock: invalid argument (Invalid argument)

(nix-store --read-log /nix/store/5nj2n127irk1lwc0fb33475wdjalw0lk-ghc-8.10.4-with-packages.drv)

573 commented

My first attempt on garbage collecting (nix-collect-garbage -d) failed (had some disk space errors causing incomplete builds earlier) due to database inconsistencies, NixOS/nix#2218 (comment) helped

sqlite3 /nix/var/nix/db/db.sqlite .dump | sed -e '/redmine/d' | sqlite3 /tmp/db.sqlite
mv /tmp/db.sqlite /nix/var/nix/db/db.sqlite

The garbage collection then succeeded and I was successful building pandoc on the remote host as well:

$ NIX_PATH=nixpkgs=http://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz nix-build -E '(with import <nixpkgs> { system = "x86_64-linux"; }; pkgs.haskell.packages.ghc884.ghcWithPackages (pkgs: [pkgs.pandoc]))' --option builders 'ssh://nixos-shell'