Access is Denied (os error 5)
Hello everyone,
Before I explain the problem I am having, I just want to say that I have reached out to the Microsoft Windows and Rust communities in an attempt to find a solution.
I have had the rust language installed on my machine before and had no issues running the installer. I needed to reinstall it today, though, everytime I run the installer (with administrative privelages), once the "fmt" Module begins installing, an error stating: cleaning up cached downloads: Access is denied (os error 5) is displayed. I have read up on how AV software might affect the installation, and have also attempted to scan the .cargo, .rustup, and installer. files all with a contextual scan. The other two communites are at a loss with trying to find a solution. If BD can cause this type of error, I would greatly appreciate any feedback on it.
Edit: I have cleared all temp, %temp%, and prefetch just to see if would have any influence at all. I ran the RUST-UP installer, and again, it is throwing the same error.
info: profile set to 'default'
info: default host triple is x86_64-pc-windows-msvc
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
732.1 KiB / 732.1 KiB (100 %) 450.4 KiB/s in 1s ETA: 0s
info: latest update on 2023-03-28, rust version 1.68.2 ( 2023-03-27)
info: downloading component 'cargo'
4.2 MiB / 4.2 MiB (100 %) 1.8 MiB/s in 2s ETA: 0s
info: downloading component 'clippy'
1.9 MiB / 1.9 MiB (100 %) 1.9 MiB/s in 1s ETA: 0s
info: downloading component 'rust-docs'
19.4 MiB / 19.4 MiB (100 %) 3.4 MiB/s in 35s ETA: 0s
info: downloading component 'rust-std'
27.2 MiB / 27.2 MiB (100 %) 3.5 MiB/s in 9s ETA: 0s
info: downloading component 'rustc'
63.0 MiB / 63.0 MiB (100 %) 3.8 MiB/s in 21s ETA: 0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
19.4 MiB / 19.4 MiB (100 %) 2.6 MiB/s in 35s ETA: 0s
info: installing component 'rust-std'
27.2 MiB / 27.2 MiB (100 %) 19.9 MiB/s in 1s ETA: 0s
info: installing component 'rustc'
63.0 MiB / 63.0 MiB (100 %) 23.2 MiB/s in 2s ETA: 0s
info: installing component 'rustfmt'
error: cleaning up cached downloads: Access is denied. (os error 5)
Thank you
Comments
-
Check if below steps help:
1) Temporarily disable Bitdefender Protection: https://www.bitdefender.com/consumer/support/answer/28557/
2) Set exclusion in Bitdefender Antivirus: https://www.bitdefender.com/consumer/support/answer/13427/
3) Set exclusion in Bitdefender Advanced Threat Defense: https://www.bitdefender.com/consumer/support/answer/2393/
4) Try installing your respective software.
If issue persist, then there is nothing wrong at bitdefender's end since you have already disabled all the protection features of bitdefender and also set your software exclusion in bitdefender.
5) Re-enable real time protection in Bitdefender.
If issue is resolved by disabling the bitdefender protection features,
Generate bitdefender BDsysLog: https://www.bitdefender.com/consumer/support/answer/1922/
Generate bitdefender support tool logs: https://www.bitdefender.com/consumer/support/answer/1733/
Generate bitdefender connectivity logs: https://www.bitdefender.com/consumer/support/answer/9689/
Share the logs & your query with bitdefender support team by dropping them an email at bitsy@bitdefender.com
If the generated logs are larger in size, you can upload the logs to google drive or we.tl (7days link validity for free users) or ask the support team to provide you with the online link & password of bitdefender cloud where you can upload the logs and share the upload link with the support team.
The support team will reply back to your query within next 24-48 hours excluding weekends.
Regards
Life happens, Coffee helps!
Show your Attitude, when you reach that Altitude!
Bitdefender Ultimate Security Plus (user)
1 -
Solution: I ran a quick scan and the RUSTUP-INIT.exe simultaneously, and it worked. It was very odd, but I think running them at the same time allowed for BD to check the process to see if any malware would be detected.
I didn't have to disable anything suprisingly
Thank you for your help!
1 -
To make sure that your software is not affected by bitdefender in future, you can always set it in the bitdefender exclusion and that software will be ignored from future scans.
1) Set exclusion in Bitdefender Antivirus: https://www.bitdefender.com/consumer/support/answer/13427/
2) Set exclusion in Bitdefender Advanced Threat Defense: https://www.bitdefender.com/consumer/support/answer/2393/
Regards
Life happens, Coffee helps!
Show your Attitude, when you reach that Altitude!
Bitdefender Ultimate Security Plus (user)
2 -
I definetely will be doing that from now on, thank you so much for your help!
Have a great day!
1