Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad nightly source tarball (contained a symlink) #2434

Closed
conikeec opened this issue Jul 21, 2020 · 12 comments
Closed

Bad nightly source tarball (contained a symlink) #2434

conikeec opened this issue Jul 21, 2020 · 12 comments
Labels

Comments

@conikeec
Copy link

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

@conikeec conikeec added the bug label Jul 21, 2020
@dodheim
Copy link

dodheim commented Jul 21, 2020

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

@rbtcollins
Copy link
Contributor

rbtcollins commented Jul 21, 2020 via email

@phil-opp
Copy link
Contributor

There's already a PR to fix this at rust-lang/rust#74578

@highway900
Copy link

I am also seeing this on linux (Ubuntu 18.04)

@hamaluik
Copy link

Just ran into this as well on Manjaro 20.0.3

@dvdplm
Copy link

dvdplm commented Jul 21, 2020

Seen on macOS 10.15.6

@kinnison
Copy link
Contributor

It's not surprising, it's a bug in the channel generation, not a bug in Rustup. See #2434 (comment)

@conikeec
Copy link
Author

Seems like rust-lang/rust#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

@birkenfeld
Copy link

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

@kinnison
Copy link
Contributor

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.

@eddyb
Copy link
Member

eddyb commented Jul 22, 2020

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.

@rbtcollins rbtcollins changed the title Error on update leading to rollback Bad nightly source tarball (contained a symlink) Aug 4, 2020
@rbtcollins
Copy link
Contributor

This was fixed in rust itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants