Repository navigation
Closed
Description
Hi,
I tried deploying to a virtualbox image but got stuck at some point with the following error:
<snip>
building `/nix/store/ycwiwm4cmzd5frxa64n5a56avj1n51gm-linux-3.12.17.drv' on `[email protected]'
building /nix/store/zgj2c55i4yp9y3h3jh71yjs19hm338lq-linux-3.12.17
unpacking sources
unpacking source archive /nix/store/i5nsyj3sqwyi2ay18r8j8j80kai7nrjv-linux-3.12.17.tar.xz
mm_send_fd: sendmsg(0): Message too long
mux_client_request_session: send fds failed
mm_receive_fd: recvmsg: expected received 1 got 0
process_mux_new_session: failed to receive fd 0 from slave
Died at /nix/store/7m61x2ywlrh9000llm0bk4w0p8lcnwwb-nix-1.7/lib/perl5/site_perl/5.16.3/darwin-2level/Nix/CopyClosure.pm line 38.
<snip>(the complete log is available here)
I thought I could work around that by avoiding to build from the sources, by running this command, courtesy of Shea:
$ nixops deploy -d blah --option binary-caches "http://cache.nixos.org http://hydra.nixos.org"but it just fails with the same error, at a different point:
fetching path `/nix/store/ihazgkzzdwjkpyn6390s764j0irl7scp-firmware'...
*** Downloading ‘http://hydra.nixos.org/nar/ihazgkzzdwjkpyn6390s764j0irl7scp-firmware’ to ‘/nix/store/ihazgkzzdwjkpyn6390s764j0irl7scp-firmware’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
mm_send_fd: sendmsg(0): Message too long
mux_client_request_session: send fds failed
mm_receive_fd: recvmsg: expected received 1 got 0
process_mux_new_session: failed to receive fd 0 from slave
Died at /nix/store/7m61x2ywlrh9000llm0bk4w0p8lcnwwb-nix-1.7/lib/perl5/site_perl/5.16.3/darwin-2level/Nix/CopyClosure.pm line 38.
builder for `/nix/store/mwx4ra3wx6d3l892vh9gspphgv36wcvf-libmemcached-1.0.18.drv' failed with exit code 255I'm not sure what other information you guys would need to understand where this is coming from, so just ask me anything that's missing.
The following versions are installed on my OS X (10.8.4, x86_64), VirtualBox 4.3.8:
$ nixops --version
NixOps 1.2
$ nix-env --version
nix-env (Nix) 1.7Metadata
Metadata
Assignees
Labels
No labels
Activity
shlevy commentedon Apr 16, 2014
Seems like this might be caused by some issue with the ssh master connection multiplexing.
proger commentedon Apr 24, 2014
Confirming the same problem, using
env NIX_SSHOPTS="-o 'ControlMaster none' -S none"helps.benmos commentedon Apr 30, 2014
Same behaviour here - OS X (10.8.5, x86_64), VirtualBox 4.3.10. Same nixops & nix-env versions. Workaround suggested by proger seems to fix it.
aszlig commentedon Jun 19, 2014
I'm not an OS X expert, so I'm just guessing that it is unable to pass fd 0 becausessh_utilis passing/dev/nullto stdin. Can you retry by instead just closing stdin over there?Never mind, because
/dev/nullis only passed if using the Hetzner backend.Can you create DTrace output (with sensitive information removed) of this?
pikajude commentedon Jul 14, 2014
@aszlig any idea of the required dtrace options?
aszlig commentedon Jul 15, 2014
@joelteon: I guess
-fshould be enough, but again I'm no OS X expert.edolstra commentedon Jul 15, 2014
FWIW nix-copy-closure in Nix master no longer uses a master connection.
pikajude commentedon Jul 15, 2014
@edolstra that definitely changes the error message, at least:
edolstra commentedon Jul 15, 2014
The new
build-remote.plis unfortunately not backwards compatible with Nix 1.7, so you'll need to upgrade the remote machine as well.domenkozar commentedon Jun 3, 2016
@pikajude I take it this is no longer relevant in recent Nix. Please reopen if that's not the case.
@brittonr has signed the CLA from Pull Request NixOS#243
Merge pull request NixOS#243 from BrittonR/patch-1
Merge pull request NixOS#243 from DeterminateSystems/eelcodolstra/fh-…
abbreviate flakeref revisions in human-readable output
abbreviate flakeref revisions in human-readable output
doc/inventory: 2026-05 adversarial audit — corrections, NixOS#241-Nix…
libutil/git: parse Git object sizes and modes with checked helpers
doc/inventory: foundation batch 1 — Branch lines for NixOS#243/NixOS#244
abbreviate flakeref revisions in human-readable output
abbreviate flakeref revisions in human-readable output