IDE hangs on startup: "Error downloading index"

Hello! I just installed Arduino IDE 2.3.2 on Win 11 and when I run the application, I can see only the starting page with the logo on a white background.
I looked at a few discussions and opened the installation folder > Opened the PowerShell window (Shift + Right Click) and wrote the command & ".\Arduino IDE". This is what I got:

Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.2" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.3" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-20T10:04:35.814Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.2","cliVersion":"0.35.3","buildDate":"2024-02-20T10:04:35.814Z"}
Starting backend process. PID: 29252
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/inalya1/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-05-17T07:05:51.149Z root INFO Backend Object.initialize: 5.3 ms [Finished 0.618 s after backend start]
2024-05-17T07:05:51.151Z root INFO Backend Object.configure: 4.6 ms [Finished 0.618 s after backend start]
2024-05-17T07:05:51.151Z root INFO Backend s.onStart: 3.0 ms [Finished 0.618 s after backend start]
2024-05-17T07:05:51.152Z root INFO Backend s.configure: 0.3 ms [Finished 0.646 s after backend start]
2024-05-17T07:05:51.153Z root INFO Backend d.onStart: 0.3 ms [Finished 0.646 s after backend start]
2024-05-17T07:05:51.154Z root INFO Backend d.configure: 0.1 ms [Finished 0.646 s after backend start]
2024-05-17T07:05:51.155Z root INFO Backend d.initialize: 27.0 ms [Finished 0.646 s after backend start]
2024-05-17T07:05:51.155Z root INFO Backend c.onStart: 0.3 ms [Finished 0.646 s after backend start]
2024-05-17T07:05:51.156Z root INFO Backend a.configure: 2.3 ms [Finished 0.648 s after backend start]
2024-05-17T07:05:51.158Z config INFO >>> Initializing CLI configuration...
2024-05-17T07:05:51.158Z root INFO Backend c.initialize: 0.9 ms [Finished 0.649 s after backend start]
2024-05-17T07:05:51.158Z root INFO Backend R.onStart: 1.3 ms [Finished 0.650 s after backend start]
2024-05-17T07:05:51.159Z config INFO Loading CLI configuration from c:\Users\inalya1\.arduinoIDE\arduino-cli.yaml...
2024-05-17T07:05:51.159Z daemon INFO Starting daemon from C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-05-17T07:05:51.159Z root INFO Backend a.initialize: 0.5 ms [Finished 0.651 s after backend start]
2024-05-17T07:05:51.159Z root INFO Backend w.onStart: 1.4 ms [Finished 0.652 s after backend start]
2024-05-17T07:05:51.159Z root INFO Backend r.configure: 2.3 ms [Finished 0.652 s after backend start]
2024-05-17T07:05:51.159Z discovery-log INFO start
2024-05-17T07:05:51.159Z discovery-log INFO start new deferred
2024-05-17T07:05:51.159Z root INFO Backend d.initialize: 0.7 ms [Finished 0.653 s after backend start]
2024-05-17T07:05:51.159Z root INFO Backend y.onStart: 2.3 ms [Finished 0.654 s after backend start]
2024-05-17T07:05:51.159Z root INFO Backend r.configure: 1.8 ms [Finished 0.655 s after backend start]
2024-05-17T07:05:51.160Z root INFO Backend a.onStart: 0.5 ms [Finished 0.656 s after backend start]
2024-05-17T07:05:51.160Z root INFO Backend h.configure: 0.3 ms [Finished 0.656 s after backend start]
2024-05-17T07:05:51.160Z root INFO Backend s.configure: 0.1 ms [Finished 0.656 s after backend start]
2024-05-17T07:05:51.160Z root INFO Backend l.configure: 0.1 ms [Finished 0.656 s after backend start]
2024-05-17T07:05:51.863Z root INFO Theia app listening on http://127.0.0.1:56853.
2024-05-17T07:05:51.864Z root INFO Finished starting backend application: 704.1 ms [Finished 1.360 s after backend start]
2024-05-17T07:05:51.875Z root WARN The local plugin referenced by local-dir:/c%3A/Users/inalya1/.arduinoIDE/plugins does not exist.
2024-05-17T07:05:51.875Z root WARN The local plugin referenced by local-dir:/c%3A/Users/inalya1/.arduinoIDE/extensions does not exist.
2024-05-17T07:05:51.875Z root WARN The local plugin referenced by local-dir:C:\Users\inalya1\.arduinoIDE\plugins does not exist.
2024-05-17T07:05:51.881Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\inalya1\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\inalya1\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\inalya1\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-05-17T07:05:51.882Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-05-17T07:05:51.882Z config INFO Loaded the CLI configuration.
2024-05-17T07:05:51.890Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/inalya1/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/inalya1/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-05-17T07:05:51.890Z config INFO Validating the CLI configuration...
2024-05-17T07:05:51.891Z config INFO The CLI config is valid.
2024-05-17T07:05:51.891Z config INFO <<< Initialized the CLI configuration.
2024-05-17T07:05:51.923Z root INFO Resolve plugins list: 764.4 ms [Finished 1.419 s after backend start]
2024-05-17T07:05:52.288Z daemon INFO time="2024-05-17T12:35:52+05:30" level=info msg="Using config file: c:\\Users\\inalya1\\.arduinoIDE\\arduino-cli.yaml"
time="2024-05-17T12:35:52+05:30" level=info msg="arduino-cli.exe version 0.35.3"
time="2024-05-17T12:35:52+05:30" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:56857
{"IP":"127.0.0.1","Port":"56857"}
2024-05-17T07:05:52.288Z daemon INFO Daemon is running.
2024-05-17T07:05:52.318Z daemon INFO time="2024-05-17T12:35:52+05:30" level=info msg="Updating libraries index"
time="2024-05-17T12:35:52+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-05-17T07:05:52.678Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp: lookup downloads.arduino.cc: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
2024-05-17T07:05:52.679Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-05-17T07:05:52.679Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
2024-05-17T07:05:52.680Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
2024-05-17T07:05:52.680Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-05-17T07:05:52.689Z root ERROR The primary packages indexes are missing. Running indexes update before initializing the core gRPC client The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-05-17T07:05:52.690Z daemon INFO time="2024-05-17T12:35:52+05:30" level=info msg="Loading hardware from: C:\\Users\\inalya1\\AppData\\Local\\Arduino15\\packages"
time="2024-05-17T12:35:52+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\inalya1\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-05-17T12:35:52+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\inalya1\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-05-17T12:35:52+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\inalya1\\Documents\\Arduino\\libraries" location=user
time="2024-05-17T12:35:52+05:30" level=info msg="Updating libraries index"
time="2024-05-17T12:35:52+05:30" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-05-17T07:05:52.711Z daemon INFO time="2024-05-17T12:35:52+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2024-05-17T12:35:52+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-05-17T07:05:52.725Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-05-17T07:05:52.726Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:763461)
    at Object.onReceiveStatus (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:791078)
    at Object.onReceiveStatus (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:784102)
    at C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:870224
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at s.makeServerStreamRequest (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:790845)
    at s.updateIndex (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:855121)
    at C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:623733
    at C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:624081
    at new Promise (<anonymous>)
    at E.doUpdateIndex (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:624060)
    at E.updatePlatformIndex (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:623705)
    at E.updateIndex (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:623073)
    at E.initInstanceWithFallback (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:621317)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-05-17T07:05:52.727Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-05-17T07:05:52.736Z daemon INFO time="2024-05-17T12:35:52+05:30" level=info msg="Updating libraries index"
time="2024-05-17T12:35:52+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
time="2024-05-17T12:35:52+05:30" level=info msg="Loading hardware from: C:\\Users\\inalya1\\AppData\\Local\\Arduino15\\packages"
2024-05-17T07:05:52.737Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp: lookup downloads.arduino.cc: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
2024-05-17T07:05:52.738Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-05-17T07:05:52.738Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
2024-05-17T07:05:52.738Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
2024-05-17T07:05:52.739Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-05-17T07:05:52.788Z daemon INFO time="2024-05-17T12:35:52+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\inalya1\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-05-17T12:35:52+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\inalya1\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-05-17T12:35:52+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\inalya1\\Documents\\Arduino\\libraries" location=user
2024-05-17T07:05:52.789Z root ERROR Uncaught Exception:  Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-05-17T07:05:52.789Z root ERROR Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\inalya1\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:622877
    at E.evaluateErrorStatus (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:622893)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async a.<anonymous> (C:\Users\inalya1\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:622563)
2024-05-17T07:05:53.208Z root INFO Deploy plugins list: 764.4 ms [Finished 2.704 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-05-17T07:05:54.294Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 212.6 ms [Finished 2.259 s after frontend start]
2024-05-17T07:05:54.295Z root WARN A command editor.action.toggleStickyScroll is already registered.

I am not sure as to what the issue is and how I can rectify it.
Can someone help? Thanks!

Hi @yoshiberries.

Does the problem still occur if you close any open Arduino IDE windows and then try starting it again now? It is possible this was caused by a temporary network degradation, which usually pass after a matter of minutes.

On the first run after a fresh installation, Arduino IDE downloads some additional essential components from the Internet and installs them. If it can't install those components then the startup fails. So the computer must have access to the Internet on the first startup.

If it is not already, please connect your computer to the Internet.

After that first run, an Internet connection is not required. However, there are some supplemental features such as "Library Manager" that have an inherent dependency on the Internet. Those features will not be usable while your computer is offline. But the essential functionality of editing, compiling, and uploading sketches will be available even without an Internet connection.

Hi @ptillisch, thank you for the prompt reply.
I am connected to the internet (I don't think there is any issue in that end).
I restarted the Arduino IDE window quite a few times even before I posted this query. And now, when I am restarting it again - the problem still occurs.

This problem might be caused by your firewall or some other network security system (e.g., proxy or VPN) interfering with Arduino IDE's ability to access the Internet.

Are you aware of anything special about the configuration of the network you connect to the Internet through that might interfere with Arduino IDE's access to the Internet?

This is my work laptop, so there might be some layers of security present, that I am not aware of.
That being said, when I try the Arduino IDE 1.8.18, it is working on the same laptop. I am able to get past that initial run and write the code.

The Arduino IDE 1.x installation includes all the components that are required for basic functionality of the IDE so it doesn't require any Internet access to start up.

The problem with that approach is that when important enhancements or fixes were made in any of the components, it was necessary for Arduino to make a whole new release of the IDE application in order to ship that work to the users. Since it requires quite an effort from Arduino to perform the necessary validation, preparation, and follow-up to made a new IDE release, this resulted in delays in delivering important advancements in cases where there hadn't been significant enough advancements in the IDE's own codebase to justify a release.

For this reason, a modular approach was taken when Arduino IDE was rewritten from scratch for the 2.x version series. The user now always gets the latest version of each of the components, and the developers of the individual components can ship important advancements at will.

Don't know if you managed to solve it, with it being your work laptop it's probably gonna need a discussion with IT, but the following solved it for me immediately, and i had before this change installed 2.3.3 4 times, with the exe and msi and even went through the windows store, where for whatever reason only the legacy version was ever published...

In most cases, following a security update to Windows, a feature called Controlled Folder Access may be automatically turned on, preventing 3rd-party applications from accessing specific folders on your computer. To turn this feature off, please follow the steps below:

  1. Select Start > Settings > Update & Security (Windows 10) or Privacy & Security (Windows 11) > Windows Security > Virus & threat protection .

  2. Under Virus & threat protection settings , select Manage settings .

  3. Under Controlled folder access , select Manage Controlled folder access .

  4. Switch the Controlled folder access setting to Off

I know it's ridiculous, but Arduino IDE 2.x.x searches for files in the hidden Arduino15 folder and if it doesn't find them it waits indefinitely.
Or at least that's what just happened on my new Windows 11 installation that was fresh out of the box.
In detail, it got stuck on the search for the library_index.json file and the solution for me was to install version 1.8.9 and install a library using the library manager in order to create the aforementioned file.

The error reported in your log seems to be the same one I had.

I'm having the same problem IDE 2.3.3 stalls with message Downloading index: package_index.tar.bz2 . I'm running on MacOS Ventura 13.6.4.
Is there a way to get IDE 2.3.2 in the hope that this would allow me to continue working?
This issue seems to have been around for a long time. Does anyone know when it will be fixed?

Release 2.3.2 · arduino/arduino-ide · GitHub, expand assets and make your choice.

I can't answer that.

Thanks for the link.
I tried IDE 2.3.2 and it hangs when I start it up with an pulsating Arduino logo. Perhaps there would be a better version to try and revert to.
Any ideas?

Did 2.3.2 work in the past?

I can't tell you where to find the logs on a Mac, they might shine some light on the issue of the pulsating logo.

I don't know if it did. I just thought going back to something before 2.3.3 would work. Probably a stupid assumption.

I've found how you can generate a log: please follow the instructions in this post (Arduino IDE 2.3.2 stuck on Pulsating Logo MAC OS Sonoma - #4 by ptillisch) and post the results here.

Hi @dfitterman.

I don't know if you are still using Arduino IDE 2.3.3, but it was found that it has a bug that causes this to happen when you have Serial Monitor open.

The workaround is to close the Serial Monitor view until the index download process is finished. After that, you can open Serial Monitor again.

The Serial Monitor view is a tab in the bottom panel of the Arduino IDE window, so you might not even notice when you have it open. You can close it by clicking the X icon on the tab:

image

1 Like

Thanks, I'll try that.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.