Rustup: Bad nightly source tarball (contained a symlink)

Created on 21 Jul 2020  ·  12Comments  ·  Source: rust-lang/rustup

Problem
Receiving an error on update (stable/nightly) leading to rollback

Steps
❯ rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: latest update on 2020-07-21, rust version 1.47.0-nightly (f9a308636 2020-07-20)
info: downloading component 'rust-analysis'
info: downloading component 'rust-src'
info: downloading component 'rustc'
48.1 MiB / 48.1 MiB (100 %) 43.6 MiB/s in 1s ETA: 0s
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: removing previous version of component 'rust-analysis'
info: removing previous version of component 'rust-src'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'cargo'
info: removing previous version of component 'rust-docs'
info: installing component 'rust-analysis'
info: Defaulting to 500.0 MiB unpack ram
info: installing component 'rust-src'
info: rolling back changes
error: could not rename component file from '/Users/chetanconikee/.rustup/tmp/gx57en2l_r5p93hz_dir/bk' to '/Users/chetanconikee/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin'
error: tar entry kind 'Symlink' is not supported
info: checking for self-updates

   stable-x86_64-apple-darwin unchanged - rustc 1.45.0 (5c1f21c3b 2020-07-13)

nightly-x86_64-apple-darwin update failed - rustc 1.47.0-nightly (d7f945163 2020-07-19)

info: cleaning up downloads & tmp directories

bug

Most helpful comment

I am also seeing this on linux (Ubuntu 18.04)

All 12 comments

Likewise on Win10 x64 (MSVC ABI, if it matters).

This looks like toolchains have started including symlinks, which they only
can on some platforms, and definitely not on windows, so I think we should
reassign this bug to rust itself.

There's already a PR to fix this at https://github.com/rust-lang/rust/pull/74578

I am also seeing this on linux (Ubuntu 18.04)

Just ran into this as well on Manjaro 20.0.3

Seen on macOS 10.15.6

It's not surprising, it's a bug in the channel generation, not a bug in Rustup. See https://github.com/rust-lang/rustup/issues/2434#issuecomment-661655854

Seems like https://github.com/rust-lang/rust/pull/74578 is merged to master and yet I see failures on update

 12.8 MiB /  12.8 MiB (100 %)   2.7 MiB/s in  4s ETA:  0s
info: removing previous version of component 'rust-analysis'
info: removing previous version of component 'rust-src'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'cargo'
info: removing previous version of component 'rust-docs'
info: installing component 'rust-analysis'
info: Defaulting to 500.0 MiB unpack ram
info: installing component 'rust-src'
info: rolling back changes
error: could not rename component file from '/Users/xxx/.rustup/tmp/uq2qki3860ngfh1s_dir/bk' to '/Users/xxx/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin'
error: tar entry kind 'Symlink' is not supported
info: checking for self-updates

       stable-x86_64-apple-darwin unchanged - rustc 1.45.0 (5c1f21c3b 2020-07-13)
  nightly-x86_64-apple-darwin update failed - rustc 1.47.0-nightly (d7f945163 2020-07-19)

info: cleaning up downloads & tmp directories

It was merged like 10 minutes ago, what do you expect? Nightlies are built once a day - well, night :).

Also you can expect to encounter this if the next few nightlys lack a component you depend on, unless you remove those components, rustup will be unable to update nightly until it has everything you need.

Nightlies are built once a day - well, night :).

More accurately, around midnight GMT/UTC (not exactly sure what timezone) the last PR that landed is promoted to "nightly".
(Effectively every time we merge a PR we build a "nightly" from it - rustup-toolchain-install-master lets you install any PR build, although I believe we delete old ones after a number of days. you could use it to test that the bug is fixed, maybe?)

So you have to wait another 13h-14h or so before a new nightly is published.

This was fixed in rust itself

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KasMA1990 picture KasMA1990  ·  3Comments

Stargateur picture Stargateur  ·  3Comments

durka picture durka  ·  3Comments

jjl picture jjl  ·  3Comments

netgusto picture netgusto  ·  4Comments