NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.32k stars 1.49k forks source link

Install hangs #6009

Open njaremko opened 2 years ago

njaremko commented 2 years ago

Describe the bug Two, probably related, bugs:

  1. Ran the install script on an install with an unencrypted nix volume, it asked if I wanted to encrypt it, I said yes, then it encrypted the drive and hanged
  2. Ran it again with a mounted, newly encrypted Nix volume (from 1), it force unmounted it, then hanged
  3. Ran it again with the encrypted nix volume unmounted, and it finally worked, until it hit:

    
    ---- sudo execution ------------------------------------------------------------
    I am executing:
    
    $ sudo cp -RLp ./store/015rgxn5xx5awkz48yhh9c9n1bsvvivm-libiconv-50 ./store/0cgmjzpv8xy2ll3z1wwpnj5js58ddp07-libcxx-7.1.0 ./store/0ma0hl096m764z10k1lp5fwvl7pzm16a-boehm-gc-8.0.4 ./store/0qkfjbhpq6v36rdy8j5arnxdrapv3i3m-libkrb5-1.18 ./store/1j82hjxc28ccvi8i4f3zqg8gia3zvcnp-openssl-1.1.1l ./store/2p623hvx2ha2clb6ry2cyyd0jdz0qyd8-aws-c-cal-0.4.5 ./store/3saax6q1s9im5p80nxhdqpjmw3g4nzg8-curl-7.76.1 ./store/4hdh249mvpywd9qka6awibgdils1mf2a-libcpuid-0.5.1 ./store/5l22hgwshwq7sqn7wqdxmpq1q2100br8-libarchive-3.5.2-lib ./store/5py10pm1w9ziv4qgsk80ghqxwf51syv1-brotli-1.0.9-lib ./store/69dskd4cabzl6cxch5lbfss73l3r6bya-apple-framework-Security ./store/6p1mr7avpnni6n7ssxqjfj7fa4sy00x0-openssl-1.1.1l ./store/79q6vp06aj2p550f2wgn9zywywm6pmir-libcxxabi-7.1.0 ./store/80lzb3092v637di7ihbwx888isy1w1li-libssh2-1.9.0 ./store/8vdyi0ifc098g6cnw38pqbwi78drkgj0-aws-sdk-cpp-1.8.121 ./store/95n0y1033piss1slf99is61a3zc0yv0p-libsodium-1.0.18 ./store/9lzf8irh5b0v9vix6j847vyhqp5lxwq6-aws-checksums-0.1.11 ./store/afpdl5r9jnb8bx42nzpqi0c6g1flwldg-Libsystem-1238.60.2 ./store/cpgyi9khbv1yg2i22vg0zhmsnif9aih9-bash-4.4-p23 ./store/d0dxz2ysp7xd49l8w2n738pps2k3d7m9-aws-c-io-0.9.1 ./store/g8fbhc5bn0mi29gw3jhxm4hrlif00nlz-brotli-1.0.9-lib ./store/gb9nkla1b2zplgbn7j01q7l8hswgwcnb-xz-5.2.5 ./store/hw5v03wnc0k1pwgiyhblwlxb1fx5zyx8-nix-2.6.0 ./store/i0zac1vw0ra6g2mg701m3kc9xbi24lgg-zlib-1.2.11 ./store/i8rksi0pqzcbmsfs48kwp5nvih8mfn4a-bzip2-1.0.6.0.2 ./store/jd1l64vr0b5y1qvdsrminn53gkvamm32-editline-1.17.1 ./store/k5i7ralzb1w0jx3fyn8q9n80kwv16l33-swift-corefoundation ./store/k5vggrdqvyb4lgyy7ck7s7wlyfiqfh9k-sqlite-3.35.5 ./store/k7vg16vz0dsxjfxv0a2hkxw7y4msv7la-zstd-1.4.9 ./store/kldmyqpq68qqp5y80fa0y66zlfzalm7m-aws-c-event-stream-0.2.7 ./store/kvcxphxg6pwp9wgvb468l5m5sbd5krrs-aws-c-common-0.5.5 ./store/kvvpk2vdlh4pc8qyfxcd1rlzyr4zb3bp-libssh2-1.9.0 ./store/n2a3hyr6kmadwpivr0x36xylj9j0wcja-curl-7.76.1 ./store/nqfyfv5lq0n00iqakzcpbl5cq2dkwdz8-libxml2-2.9.12 ./store/r0023xa974x14h83jwrcc8x6i54n9b78-libxml2-2.9.12 ./store/s3dhqrdq6mj935q2pfgw373w0n8459m1-apple-framework-IOKit ./store/wil7lqvyfb18hkdv0bdrf5h0f9y5v9lm-ICU-66108 ./store/wiqcjg66s7sb6cais8pifrk3l9cpkrmq-nss-cacert-3.66 ./store/x0r180c6xm8zgfnczhi27831ly56k888-nghttp2-1.43.0-lib ./store/z31hmk06a669vhjaj6ahn5x2i73l2bsy-libkrb5-1.18 ./store/zqigm4h2qjj8pr6z47aj4zf3rasrb6fy-nghttp2-1.43.0-lib /nix/store/

to copy the basic Nix files to the new store at /nix/store

cp: /nix/store/69dskd4cabzl6cxch5lbfss73l3r6bya-apple-framework-Security/Library/Frameworks/Security.framework/Resources and ./store/69dskd4cabzl6cxch5lbfss73l3r6bya-apple-framework-Security/Library/Frameworks/Security.framework/Resources are identical (not copied). cp: /nix/store/69dskd4cabzl6cxch5lbfss73l3r6bya-apple-framework-Security/Library/Frameworks/Security.framework/Versions/A/Resources and ./store/69dskd4cabzl6cxch5lbfss73l3r6bya-apple-framework-Security/Library/Frameworks/Security.framework/Versions/A/Resources are identical (not copied). cp: /nix/store/69dskd4cabzl6cxch5lbfss73l3r6bya-apple-framework-Security/Library/Frameworks/Security.framework/Versions/Current/Resources and ./store/69dskd4cabzl6cxch5lbfss73l3r6bya-apple-framework-Security/Library/Frameworks/Security.framework/Versions/Current/Resources are identical (not copied). cp: /nix/store/s3dhqrdq6mj935q2pfgw373w0n8459m1-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Resources and ./store/s3dhqrdq6mj935q2pfgw373w0n8459m1-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Resources are identical (not copied). cp: /nix/store/s3dhqrdq6mj935q2pfgw373w0n8459m1-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/A/Resources and ./store/s3dhqrdq6mj935q2pfgw373w0n8459m1-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/A/Resources are identical (not copied). cp: /nix/store/s3dhqrdq6mj935q2pfgw373w0n8459m1-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/Current/Resources and ./store/s3dhqrdq6mj935q2pfgw373w0n8459m1-apple-framework-IOKit/Library/Frameworks/IOKit.framework/Versions/Current/Resources are identical (not copied).

---- oh no! -------------------------------------------------------------------- Jeeze, something went wrong. If you can take all the output and open an issue, we'd love to fix the problem so nobody else has this issue.

:(

We'd love to help if you need it.

You can open an issue at https://github.com/nixos/nix/issues

Or feel free to contact the team:

abathur commented 2 years ago
StillerHarpo commented 1 year ago

Is still an issue. I wanted a new nix version (Would have been better to just update with nix). It hangs at

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/sbin/diskutil unmount force disk1s6

to ensure the Nix volume is not mounted

Volume Nix Store on disk1s6 force-unmounted
abathur commented 1 year ago

@StillerHarpo No more lines? There's been an occasional issue in the past with hangs in roughly this part of the code, but I think it should've gotten a section further, as shown in this comment: https://github.com/NixOS/nix/issues/5547#issuecomment-1023488300

If you're using Terminal.app, you can right-click, Show Inspector, and see what processes are running. In the case I linked, I would expect it to show diskutil running repeatedly--but I'm not quite sure if that'll be the cause here.

StillerHarpo commented 1 year ago

I don't have the terminal with the hang anymore. I manged to install nix by deleting the old store and restarting the install script multiple times.