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

Cargo Failed to update registry, Windows 10, Access is denied. (os error 5) #8211

Closed
Charles-Schleich opened this issue May 6, 2020 · 0 comments
Labels
C-bug Category: bug

Comments

@Charles-Schleich
Copy link

Posting this here in case anyone else runs into the issue, along with a potential solution.
Fresh project just with one dependency,
Following terminal output

λ cargo build
    Updating crates.io index
error: failed to load source for a dependency on `env_logger`

Caused by:
  Unable to update registry `https://github.com/rust-lang/crates.io-index`

Caused by:
  Access is denied. (os error 5)

.cargo in my home folder was marked as hidden in properties under the Attributes section.
Making it unhidden (recursively with subdirectories) seemed to fix the issue.

@Charles-Schleich Charles-Schleich added the C-bug Category: bug label May 6, 2020
bors added a commit that referenced this issue May 12, 2020
Add context to some fs errors.

This adds some extra context to most fs operations that indicates some more detail (particularly the path).  It can be frustrating when cargo says something generic like "Access is denied." without printing a path or information about what it is doing.

Addresses #8211, where it adds extra context to the message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

1 participant