-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Exceptionally long duration of "Downloading index: ..." process #2347
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
I am also having this issue. The only "fix" I have found is to open Arduino with the internet disconnected as per the instructions in this thread with a similar issue arduino/arduino-ide#1483 I also found a direct download URL of the bz2 file, which downloaded instantly, but am not sure what to do with it once downloaded I'm on Windows 10 and Arduino 2.2.1 |
I also have this issue on Arduino IDE 2.2.1 running on windows 10. The downloading Index bar freezes at roughly 60% and never finishes. I tried to reinstall and clean out all temp, hidden, library and other folders related to Arduino. It sometimes works for one start after the cleanup but as soon as I restart the application the problem returns. The only way to get the IDE to work is to start it without internet connection. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Does this happen also with the CLI? |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Could you please install the arduino-cli . And try to run |
Yeah, It's expected that is downloading two index files. Do you have some antivirus software running? |
@speed....the download of these two index files is finished within 1-2secs. so no delay at all. yes, Win11 and Bitdefender Security. |
Could you please try to temporarily disable the antivirus and update the indexes using the IDE GUI? |
I’ve disabled Windows Security and still downloading index for a very long time! What a bug did you test your program with Windows 11 with latest update? |
put files inside C:\Users\User\AppData\Local\Arduino15\ |
Please, everyone, help us track this issue and hunt down the cause. Downloading files to Arduino15 will of course work, because that's what the IDE and CLI do behind the scenes, but we'd love to be able to find this issue which we can't reproduce. If anyone assumes that's the solution we'll have an outstanding bug. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
Not sure if this helps. But I have rectified the issue using these entries in additional board manager. Since I have added these the error/hang has not taken place again. When the message pops up in lower right corner it stays for a max of like 3-4 mins then its gone. Everything updates as it should and no compiling/flashing issues. http://arduino.esp8266.com/stable/package_esp8266com_index.json |
Im on Windows and fixed this by trying several things.
Maybe this is a simple "Run as admin" solution? |
I had this issue. It turned out there was a windows security / admin permission popup in the background that did not properly come up over the rest of the UI. After clicking OK (on several subsequent popups) things worked. |
I don't think it is popup because for me there is no popup by windows. |
I ran into the same issue on IDE 2.3.3. Run as administrator didn't work. But what did work for me was deleting the folder: When I re-opened arduino, it just asked me to redownload the boards, and it did this without any problems. |
both goedzo (#2347 (comment)) and kingdo1 (#2347 (comment)) solutions work well. |
I can confirm the bug still exists in version 2.3.3 (running on Windows 11 Pro) after I had replaced the CH32V packages with the latest from main. After reading through the above comments, I unplugged and then reattached the board. This fixed the problem. Perhaps adding code to the IDE to check if a board is attached while attempting to update packages and suggesting to the user to unplug then reattach the board as a suggestion? While not the ideal solution, doing this would likely eliminate a lot of frustration until the root cause is identified and fixed. |
im using arduino 2.3.3 and arduino leonardo pro micro, had same issue but this method worked for me |
Same problem using Windows 10 Pro and Arduine IDE 2.3.3. I used to have on URL additional boards manager the github direction for ESP32 and RP2040. |
I disconnected the network and the Arduino IDE works, after show the error message."Error downloading index: https://downloads.arduino.cc/libraries/library..." |
This comment was marked as duplicate.
This comment was marked as duplicate.
Using flatpak (3.3.5) here. Unable to run the cli - entering the namespace is already difficult enough as is - it's entirely dead unless I disconnect my internet before starting the IDE. I let it sit for 48 hours and it still didn't finish downloading, or compiling my sketch. |
Disconnecting the board from the computer worked for me. Arduino IDE 2.3.3 Windows 10 Arduino Uno wifi rev.2. It's a bit counterintuitive. No one knows the real reason why it is like this? |
Can confirm this is indeed the case. When my board "Nordic nRF52840 DK" is connected, I get the endless downloading index. Then I disconnect the board from USB, it boots. |
Maybe the connection to the board is causing a file lock to be held that blocks the download? If the download timeout is set to infinite, that would cause this.
|
Seems that the Arduino IDE developers have bigger things to do! Should
be an easy fix to check if the board is connected and act accordingly.
|
@umbynos - Perhaps Arduino CLI could perform package index downloads in 2 steps. First download the entire file to a large buffer in memory. Then after every byte is received into the buffer, write the entire file to disk as a single large write operation. Why try this? Well, anti-malware software on Windows often looks for filesystem access as fuzzy matching against heuristic patterns. Maybe some of these download problems people report could be due to Windows Defender, Norton, Macafee or other software installing "filter drivers" which intercept and analyze patters of filesystem access. By putting all the data into a memory buffer before attempting to write even the first byte to disk, Arduino CLI could avoid a pattern of many small writes and (hopefully) have a better chance of avoiding interference. Receive all into a memory buffer would also allow Arduino CLI / IDE to give the user better on-screen feedback. The download could be confirmed complete. Then another message could confirm it's been written to disk. Giving end users better on screen feedback might help future troubleshooting, if this speculation about Windows filter drivers interfering with disk access doesn't turn out to be the entire problem. |
Antivirus/firewall software does not report anything odd is happening + why would removing the board make any difference?
|
I had this issue just now with IDE 2.3.3 and resetting the board resolved it. By which I mean I pressed the reset button, not just an unplug. |
Just hit this with 2.3.3. Closing IDE, deleting AppData contents ( |
I'm having this issue with Arduino IDE 2.3.3 on Linux. |
I fixed it by closing the serial monitor. My board is outputting a lot of data on the serial port. |
WORKED FOR ME, THANKS. |
Created an account to say thanks and this worked.... |
And the second day? |
Thanks for sharing this observation @aaronw2. I am able to reproduce the bug of the "Downloading index:" notification never completing, and blocking other operations when Serial Monitor is open. I bisected the regression and found that it was relatively recent, after the time this issue was originally submitted. So it seems there might be multiple bugs that have similar symptoms. I created a dedicated issue for the bug related to Serial Monitor:
I found that the amount of data is not relevant, and in fact it will still occur even if the board isn't outputting any data at all. It is only the fact of the Serial Monitor being open and connected to a port. |
Describe the problem
I know a number of people have reported this problem for months but still it isn't solved.
When starting Arduino IDE 2.2.1, notification area shows "Downloading index: library_index.tar.bz2"
Progress bar stays at 50% for a really long time, like 1/2 hour.
I know it isn't an issue of accessing the Internet, as I am writing this connected to the Internet with Arduino stuck at that stage.
Even if I didn't have an Internet connection at the time, IDE should time out after maybe a minute and move on with its life.
While it is in this state, can't compile, as compile progress seems to wait for the index download to finish
Once I get past this, then successive launches of Arduino seems to be good either for the rest of the day or as long as I don't log out of Windows, haven't figured that part out yet.
To reproduce
Start Arduino IDE 2.2.1 for first time in a particular day
Expected behavior
Not get stuck for 10's of minutes with status "Downloading index: library_index.tar.bz2"
Arduino CLI version
0.34.0
Operating system
Windows
Operating system version
Windows 11
Additional context
It downloads instantly if I use my web browser to download the file:
https://downloads.arduino.cc/libraries/library_index.tar.bz2
The fault does not occur If I run Arduino CLI directly:
It hesitated about 10 seconds, with seemingly successful results:
Looking at the terminal logs, the Downloading Index seems to take a long time doing these while the fault is occurring:
Additional reports
Related
Issue checklist
The text was updated successfully, but these errors were encountered: