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

Rust self-update will block builds #246

Closed
2 of 5 tasks
kaylangan opened this issue Jan 9, 2020 · 10 comments
Closed
2 of 5 tasks

Rust self-update will block builds #246

kaylangan opened this issue Jan 9, 2020 · 10 comments
Assignees
Labels
Area: Rust investigate Collect additional information, like space on disk, other tool incompatibilities etc.

Comments

@kaylangan
Copy link
Contributor

Describe the bug
See https://github.com/microsoft/azure-pipelines-image-generation/issues/1224

Area for Triage: Rust

Question, Bug, or Feature?: Bug

Virtual environments affected

  • macOS 10.15
  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • Windows Server 2016 R2
  • Windows Server 2019

Expected behavior
Rust call succeeds even if an update is available.

Actual behavior
Call fails with:

error: could not remove 'setup' file: 'C:\Users\runneradmin\.cargo\bin/rustup-init.exe'
info: caused by: Access is denied. (os error 5)
@github-actions github-actions bot added Area: Rust bug Something isn't working labels Jan 9, 2020
@kinnison
Copy link

kinnison commented Jan 9, 2020

FYI I think I'm managing to update rustup and rust in some fashion in a workflow: https://github.com/rust-lang/rustup/runs/381347070#step:11:12

@github-actions
Copy link
Contributor

This issue has not had any activity in 30 days, if you still require assistance please remove the no-issue-activity label

@AlenaSviridenko
Copy link
Contributor

Closing this issue since no customers raise this issue for a while.
Feel free to open new ticket if the issue still persists and blocks something.

@divergentdave
Copy link

I ran into this issue with this build: https://github.com/spacejam/sled/pull/1129/checks?check_run_id=887343882. The command was rustup update, and the error message was:

error: could not remove 'setup' file: 'C:\Users\runneradmin\.cargo\bin/rustup-init.exe'
error: caused by: Access is denied. (os error 5)

Presumably this issue went away previously because the image was updated, and it has come back again since rustup released a new version recently.

divergentdave added a commit to spacejam/sled that referenced this issue Jul 19, 2020
@maxim-lobanov
Copy link
Contributor

Reopened to revisit this issue

@al-cheb
Copy link
Contributor

al-cheb commented Jul 20, 2020

@divergentdave,
Could you please replace and validate your workflow with rustup update to rustup update | Out-Null ?

@maxim-lobanov
Copy link
Contributor

Related issue: rust-lang/rustup#2415
--no-self-update does workaround and build is green but rust self-update still fails.
Interesting point that file C:\Users\runneradmin\.cargo\bin/rustup-init.exe doesn't exist until rustup update command

@divergentdave
Copy link

@al-cheb My builds are also running on Linux and Mac, so I don't think I can use Out-Null. I plan to use the --no-self-update workaround.

@mati865
Copy link

mati865 commented Jul 20, 2020

@divergentdave you can use bash everywhere and then run with rustup update || true. This will ignore update error.

@Darleev Darleev added investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed bug Something isn't working labels Jul 22, 2020
@Darleev
Copy link
Contributor

Darleev commented Jul 27, 2020

Hello,
The issue was reproduced locally and finally reported to Rust team. You can track status of the issue in the Rust repository:
rust-lang/rustup#2441
As a workaround, just need to add some sleep interval between rustup update and other rust-related tasks. Also, you can use the previously mentioned solution: rustup update --no-self-update

In case of any questions, please do not hesitate to contact us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Rust investigate Collect additional information, like space on disk, other tool incompatibilities etc.
Projects
None yet
Development

No branches or pull requests

10 participants