{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nix/issues/1988","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/1988/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/1988/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/1988/events","html_url":"https://github.com/NixOS/nix/issues/1988","id":306312810,"number":1988,"title":"Nix 2.0: nix copy stalls","user":{"login":"chris-martin","id":399718,"avatar_url":"https://avatars2.githubusercontent.com/u/399718?v=4","gravatar_id":"","url":"https://api.github.com/users/chris-martin","html_url":"https://github.com/chris-martin","followers_url":"https://api.github.com/users/chris-martin/followers","following_url":"https://api.github.com/users/chris-martin/following{/other_user}","gists_url":"https://api.github.com/users/chris-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-martin/subscriptions","organizations_url":"https://api.github.com/users/chris-martin/orgs","repos_url":"https://api.github.com/users/chris-martin/repos","events_url":"https://api.github.com/users/chris-martin/events{/privacy}","received_events_url":"https://api.github.com/users/chris-martin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-03-19T02:19:46Z","updated_at":"2018-03-22T16:16:50Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I've been deploying a server with `nix copy` for a while now, but suddenly I find it's no longer working.\r\n\r\n```\r\n$ nix copy /nix/store/cg47i25qrhp3lcd3hirgwc28pd7yxw0v-nixos-system-tc-webserver1-18.03pre-git --to ssh://example.com --no-check-sigs --verbose\r\ncopying 11 paths...\r\ncopying path '/nix/store/lkr614grgjfm7dghyw8zj9x5i4dwhmcy-qemu-2.11.1' to 'ssh://example.com'...\r\nwarning: dumping very large path (> 256 MiB); this may run out of memory\r\n[1/0/11 copied (406.0/410.7 MiB)] copying path '/nix/store/lkr614grgjfm7dghyw8zj9x5i4dwhmcy-qemu-2.11.1' to 'ssh://example.com'\r\n```\r\n\r\nThe command pauses (apparently indefinitely) with no clue as to why. If I interrupt it and run it again, I get exactly the same behavior.\r\n\r\nWatching `top` on the server, I see that a `nix-store --serve --write` process is running.\r\n\r\nI've tried restarting sshd and nix-daemon on the server, and I've rebooted my laptop.\r\n\r\n---\r\n\r\nUpdate: After about an hour, the `nix copy` command printed this and halted:\r\n\r\n```\r\nerror: Nix daemon out of memory\r\nreaping 3 worker threads\r\nkilling process 9152\r\n[0 copied (408.5 MiB)]\r\nerror: unexpected end-of-file\r\n```"},"comment":{"url":"https://api.github.com/repos/NixOS/nix/issues/comments/375365671","html_url":"https://github.com/NixOS/nix/issues/1988#issuecomment-375365671","issue_url":"https://api.github.com/repos/NixOS/nix/issues/1988","id":375365671,"user":{"login":"chris-martin","id":399718,"avatar_url":"https://avatars2.githubusercontent.com/u/399718?v=4","gravatar_id":"","url":"https://api.github.com/users/chris-martin","html_url":"https://github.com/chris-martin","followers_url":"https://api.github.com/users/chris-martin/followers","following_url":"https://api.github.com/users/chris-martin/following{/other_user}","gists_url":"https://api.github.com/users/chris-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-martin/subscriptions","organizations_url":"https://api.github.com/users/chris-martin/orgs","repos_url":"https://api.github.com/users/chris-martin/repos","events_url":"https://api.github.com/users/chris-martin/events{/privacy}","received_events_url":"https://api.github.com/users/chris-martin/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T16:16:50Z","updated_at":"2018-03-22T16:16:50Z","author_association":"CONTRIBUTOR","body":"@dtzWill Yes, the nixUnstable build is still failing on master.\r\n\r\n```\r\n      nixUnstable = pkgs.nixUnstable.overrideAttrs (oldAttrs: rec {\r\n        src = pkgs.fetchFromGitHub {\r\n          owner = \"NixOS\";\r\n          repo = \"nix\";\r\n          rev = \"2bc6cfe1adc89673626a173ee38ef300588be3d1\";\r\n          sha256 = \"1qcvmngdxpdn6l6was8j6biaxc2hc6ywhsv4hk6lg21llkb2203s\";\r\n        };\r\n      });\r\n```\r\n\r\n```\r\n$ nix install nixUnstable\r\ninstalling 'nix-2.0'\r\nthese derivations will be built:\r\n  /nix/store/v0zsbbbgp97yijh7kfdhiy39s1d3i7bi-nix-2.0.drv\r\nbuilding '/nix/store/v0zsbbbgp97yijh7kfdhiy39s1d3i7bi-nix-2.0.drv'...\r\nunpacking sources\r\nunpacking source archive /nix/store/cwgndzm925ryqs4b7hk3a9mzlk4nyjql-source\r\nsource root is source\r\npatching sources\r\nconfiguring\r\nno configure script, doing nothing\r\nbuilding\r\nbuild flags: -j1 -l1 SHELL=/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/bash profiledir=\\$\\(out\\)/etc/profile.d\r\n  GEN    Makefile.config\r\n/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/bash: ./config.status: No such file or directory\r\n  GEN    src/libexpr/parser-tab.cc\r\n/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/bash: bison: command not found\r\nmake: *** [src/libexpr/local.mk:24: src/libexpr/parser-tab.cc] Error 127\r\nbuilder for '/nix/store/v0zsbbbgp97yijh7kfdhiy39s1d3i7bi-nix-2.0.drv' failed with exit code 2\r\nerror: build of '/nix/store/v0zsbbbgp97yijh7kfdhiy39s1d3i7bi-nix-2.0.drv' failed\r\n```"}}
{"actor":{"display_login":"chris-martin"}}