arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

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

Open DanMan32 opened this issue 1 year ago • 64 comments

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

  • https://github.com/arduino/arduino-cli/issues/2347#issuecomment-1895108399
  • https://github.com/arduino/arduino-cli/issues/2347#issuecomment-1966437932
  • https://github.com/arduino/arduino-cli/issues/2347#issuecomment-1975201097
  • https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2026869560
  • https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2380834821
  • https://github.com/arduino/arduino-ide/issues/1330#issuecomment-2138944821
  • https://github.com/arduino/arduino-cli/issues/2347#issuecomment-2384844593
  • https://github.com/arduino/arduino-ide/issues/2506

Related

  • https://github.com/arduino/arduino-ide/issues/2418
  • https://github.com/arduino/arduino-ide/issues/1330#issuecomment-1966435910
  • https://github.com/arduino/arduino-ide/issues/1330#issuecomment-1982073936
  • https://github.com/arduino/arduino-ide/issues/1330#issuecomment-2171090826
  • https://github.com/arduino/arduino-ide/issues/1330#issuecomment-2267393753
  • https://github.com/arduino/arduino-ide/issues/2462#issuecomment-2262813155
  • https://github.com/arduino/arduino-ide/issues/2501
  • https://github.com/arduino/arduino-ide/issues/2501#issuecomment-2376066940
  • https://forum.arduino.cc/t/downloading-index-package-teensy-json/1229463/4
  • https://forum.arduino.cc/t/ide-hangs-on-startup-error-downloading-index/1261030/9
  • https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/1
  • https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/3
  • https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/5
  • https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/6
  • https://forum.arduino.cc/t/compilation-is-delayed-by-downloading-index-package-index-tar-bz2-process/1300983/7
  • https://forum.arduino.cc/t/downloading-index-package-rp2040-index-json/1303866
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/1
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/2
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/3
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/6
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/14
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/17
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/19
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/21
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/22
  • https://forum.arduino.cc/t/after-upgrading-to-v2-3-3-stuck-downloading-index/1305575/38
  • https://forum.arduino.cc/t/library-and-board-updates-stall-after-2-3-3-auto-update/1305826/7
  • https://forum.arduino.cc/t/ide-2-3-3-stuck-trying-to-download-teensy/1306012/1
  • https://forum.arduino.cc/t/ide-2-3-3-stuck-trying-to-download-teensy/1306012/7
  • https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/1
  • https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/4
  • https://forum.arduino.cc/t/package-esp32-index-json-hangs-up-loading/1306784/6
  • https://forum.arduino.cc/t/download-index-package-lgt8fx-index-json-stuck/1307014
  • https://forum.arduino.cc/t/downloading-index-package-adafruit-index-json-error/1307083/1
  • https://forum.arduino.cc/t/downloading-index-package-adafruit-index-json-error/1307083/10
  • https://forum.arduino.cc/t/ide-freezes-after-updating-to-2-3-3/1307890/7

Issue checklist

  • [X] I searched for previous reports in the issue tracker
  • [X] I verified the problem still occurs when using the nightly build
  • [X] My report contains all necessary details

DanMan32 avatar Sep 29 '23 04:09 DanMan32

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 avatar Sep 29 '23 04:09 DanMan32

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 avatar Sep 29 '23 04:09 DanMan32

Except UI still reports CLI version 0.34.0

DanMan32 avatar Sep 29 '23 04:09 DanMan32

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.

DanMan32 avatar Sep 29 '23 04:09 DanMan32

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

RL-Fields avatar Dec 22 '23 12:12 RL-Fields

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.

Helienzo avatar Jan 16 '24 10:01 Helienzo

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

Anything I can do to help?

ArneKol avatar Jan 17 '24 06:01 ArneKol

Does this happen also with the CLI?

umbynos avatar Jan 18 '24 11:01 umbynos

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.

njordan77 avatar Feb 27 '24 12:02 njordan77

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

niiiksh avatar Mar 03 '24 15:03 niiiksh

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

umbynos avatar Mar 04 '24 14:03 umbynos

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

njordan77 avatar Mar 04 '24 21:03 njordan77

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?

umbynos avatar Mar 05 '24 09:03 umbynos

@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.

njordan77 avatar Mar 05 '24 14:03 njordan77

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

umbynos avatar Mar 06 '24 14:03 umbynos

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?

niiiksh avatar Mar 07 '24 14:03 niiiksh

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\

ATOMNFT avatar Mar 18 '24 14:03 ATOMNFT

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.

ubidefeo avatar Mar 19 '24 09:03 ubidefeo

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

LouDnl avatar Mar 24 '24 20:03 LouDnl

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

niiiksh avatar Mar 25 '24 02:03 niiiksh

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

rinzlerz avatar Mar 29 '24 08:03 rinzlerz

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

ATOMNFT avatar Apr 03 '24 20:04 ATOMNFT

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...

magn2998 avatar Apr 27 '24 12:04 magn2998

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.

dantogno avatar Jun 18 '24 20:06 dantogno

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.

niiiksh avatar Jun 19 '24 13:06 niiiksh

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.

ednieuw avatar Aug 09 '24 08:08 ednieuw

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.

Void12987 avatar Aug 15 '24 16:08 Void12987

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 :'(

ArneKol avatar Aug 19 '24 21:08 ArneKol