IDE hangs on startup: "..\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified"

OS Windows 11
Logs

Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: ..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': ..\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: 9324
Using browser-only version of superagent in non-browser environment
Configuration directory URI: '../.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2025-02-20T02:03:05.350Z root INFO Backend Object.initialize: 8.0 ms [Finished 0.844 s after backend start]
2025-02-20T02:03:05.351Z root INFO Backend Object.configure: 6.8 ms [Finished 0.844 s after backend start]
2025-02-20T02:03:05.351Z root INFO Backend s.onStart: 2.6 ms [Finished 0.844 s after backend start]
2025-02-20T02:03:05.351Z root INFO Backend s.configure: 0.4 ms [Finished 0.880 s after backend start]
2025-02-20T02:03:05.352Z root INFO Backend d.onStart: 0.3 ms [Finished 0.880 s after backend start]
2025-02-20T02:03:05.353Z root INFO Backend d.configure: 0.1 ms [Finished 0.880 s after backend start]
2025-02-20T02:03:05.355Z root INFO Backend d.initialize: 35.3 ms [Finished 0.880 s after backend start]
2025-02-20T02:03:05.355Z root INFO Backend c.onStart: 0.3 ms [Finished 0.880 s after backend start]
2025-02-20T02:03:05.357Z root INFO Backend a.configure: 1.0 ms [Finished 0.881 s after backend start]
2025-02-20T02:03:05.359Z config INFO >>> Initializing CLI configuration...
2025-02-20T02:03:05.359Z root INFO Backend c.initialize: 0.7 ms [Finished 0.882 s after backend start]
2025-02-20T02:03:05.359Z root INFO Backend R.onStart: 1.1 ms [Finished 0.882 s after backend start]
2025-02-20T02:03:05.361Z config INFO Loading CLI configuration from ..\.arduinoIDE\arduino-cli.yaml...
2025-02-20T02:03:05.362Z daemon INFO Starting daemon from ..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2025-02-20T02:03:05.362Z root INFO Backend a.initialize: 0.6 ms [Finished 0.884 s after backend start]
2025-02-20T02:03:05.362Z root INFO Backend w.onStart: 1.6 ms [Finished 0.885 s after backend start]
2025-02-20T02:03:05.362Z root INFO Backend r.configure: 2.5 ms [Finished 0.885 s after backend start]
2025-02-20T02:03:05.363Z discovery-log INFO start
2025-02-20T02:03:05.363Z discovery-log INFO start new deferred
2025-02-20T02:03:05.363Z root INFO Backend d.initialize: 2.1 ms [Finished 0.887 s after backend start]
2025-02-20T02:03:05.363Z root INFO Backend y.onStart: 2.7 ms [Finished 0.889 s after backend start]
2025-02-20T02:03:05.363Z root INFO Backend r.configure: 2.4 ms [Finished 0.890 s after backend start]
2025-02-20T02:03:05.363Z root INFO Backend a.onStart: 1.5 ms [Finished 0.893 s after backend start]
2025-02-20T02:03:05.363Z root INFO Backend h.configure: 1.5 ms [Finished 0.893 s after backend start]
2025-02-20T02:03:05.363Z root INFO Backend s.configure: 0.2 ms [Finished 0.893 s after backend start]
2025-02-20T02:03:05.363Z root INFO Backend l.configure: 0.2 ms [Finished 0.893 s after backend start]
2025-02-20T02:03:05.367Z root INFO Theia app listening on http://127.0.0.1:49728.
2025-02-20T02:03:05.367Z root INFO Finished starting backend application: 4.3 ms [Finished 0.897 s after backend start]
2025-02-20T02:03:05.390Z root WARN The local plugin referenced by local-dir:../.arduinoIDE/plugins does not exist.
2025-02-20T02:03:05.390Z root WARN The local plugin referenced by local-dir:../.arduinoIDE/extensions does not exist.
2025-02-20T02:03:05.390Z root WARN The local plugin referenced by local-dir:..\.arduinoIDE\plugins does not exist.
2025-02-20T02:03:05.401Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"..\\AppData\\Local\\Arduino15","downloads":"..\\AppData\\Local\\Arduino15\\staging","user":"..\\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}}
2025-02-20T02:03:05.401Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2025-02-20T02:03:05.401Z config INFO Loaded the CLI configuration.
2025-02-20T02:03:05.416Z config INFO Mapped the CLI configuration: {"dataDirUri":"file://../AppData/Local/Arduino15","sketchDirUri":"file://../Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2025-02-20T02:03:05.416Z config INFO Validating the CLI configuration...
2025-02-20T02:03:05.418Z config INFO The CLI config is valid.
2025-02-20T02:03:05.418Z config INFO <<< Initialized the CLI configuration.
2025-02-20T02:03:05.476Z root INFO Resolve plugins list: 115.7 ms [Finished 1.006 s after backend start]
2025-02-20T02:03:06.099Z daemon INFO time="2025-02-20T07:33:05+05:30" level=info msg="Using config file: ..\\.arduinoIDE\\arduino-cli.yaml"
time="2025-02-20T07:33:05+05:30" level=info msg="arduino-cli.exe version 0.35.3"
time="2025-02-20T07:33:05+05:30" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:49729
{"IP":"127.0.0.1","Port":"49729"}
2025-02-20T02:03:06.100Z daemon INFO Daemon is running.
2025-02-20T02:03:06.173Z daemon INFO time="2025-02-20T07:33:06+05:30" level=info msg="Updating libraries index"
time="2025-02-20T07:33:06+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
time="2025-02-20T07:33:06+05:30" level=info msg="Loading hardware from: ..\\AppData\\Local\\Arduino15\\packages"
time="2025-02-20T07:33:06+05:30" level=info msg="Loading libraries index file" index="..\\AppData\\Local\\Arduino15\\library_index.json"
time="2025-02-20T07:33:06+05:30" level=info msg="Adding libraries dir" dir="..\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2025-02-20T07:33:06+05:30" level=info msg="Adding libraries dir" dir="..\\Documents\\Arduino\\libraries" location=user
2025-02-20T02:03:06.179Z 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: no such host
2025-02-20T02:03:06.181Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file ..\AppData\Local\Arduino15\package_index.json: open ..\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2025-02-20T02:03:06.182Z 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
2025-02-20T02:03:06.183Z 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
2025-02-20T02:03:06.184Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open ..\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-02-20T02:03:06.193Z 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 ..\AppData\Local\Arduino15\package_index.json: open ..\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 ..\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2025-02-20T02:03:06.269Z daemon INFO time="2025-02-20T07:33:06+05:30" level=info msg="Updating libraries index"
time="2025-02-20T07:33:06+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
time="2025-02-20T07:33:06+05:30" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2025-02-20T07:33:06+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2025-02-20T02:03:06.271Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2025-02-20T02:03:06.273Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2025-02-20T02:03:06.275Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:763461)
    at Object.onReceiveStatus (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:791078)
    at Object.onReceiveStatus (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:784102)
    at ..\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 (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:790845)
    at s.updateIndex (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:855121)
    at ..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:623733
    at ..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:624081
    at new Promise (<anonymous>:wink:
    at E.doUpdateIndex (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:624060)
    at E.updatePlatformIndex (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:623705)
    at E.updateIndex (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:623073)
    at E.initInstanceWithFallback (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:621317)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-02-20T02:03:06.287Z daemon INFO time="2025-02-20T07:33:06+05:30" level=info msg="Updating libraries index"
time="2025-02-20T07:33:06+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
time="2025-02-20T07:33:06+05:30" level=info msg="Loading hardware from: ..\\AppData\\Local\\Arduino15\\packages"
time="2025-02-20T07:33:06+05:30" level=info msg="Loading libraries index file" index="..\\AppData\\Local\\Arduino15\\library_index.json"
time="2025-02-20T07:33:06+05:30" level=info msg="Adding libraries dir" dir="..\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2025-02-20T07:33:06+05:30" level=info msg="Adding libraries dir" dir="..\\Documents\\Arduino\\libraries" location=user
2025-02-20T02:03:06.289Z 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: no such host
2025-02-20T02:03:06.291Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file ..\AppData\Local\Arduino15\package_index.json: open ..\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2025-02-20T02:03:06.292Z 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
2025-02-20T02:03:06.297Z 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
2025-02-20T02:03:06.297Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open ..\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-02-20T02:03:06.300Z 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 ..\AppData\Local\Arduino15\package_index.json: open ..\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 ..\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2025-02-20T02:03:06.301Z 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 ..\AppData\Local\Arduino15\package_index.json: open ..\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 ..\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at ..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:622877
    at E.evaluateErrorStatus (..\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> (..\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:622563)
2025-02-20T02:03:07.574Z root INFO Deploy plugins list: 115.7 ms [Finished 3.104 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2025-02-20T02:03:08.105Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 236.0 ms [Finished 2.599 s after frontend start]
2025-02-20T02:03:08.105Z root WARN A command editor.action.toggleStickyScroll is already registered.
2025-02-20T02:03:08.286Z root WARN Frontend keybindings.onStart took longer than the expected maximum 100 milliseconds: 175.9 ms [Finished 2.809 s after frontend start]

Welcome to the forum

The first thing that I would do is to update to version 2.3.4

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

The errors indicate Arduino IDE is not able to access the Internet. If it is not already, please connect your computer to the Internet, close the Arduino IDE window, then start Arduino IDE again. This time it should start up successfully.

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.

I think there are reports in this forum that even 2.3.4 hangs at startup.

The pc that has arduino ide installed doesn't have access to internet, I can try installing on a pc with internet connection and then copy over the desired folders/files.

If the other PC also uses Windows then that will work fine:

  1. Install Arduino IDE on the online PC.
  2. Start Arduino IDE on the online PC.
  3. After Arduino IDE start up, you will see some text in the black "Output" panel at the bottom of the Arduino IDE window that indicates the progress of installing some additional components. Wait some time for the installation of all those components to finish.
  4. One of the components that was automatically installed is the "Arduino AVR Boards" platform that adds support to the IDE for the boards of the AVR architecture (e.g., UNO R3, Mega 2560, Leonardo). If you need any other boards platforms, use the Arduino IDE Boards Manager to install them.
  5. Copy the folder at the following path from the online PC to the same location on the offline PC:
    C:\Users\<username>\AppData\Local\Arduino15\
    
    (Where <username> is your Windows username)
    :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".

After doing that, Arduino IDE should start up and be functional on the offline PC. Note that there are some supplemental features (e.g., Boards Manager, Library Manager) that can only be used with access to the Internet, so you won't be able to use those on the offline PC. We can provide instructions for manually installing additional boards platforms and libraries as you need them.

1 Like

For some users, yes, but it would still be better to install the latest version

Per has identified the probable cause of your problem and when you install the IDE on the PC connected to the internet I suggest that you use version 2.3.4

1 Like

I agree with UKHeliBob. Even though using the outdated version was not the cause of the problem you encountered, there have been some important bug fixes and enhancements since the time of the 2.3.2 release so I definitely recommend installing the latest version.

1 Like