-
Notifications
You must be signed in to change notification settings - Fork 892
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
Aniviruses cause a huge slowdown for 'rust-docs' installation #763
Comments
I did further testing, it seems I was wrong. Rust-docs actually installs if I wait long enough, but it takes more than 1 hours, while the other components are installed in a few seconds. |
Yeah, I've had similar issues on my PC at home. This is anecdotal (I should do some actual measuring) but I've got both Ubuntu and Windows 10 installed (both on SSD) on that PC and on Windows, installing the docs takes a lot longer (a couple of minutes instead of less than 30 seconds) than on Ubuntu. |
I use |
@oherrala thanks for the pointer. But I also face this problem of huge delays in rust-docs installation on some systems. |
Windows 10, using WSL also experiencing hangs on rust-docs installation. Have not yet verified whether full install will complete. |
I see this on my Windows 10 laptop, but it seems to take hours with Trend Micro OfficeScan running, minutes with Windows Defender, and seconds with no antivirus software at all. 7-Zip manages to extract the documentation relatively quickly, so it appears that rustup is doing something which makes disk access very slow in my case. I have a hypothesis that AV software is much more suspicious about temporary files with random extensions than files with |
It seem you identified the culprit. My company use Trend Micro OfficeScan on desktop computers, where I noticed the installation take hours. |
I also ran into this. I have a mostly default installation of Windows 10 (I just have Steam installed). The installation hung on rust-docs. I checked Windows Defender and Real-time protection was enabled. I removed rust with |
I have the same problem with Windows 10 Creators Update and WSL. The funny part is that I have problems only on my netbook, not my desktop computer, despite the fact they both have Ubuntu 16.04.2 LTS and the same version of the same antivirus (Bitdefender). |
Is there any workaround for this issue? Seems adding |
The workaround is either adding exclusions to your antivirus or disabling your antivirus. |
Hello, Disabling the antivirus, while it did speed rustup up a little bit, still doesn't fix the problem. Previously, rustup took 20-25 minutes, ON AVERAGE, to install, now it's more like 15-20 minutes. |
Shouldn't Rust-Docs (which is the part that hangs) be optional? It's not like the docs are 100% needed for Rust... there should be an option to delete that. Also, maybe merge a few doc pages into the same page and have a table of contents? Then you'll have a few big files rather than a TON of small files, so it should be faster... |
Making the |
I can confirm that this problem still exists. |
This same issue can cause the installation on WSL to fail completely. Deleting Rust's leftover installation files and turing off antivirus got things working for me. https://stackoverflow.com/a/56566419/4064698 |
I think #1866 is a better place to track this going forward |
On my Windows 7 computer at work, the install/update process can't pass the docs installation phase, while it works fine on my personal Linux computer.
Messages :
I have to use Ctrl+C or rustup never end.
The text was updated successfully, but these errors were encountered: