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

rustup hanging during self-update on Windows #2147

Closed
Mingun opened this issue Dec 7, 2019 · 3 comments
Closed

rustup hanging during self-update on Windows #2147

Mingun opened this issue Dec 7, 2019 · 3 comments
Labels

Comments

@Mingun
Copy link

Mingun commented Dec 7, 2019

Problem
This is the second time rustup hangs at the end of the installation. At first I thought it was a one-off problem because of a certain nightly, but it 's repeated a second time. The first time was about a month ago. There have already been several similar problems, but all of them are closed without any explanation.

Current cmd output:

>rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: syncing channel updates for 'beta-x86_64-pc-windows-msvc'
info: latest update on 2019-12-03, rust version 1.40.0-beta.4 (1463fedbd 2019-12-02)
info: downloading component 'rustc'
 36.0 MiB /  36.0 MiB (100 %)   4.4 MiB/s ETA:   0 s
info: downloading component 'rust-std'
 15.7 MiB /  15.7 MiB (100 %)   4.3 MiB/s ETA:   0 s
info: downloading component 'cargo'
info: downloading component 'rust-docs'
 11.9 MiB /  11.9 MiB (100 %)   3.8 MiB/s ETA:   0 s
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
info: latest update on 2019-12-07, rust version 1.41.0-nightly (ae1b871cc 2019-12-06)
info: downloading component 'rustc'
 35.9 MiB /  35.9 MiB (100 %)   4.3 MiB/s ETA:   0 s
info: downloading component 'rust-std'
 14.9 MiB /  14.9 MiB (100 %)   4.1 MiB/s ETA:   0 s
info: downloading component 'cargo'
info: downloading component 'rust-docs'
 11.9 MiB /  11.9 MiB (100 %)   3.9 MiB/s ETA:   0 s
info: downloading component 'rustc-dev'
172.6 MiB / 172.6 MiB (100 %)   4.1 MiB/s ETA:   0 s
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: removing component 'rustc-dev'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: installing component 'rustc-dev'
info: checking for self-updates
info: downloading self-update

  stable-x86_64-pc-windows-msvc unchanged - rustc 1.39.0 (4560ea788 2019-11-04)
      beta-x86_64-pc-windows-msvc updated - rustc 1.40.0-beta.4 (1463fedbd 2019-12-02)
   nightly-x86_64-pc-windows-msvc updated - rustc 1.41.0-nightly (ae1b871cc 2019-12-06)

rustup hang

Steps

  1. run rustup update

Notes
When process hang:
Output of rustup --version:

D:\Projects\other>rustup --version
error: could not remove 'setup' file: 'D:\Users\mingun\.cargo\bin/rustup-init.exe'
info: caused by: Отказано в доступе. (os error 5)

D:\Projects\other>

Output of rustup show:

D:\Projects\other>rustup show
error: could not remove 'setup' file: 'D:\Users\mingun\.cargo\bin/rustup-init.exe'
info: caused by: Отказано в доступе. (os error 5)

D:\Projects\other>

After killing hanging process:

D:\Projects\other>rustup --version
rustup 1.13.0 (ea9259c1b 2018-07-16)

D:\Projects\other>rustup show
Default host: x86_64-pc-windows-msvc

installed toolchains
--------------------

stable-x86_64-pc-windows-msvc
beta-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc (default)

active toolchain
----------------

nightly-x86_64-pc-windows-msvc (default)
rustc 1.41.0-nightly (ae1b871cc 2019-12-06)


D:\Projects\other>
@Mingun Mingun added the bug label Dec 7, 2019
@rbtcollins
Copy link
Contributor

rbtcollins commented Dec 7, 2019 via email

@kinnison kinnison changed the title rustup update hang to install nightly rustup handing during self-update on Windows Dec 8, 2019
@kinnison kinnison changed the title rustup handing during self-update on Windows rustup hanging during self-update on Windows Dec 8, 2019
@Mingun
Copy link
Author

Mingun commented Dec 11, 2019

Heisenbug: I captured Process Monitor trace, but update was succesfull. Maybe because I tried at first run rustup self update, but it ran very quickly, maybe it nothing actually update?

Full output:

D:\Projects\other>rustup self update
info: checking for self-updates
info: downloading self-update
info: rustup updated successfully to 1.20.2

D:\Projects\other>rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: syncing channel updates for 'beta-x86_64-pc-windows-msvc'
info: latest update on 2019-12-09, rust version 1.40.0-beta.5 (b509d9b59 2019-12-08)
info: downloading component 'rustc'
 36.0 MiB /  36.0 MiB (100 %)   4.5 MiB/s in  9s ETA:  0s
info: downloading component 'rust-std'
 15.7 MiB /  15.7 MiB (100 %)   4.5 MiB/s in  3s ETA:  0s
info: downloading component 'cargo'
info: downloading component 'rust-docs'
 11.9 MiB /  11.9 MiB (100 %)   4.7 MiB/s in  3s ETA:  0s
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 'rustc'
 36.0 MiB /  36.0 MiB (100 %)  12.0 MiB/s in  4s ETA:  0s
info: installing component 'rust-std'
 15.7 MiB /  15.7 MiB (100 %)   8.4 MiB/s in  2s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-docs'
 11.9 MiB /  11.9 MiB (100 %) 411.2 KiB/s in  1m  3s ETA:  0s
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
info: latest update on 2019-12-11, rust version 1.41.0-nightly (7dbfb0a8c 2019-12-10)
info: downloading component 'rustc'
 35.9 MiB /  35.9 MiB (100 %)   4.6 MiB/s in  9s ETA:  0s
info: downloading component 'rust-std'
 14.9 MiB /  14.9 MiB (100 %)   4.7 MiB/s in  3s ETA:  0s
info: downloading component 'cargo'
info: downloading component 'rust-docs'
 12.0 MiB /  12.0 MiB (100 %)   3.8 MiB/s in  3s ETA:  0s
info: downloading component 'rustc-dev'
172.8 MiB / 172.8 MiB (100 %)   4.6 MiB/s in 40s ETA:  0s
info: downloading component 'rust-src'
info: downloading component 'rust-analysis'
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: removing previous version of component 'rustc-dev'
info: removing previous version of component 'rust-src'
info: removing previous version of component 'rust-analysis'
info: installing component 'rustc'
 35.9 MiB /  35.9 MiB (100 %)  11.0 MiB/s in 18s ETA:  0s
  9 iops /   9 iops (100 %)   6 iops/s in  1s ETA:  0s
info: installing component 'rust-std'
 14.9 MiB /  14.9 MiB (100 %)  10.4 MiB/s in  2s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-docs'
 12.0 MiB /  12.0 MiB (100 %) 688.0 KiB/s in 31s ETA:  0s
info: retrying renaming 'D:\Users\mingun\.rustup\tmp\h1uup6wfz6l5b8f2_dir\rust-docs\share/doc/rust/html' to 'D:\Users\mingun\.rustup\toolchains\nightly-x86_ 64-pc-windows-msvc\share/doc/rust/html'
info: installing component 'rustc-dev'
172.8 MiB / 172.8 MiB (100 %)  10.6 MiB/s in 22s ETA:  0s
  7 iops /   7 iops (100 %)   1 iops/s in 11s ETA:  0s
info: installing component 'rust-src'
  2.3 MiB /   2.3 MiB (100 %)   1.1 MiB/s in  3s ETA:  0s
info: installing component 'rust-analysis'
info: checking for self-updates

  stable-x86_64-pc-windows-msvc unchanged - rustc 1.39.0 (4560ea788 2019-11-04)
      beta-x86_64-pc-windows-msvc updated - rustc 1.40.0-beta.5 (b509d9b59 2019-12-08)
   nightly-x86_64-pc-windows-msvc updated - rustc 1.41.0-nightly (7dbfb0a8c 2019-12-10)


D:\Projects\other>

@rbtcollins
Copy link
Contributor

Probably a #2441 duplicate - perhaps a failed wait-for-parent-to-exit call.

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

2 participants