arduino / arduino-cli

Arduino command line tool
https://arduino.github.io/arduino-cli/latest/
GNU General Public License v3.0
4.35k stars 378 forks source link

Exceptionally long duration of "Downloading index: ..." process #2347

Open DanMan32 opened 1 year ago

DanMan32 commented 1 year ago

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:

C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli core update-index

It hesitated about 10 seconds, with seemingly successful results:

Downloading index: package_index.tar.bz2 downloaded

Looking at the terminal logs, the Downloading Index seems to take a long time doing these while the fault is occurring:

2023-09-29T04:39:13.570Z daemon INFO time="2023-09-29T00:39:13-04:00" level=info msg="Resolving include AutoConnect.h for arch esp32"
time="2023-09-29T00:39:13-04:00" level=info msg="  found better lib" lib=AutoConnect prio=6B1
2023-09-29T04:39:29.092Z daemon INFO time="2023-09-29T00:39:29-04:00" level=info msg="Resolving include WiFi.h for arch esp32"
time="2023-09-29T00:39:29-04:00" level=info msg="  found better lib" lib=WiFi prio=6B0
2023-09-29T04:39:45.007Z daemon INFO time="2023-09-29T00:39:45-04:00" level=info msg="Resolving include WebServer.h for arch esp32"
time="2023-09-29T00:39:45-04:00" level=info msg="  found better lib" lib=WebServer prio=6B0
[71480:0929/003958.469:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is disabled, ANGLE is
2023-09-29T04:40:01.671Z daemon INFO time="2023-09-29T00:40:01-04:00" level=info msg="Resolving include DNSServer.h for arch esp32"
time="2023-09-29T00:40:01-04:00" level=info msg="  found better lib" lib=DNSServer prio=6B0
2023-09-29T04:40:17.592Z daemon INFO time="2023-09-29T00:40:17-04:00" level=info msg="Resolving include EEPROM.h for arch esp32"
time="2023-09-29T00:40:17-04:00" level=info msg="  found better lib" lib=EEPROM prio=6B0
2023-09-29T04:40:34.431Z daemon INFO time="2023-09-29T00:40:34-04:00" level=info msg="Resolving include PageBuilder.h for arch esp32"
time="2023-09-29T00:40:34-04:00" level=info msg="  found better lib" lib=PageBuilder prio=6B1
2023-09-29T04:40:53.157Z daemon INFO time="2023-09-29T00:40:53-04:00" level=info msg="Resolving include FS.h for arch esp32"
time="2023-09-29T00:40:53-04:00" level=info msg="  found better lib" lib=FS prio=6B0
2023-09-29T04:41:12.586Z daemon INFO time="2023-09-29T00:41:12-04:00" level=info msg="Resolving include SPIFFS.h for arch esp32"
time="2023-09-29T00:41:12-04:00" level=info msg="  found better lib" lib=SPIFFS prio=6B0
2023-09-29T04:41:33.667Z daemon INFO time="2023-09-29T00:41:33-04:00" level=info msg="Resolving include SD.h for arch esp32"
time="2023-09-29T00:41:33-04:00" level=info msg="  found better lib" lib=SD prio=6A7
time="2023-09-29T00:41:33-04:00" level=info msg="  found better lib" lib=SD prio=6B0
2023-09-29T04:41:54.968Z daemon INFO time="2023-09-29T00:41:54-04:00" level=info msg="Resolving include SPI.h for arch esp32"
time="2023-09-29T00:41:54-04:00" level=info msg="  found better lib" lib=SPI prio=6B0
2023-09-29T04:42:15.144Z daemon INFO time="2023-09-29T00:42:15-04:00" level=info msg="Resolving include Preferences.h for arch esp32"
time="2023-09-29T00:42:15-04:00" level=info msg="  found better lib" lib=Preferences prio=6B0
2023-09-29T04:42:36.738Z daemon INFO time="2023-09-29T00:42:36-04:00" level=info msg="Resolving include Ticker.h for arch esp32"
time="2023-09-29T00:42:36-04:00" level=info msg="  found better lib" lib=Ticker prio=6B0
2023-09-29T04:42:58.281Z daemon INFO time="2023-09-29T00:42:58-04:00" level=info msg="Resolving include ArduinoJson.h for arch esp32"
time="2023-09-29T00:42:58-04:00" level=info msg="  found better lib" lib=ArduinoJson prio=6A7
2023-09-29T04:43:28.337Z daemon INFO time="2023-09-29T00:43:28-04:00" level=info msg="Resolving include HTTPClient.h for arch esp32"
2023-09-29T04:43:28.340Z daemon INFO time="2023-09-29T00:43:28-04:00" level=info msg="  found better lib" lib=HTTPClient prio=6B0
2023-09-29T04:43:58.304Z daemon INFO time="2023-09-29T00:43:58-04:00" level=info msg="Resolving include WiFiClientSecure.h for arch esp32"
time="2023-09-29T00:43:58-04:00" level=info msg="  found better lib" lib=WiFiClientSecure prio=6B0
2023-09-29T04:44:35.127Z daemon INFO time="2023-09-29T00:44:35-04:00" level=info msg="Resolving include HTTPUpdate.h for arch esp32"
time="2023-09-29T00:44:35-04:00" level=info msg="  found better lib" lib=HTTPUpdate prio=6B0
2023-09-29T04:45:07.932Z daemon INFO time="2023-09-29T00:45:07-04:00" level=info msg="Resolving include Update.h for arch esp32"
2023-09-29T04:45:07.933Z daemon INFO time="2023-09-29T00:45:07-04:00" level=info msg="  found better lib" lib=Update prio=6B0
2023-09-29T04:45:39.087Z daemon INFO time="2023-09-29T00:45:39-04:00" level=info msg="Resolving include pcf8574.h for arch esp32"
time="2023-09-29T00:45:39-04:00" level=info msg="  found better lib" lib=pcf8574 prio=6A7
2023-09-29T04:46:11.881Z daemon INFO time="2023-09-29T00:46:11-04:00" level=info msg="Resolving include Wire.h for arch esp32"
time="2023-09-29T00:46:11-04:00" level=info msg="  found better lib" lib=Wire prio=6B0
2023-09-29T04:46:49.620Z daemon INFO time="2023-09-29T00:46:49-04:00" level=info msg="Resolving include Adafruit_ADS1X15.h for arch esp32"
time="2023-09-29T00:46:49-04:00" level=info msg="  found better lib" lib="Adafruit ADS1X15" prio=6A7
2023-09-29T04:47:21.647Z daemon INFO time="2023-09-29T00:47:21-04:00" level=info msg="Resolving include Adafruit_I2CDevice.h for arch esp32"
time="2023-09-29T00:47:21-04:00" level=info msg="  found better lib" lib="Adafruit BusIO" prio=3EB
2023-09-29T04:47:57.713Z daemon INFO time="2023-09-29T00:47:57-04:00" level=info msg="Resolving include ESPTelnet.h for arch esp32"
time="2023-09-29T00:47:57-04:00" level=info msg="  found better lib" lib="ESP Telnet" prio=3EB

Additional reports

Related

Issue checklist

DanMan32 commented 1 year ago

Incidentally, I had found somewhere someone had a log output with full URL to the file. I had tried that in a browser, file downloaded instantly.

DanMan32 commented 1 year ago

I found where arduino-cli is located:

C:\Program Files\Arduino IDE\resources\app\lib\backend\resources>

Ran arduino-cli core update-index, hesitated about 10 seconds, with seemingly successful results:

Downloading index: package_index.tar.bz2 downloaded

Even updated it to 0.34.2 but no improvement.

DanMan32 commented 1 year ago

Except UI still reports CLI version 0.34.0

DanMan32 commented 1 year ago

Went through the process of launching from PowerShell, the Downloading Index seems to take a long time doing these:

2023-09-29T04:39:13.570Z daemon INFO time="2023-09-29T00:39:13-04:00" level=info msg="Resolving include AutoConnect.h for arch esp32"
time="2023-09-29T00:39:13-04:00" level=info msg="  found better lib" lib=AutoConnect prio=6B1
2023-09-29T04:39:29.092Z daemon INFO time="2023-09-29T00:39:29-04:00" level=info msg="Resolving include WiFi.h for arch esp32"
time="2023-09-29T00:39:29-04:00" level=info msg="  found better lib" lib=WiFi prio=6B0
2023-09-29T04:39:45.007Z daemon INFO time="2023-09-29T00:39:45-04:00" level=info msg="Resolving include WebServer.h for arch esp32"
time="2023-09-29T00:39:45-04:00" level=info msg="  found better lib" lib=WebServer prio=6B0
[71480:0929/003958.469:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is disabled, ANGLE is
2023-09-29T04:40:01.671Z daemon INFO time="2023-09-29T00:40:01-04:00" level=info msg="Resolving include DNSServer.h for arch esp32"
time="2023-09-29T00:40:01-04:00" level=info msg="  found better lib" lib=DNSServer prio=6B0
2023-09-29T04:40:17.592Z daemon INFO time="2023-09-29T00:40:17-04:00" level=info msg="Resolving include EEPROM.h for arch esp32"
time="2023-09-29T00:40:17-04:00" level=info msg="  found better lib" lib=EEPROM prio=6B0
2023-09-29T04:40:34.431Z daemon INFO time="2023-09-29T00:40:34-04:00" level=info msg="Resolving include PageBuilder.h for arch esp32"
time="2023-09-29T00:40:34-04:00" level=info msg="  found better lib" lib=PageBuilder prio=6B1
2023-09-29T04:40:53.157Z daemon INFO time="2023-09-29T00:40:53-04:00" level=info msg="Resolving include FS.h for arch esp32"
time="2023-09-29T00:40:53-04:00" level=info msg="  found better lib" lib=FS prio=6B0
2023-09-29T04:41:12.586Z daemon INFO time="2023-09-29T00:41:12-04:00" level=info msg="Resolving include SPIFFS.h for arch esp32"
time="2023-09-29T00:41:12-04:00" level=info msg="  found better lib" lib=SPIFFS prio=6B0
2023-09-29T04:41:33.667Z daemon INFO time="2023-09-29T00:41:33-04:00" level=info msg="Resolving include SD.h for arch esp32"
time="2023-09-29T00:41:33-04:00" level=info msg="  found better lib" lib=SD prio=6A7
time="2023-09-29T00:41:33-04:00" level=info msg="  found better lib" lib=SD prio=6B0
2023-09-29T04:41:54.968Z daemon INFO time="2023-09-29T00:41:54-04:00" level=info msg="Resolving include SPI.h for arch esp32"
time="2023-09-29T00:41:54-04:00" level=info msg="  found better lib" lib=SPI prio=6B0
2023-09-29T04:42:15.144Z daemon INFO time="2023-09-29T00:42:15-04:00" level=info msg="Resolving include Preferences.h for arch esp32"
time="2023-09-29T00:42:15-04:00" level=info msg="  found better lib" lib=Preferences prio=6B0
2023-09-29T04:42:36.738Z daemon INFO time="2023-09-29T00:42:36-04:00" level=info msg="Resolving include Ticker.h for arch esp32"
time="2023-09-29T00:42:36-04:00" level=info msg="  found better lib" lib=Ticker prio=6B0
2023-09-29T04:42:58.281Z daemon INFO time="2023-09-29T00:42:58-04:00" level=info msg="Resolving include ArduinoJson.h for arch esp32"
time="2023-09-29T00:42:58-04:00" level=info msg="  found better lib" lib=ArduinoJson prio=6A7
2023-09-29T04:43:28.337Z daemon INFO time="2023-09-29T00:43:28-04:00" level=info msg="Resolving include HTTPClient.h for arch esp32"
2023-09-29T04:43:28.340Z daemon INFO time="2023-09-29T00:43:28-04:00" level=info msg="  found better lib" lib=HTTPClient prio=6B0
2023-09-29T04:43:58.304Z daemon INFO time="2023-09-29T00:43:58-04:00" level=info msg="Resolving include WiFiClientSecure.h for arch esp32"
time="2023-09-29T00:43:58-04:00" level=info msg="  found better lib" lib=WiFiClientSecure prio=6B0
2023-09-29T04:44:35.127Z daemon INFO time="2023-09-29T00:44:35-04:00" level=info msg="Resolving include HTTPUpdate.h for arch esp32"
time="2023-09-29T00:44:35-04:00" level=info msg="  found better lib" lib=HTTPUpdate prio=6B0
2023-09-29T04:45:07.932Z daemon INFO time="2023-09-29T00:45:07-04:00" level=info msg="Resolving include Update.h for arch esp32"
2023-09-29T04:45:07.933Z daemon INFO time="2023-09-29T00:45:07-04:00" level=info msg="  found better lib" lib=Update prio=6B0
2023-09-29T04:45:39.087Z daemon INFO time="2023-09-29T00:45:39-04:00" level=info msg="Resolving include pcf8574.h for arch esp32"
time="2023-09-29T00:45:39-04:00" level=info msg="  found better lib" lib=pcf8574 prio=6A7
2023-09-29T04:46:11.881Z daemon INFO time="2023-09-29T00:46:11-04:00" level=info msg="Resolving include Wire.h for arch esp32"
time="2023-09-29T00:46:11-04:00" level=info msg="  found better lib" lib=Wire prio=6B0
2023-09-29T04:46:49.620Z daemon INFO time="2023-09-29T00:46:49-04:00" level=info msg="Resolving include Adafruit_ADS1X15.h for arch esp32"
time="2023-09-29T00:46:49-04:00" level=info msg="  found better lib" lib="Adafruit ADS1X15" prio=6A7
2023-09-29T04:47:21.647Z daemon INFO time="2023-09-29T00:47:21-04:00" level=info msg="Resolving include Adafruit_I2CDevice.h for arch esp32"
time="2023-09-29T00:47:21-04:00" level=info msg="  found better lib" lib="Adafruit BusIO" prio=3EB
2023-09-29T04:47:57.713Z daemon INFO time="2023-09-29T00:47:57-04:00" level=info msg="Resolving include ESPTelnet.h for arch esp32"
time="2023-09-29T00:47:57-04:00" level=info msg="  found better lib" lib="ESP Telnet" prio=3EB

I get the same stalling with information similar to above when compiling.

RL-Fields commented 10 months ago

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 https://github.com/arduino/arduino-ide/issues/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 https://downloads.arduino.cc/libraries/library_index.tar.bz2

I'm on Windows 10 and Arduino 2.2.1

Helienzo commented 9 months ago

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.

ArneKol commented 9 months ago

I have the exact same problem, following to see if a fix is found.

Anything I can do to help?

umbynos commented 9 months ago

Does this happen also with the CLI?

njordan77 commented 7 months ago

having the same annoying issue on 2.3.2.....also with previous releases as written above. always looking for index files with no progress at all.

niiiksh commented 7 months ago

Same thing. Really annoying tool Arduino IDE became worse and unstable these days. 1 of 10. 🤮

umbynos commented 7 months ago

Could you please install the arduino-cli . And try to run arduino-cli update?

njordan77 commented 7 months ago

did download the cli command (exe file) and executed within the ARD2 folder....not sure if this is good or not, seemed to download two index files.

image

EDIT: didn't change anything. still stuck with an ESP32 index file in the GUI image

umbynos commented 7 months ago

Yeah, It's expected that is downloading two index files. Question is: Is the duration of the download of the index with the cli command reasonable? Or did you experience the same problem of the IDE2 GUI?

Do you have some antivirus software running?

njordan77 commented 7 months ago

@speed....the download of these two index files is finished within 1-2secs. so no delay at all.

yes, Win11 and Bitdefender Security. AND its a zip-file version, so i did not install via setup.

umbynos commented 7 months ago

Could you please try to temporarily disable the antivirus and update the indexes using the IDE GUI?

niiiksh commented 7 months ago

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?

ATOMNFT commented 7 months ago

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 https://downloads.arduino.cc/libraries/library_index.tar.bz2

I'm on Windows 10 and Arduino 2.2.1

put files inside C:\Users\User\AppData\Local\Arduino15\

ubidefeo commented 7 months ago

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. Thank you for your collaboration u.

LouDnl commented 7 months ago

Same issue here, unable to use the IDE. Tried putting file and contents manually in said location, same issue.

The notification is even still there if I completely delete the Arduino15 folder from AppData. Everything else gets downloaded and installed just fine while this message is still here. image After a while it magically dissapeared

niiiksh commented 7 months ago

Tip for developers of Arduino IDE: just don’t download these indexes never! 😆

rinzlerz commented 6 months ago

I also encounter this issue. What are the steps necessary to solve this issue?

ATOMNFT commented 6 months ago

I also encounter this issue. What are the steps necessary to solve this issue?

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 https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

magn2998 commented 5 months ago

Im on Windows and fixed this by trying several things. Most didn't work, but will list all in case they all need to be done before working.

1) Uninstalled Windows Store version and downloaded from Arduino webpage - Didn't solve it 2) Ran the "arduino-cli core update-index" cmd from AppData/Local/Programs/Arduino IDE/resources/app/lib/backend/resources - Didn't solve it 3) Ran the "arduino-cli update" from same location as above - Didn't solve it 4) Ran application as administrator - Solved it

Maybe this is a simple "Run as admin" solution? This was also done over a longer period (but below 30 min.) so maybe time just solved it...

dantogno commented 4 months ago

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.

niiiksh commented 4 months ago

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. And the type of problem is not imperfection as someone set. It is a bug that prevents from starting the build.

ednieuw commented 2 months ago

I have this issue "Downloading index: package_esp32_dev_index.json" on my PC.

I see the package is 38 Mb and contains a whooping 952839 lines!.

On my fast PC with fast internet it takes minutes to download. I helped a friend yesterday and on his PC downloading never stops.

Void12987 commented 2 months ago

I also had this bug, but mine wouldn't download even after 10 minutes. What fixed it for me was adding https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json to File > Preferences... > Adiditional boards managers URLS then closing my IDE and reopening it. See https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2035580198.

When I reopened it, Windows asked me for many permissions, which I accepted. Now, re-opening Arduino does not have this bug.

ArneKol commented 2 months ago

I also had this bug, but mine wouldn't download even after 10 minutes. What fixed it for me was adding https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json to File > Preferences... > Adiditional boards managers URLS then closing my IDE and reopening it. See #2347 (comment).

When I reopened it, Windows asked me for many permissions, which I accepted. Now, re-opening Arduino does not have this bug.

I tried this as well. After adding the file I did not get any new permission requests and now I have 2 packages stuck downloading :'(

todd-herbert commented 1 month ago

Anecdotally, changing my DNS server seems to have resolved the issue for me just now. (Windows 10, Arduino IDE 2.3.2)

yoshi-plur commented 3 weeks ago

I experienced the same issue. I have been using Arduino Uno and a USB serial adaptor for Board. When switch the board, the notice is gone and it seems to work fine. However, it is just a temporary solution and the problem keeps happening again.

Cyanide0210 commented 3 weeks ago

I can also confirm this issue still exists {73D73223-C577-461F-A2B8-41481C6B6DD5}

kingdo1 commented 3 weeks ago

I am having this issue with the latest IDE version 2.2.3. Windows 10

Afganitia commented 3 weeks ago

I am having this issue with the latest IDE version 2.3.3. Windows 10.

Also, I ran as admin but it doesn't work.

PD: kingdo1 suggestion below worked!

kingdo1 commented 3 weeks ago

Disconnecting the USB connection to the board, then reconnecting it and resetting the board resolves the issue for me.

Maintain your internet connection throughout.

kingdo1 commented 3 weeks ago

Afganitia, try disconnecting your USB connection to the board. Then reconnect it again and reset the board.

kingdo1 commented 3 weeks ago

Maintain your internet connection throughout.

jcapo commented 3 weeks ago

On Sat, September 28, 2024 12:28, kingdo1 wrote:

Maintain your internet connection throughout.

Delete the file and start the IDE. The file will be downloaded in a second or two. Then the IDE sits there doing something for as long as 30 minutes.

Windows 10, IDE 2.3.2

John

-- Reply to this email directly or view it on GitHub: https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2380734737 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

sckid1108 commented 3 weeks ago

I had a heltec esp32 lora v3 board plugged in while trying to update. Hung the system. Unplug devices from your pc and try running the arudino platform updates

goedzo commented 3 weeks ago

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: C:\Users\xxx\AppData\Local\Arduino15\packages

When I re-opened arduino, it just asked me to redownload the boards, and it did this without any problems.

manimal1882 commented 3 weeks ago

both goedzo (https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2382916276) and kingdo1 (https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2380725973) solutions work well. I prefer the first, but rather than deleting directories, I transferred them to another location within the C drive, so I could compare the oldest directories and the ones created by IDE, and I found some interesting differences. In this way, I also was able to restore the libraries installed some time ago

wburchard commented 3 weeks ago

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.

Karniverse commented 3 weeks ago

Disconnecting the board and reconnecting again resolves the issue for me.

im using arduino 2.3.3 and arduino leonardo pro micro, had same issue but this method worked for me

CNSNGopenSourceProjects commented 3 weeks ago

Same problem using Windows 10 Pro and Arduine IDE 2.3.3. On previous versions the downloading index wass slow, but finished after a long time. On this new IDE version, its never end.

I used to have on URL additional boards manager the github direction for ESP32 and RP2040.
The downloading index used to hang on RP2040. I removed the RP20240. Now it hangs while downloading ESP32. It means the problem is on downloading index code. May be a long timeouit for bad downloading commands.

CNSNGopenSourceProjects commented 3 weeks ago

I disconnected the network and the Arduino IDE works, after show the error message."Error downloading index: https://downloads.arduino.cc/libraries/library..." image

tonbor commented 3 weeks ago

image Nothing helps

CNSNGopenSourceProjects commented 2 weeks ago

Try to disconnect the network when starting the Arduino IDE. image

sofar commented 2 weeks ago

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.

Timppa11 commented 2 weeks ago

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?

goedzo commented 2 weeks ago

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.

wburchard commented 2 weeks ago

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.