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

I am using windows 11 and I am trying to use Arduino 2.0. However, I cannot get past the initial loading screen. Any tips?

Hi @anon13329338. I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. Start Windows "File Explorer".
  2. Open the Arduino IDE installation folder.
    (usually C:\Program Files\Arduino IDE or C:\Users\<user name>\AppData\Local\Programs\Arduino IDE).
  3. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  4. From the context menu, click "Open PowerShell window here".
    PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  5. Type the following command:
    & ".\Arduino IDE"
    
  6. Press the Enter key.
    Debug output should now be printed to the PowerShell window as the Arduino IDE starts (or fails to start).
  7. Wait until you are sure the startup of Arduino IDE has hung.
  8. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  9. Right click on the title bar of the PowerShell window.
    This will open a context menu.
  10. Select Edit > Select All from the context menu.
    This will select all the text in the PowerShell window.
  11. Press Ctrl+C.
    This will copy the contents of the PowerShell window to the clipboard.
  12. Open a forum reply here by clicking the Reply button.
  13. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  14. Press Ctrl+V.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the Reply button to post the output.

Please let me know if you have any questions or problems while following those instructions.

PS C:\Program Files\Arduino IDE> &".\Arduino IDE"
PS C:\Program Files\Arduino IDE>
Arduino IDE 2.0.1
Starting backend process. PID: 8376
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///c%3A/Users/Administrator/.theia'
root INFO Backend Object.initialize: 4.3 ms [Finished 0.855 s after backend start]
root INFO Backend Object.configure: 3.4 ms [Finished 0.855 s after backend start]
root INFO Backend MessagingContribution.onStart: 1.4 ms [Finished 0.855 s after backend start]
root INFO Backend OSBackendApplicationContribution.configure: 0.4 ms [Finished 0.890 s after backend start]
root INFO Backend DefaultWorkspaceServer.onStart: 0.3 ms [Finished 0.890 s after backend start]
root INFO Backend LocalizationBackendContribution.configure: 0.1 ms [Finished 0.890 s after backend start]
root INFO Backend LocalizationBackendContribution.initialize: 34.8 ms [Finished 0.890 s after backend start]
root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 0.890 s after backend start]
root INFO Backend ElectronTokenBackendContribution.configure: 2.2 ms [Finished 0.893 s after backend start]
root INFO Backend PluginDeployerContribution.initialize: 0.4 ms [Finished 0.893 s after backend start]
root INFO Backend ConfigServiceImpl.onStart: 0.7 ms [Finished 0.893 s after backend start]
root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.3 ms [Finished 0.895 s after backend start]
root INFO Backend ArduinoDaemonImpl.onStart: 1.0 ms [Finished 0.895 s after backend start]
root INFO Backend NodeFileUploadService.configure: 2.1 ms [Finished 0.896 s after backend start]
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
discovery-log INFO start
discovery-log INFO start new deferred
root INFO Backend BoardDiscovery.onStart: 1.0 ms [Finished 0.897 s after backend start]
root INFO Backend FileDownloadEndpoint.configure: 0.6 ms [Finished 0.898 s after backend start]
root INFO Backend AuthenticationServiceImpl.onStart: 0.4 ms [Finished 0.899 s after backend start]
root INFO Backend PluginApiContribution.configure: 0.6 ms [Finished 0.899 s after backend start]
root INFO Backend HostedPluginReader.configure: 1.1 ms [Finished 0.901 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.2 ms [Finished 0.908 s after backend start]
root INFO Backend PlotterBackendContribution.configure: 0.8 ms [Finished 0.909 s after backend start]
root INFO Theia app listening on http://localhost:54182.
root INFO Finished starting backend application: 15.5 ms [Finished 0.915 s after backend start]
root WARN The local plugin referenced by local-dir:/c%3A/Users/Administrator/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/Administrator/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\Administrator\.arduinoProIDE\plugins does not exist.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.5" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
daemon INFO INFO[0000] Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
INFO[0000] arduino-cli.exe version 0.28.0
INFO[0000] Executing `arduino-cli daemon`
{"IP":"127.0.0.1","Port":"54183"}

daemon INFO Daemon is running.
daemon INFO INFO[0000] Loading hardware from: C:\Users\Administrator\AppData\Local\Arduino15\packages

root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\Administrator\AppData\Local\Arduino15\package_index.json: open C:\Users\Administrator\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
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
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
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\Administrator\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
daemon INFO INFO[0000] Loading libraries index file                  index="C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\library_index.json"
INFO[0000] Adding libraries dir                          dir="C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\libraries" location=ide
INFO[0000] Adding libraries dir                          dir="C:\\Users\\Administrator\\Documents\\Arduino\\libraries" location=user

root ERROR The primary packages indexes are missing. Running indexes update before initializing the core gRPC client
daemon INFO INFO[0000] Updating libraries index                   

daemon INFO INFO[0000] Updating index                                url="https://downloads.arduino.cc/packages/package_index.tar.bz2"

root INFO Resolve plugins list: 156.2 ms [Finished 1.054 s after backend start]
root INFO core-client-provider [platform-index]
root INFO core-client-provider [library-index]
root INFO Deployed backend plugin "cortex-debug@0.3.10" from "C:\Program Files\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension": 11.0 ms [Finished 1.066 s after backend start]
root INFO Deployed backend plugin "vscode-arduino-tools@0.0.2-beta.5" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle": 3.6 ms [Finished 1.069 s after backend start]
root INFO Deployed backend plugin "cpp@1.52.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension": 8.4 ms [Finished 1.078 s after backend start]
root INFO Deployed backend plugin "json@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension": 2.1 ms [Finished 1.080 s after backend start]
root INFO Deployed backend plugin "json-language-features@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain": 0.7 ms [Finished 1.080 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-bg@1.48.3" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-bg\extension": 96.0 ms [Finished 1.176 s after backend start]
root ERROR Failed to update platform, library indexes.
root INFO Deployed backend plugin "vscode-language-pack-cs@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-cs\extension": 76.7 ms [Finished 1.253 s after backend start]
daemon INFO INFO[0000] Loading hardware from: C:\Users\Administrator\AppData\Local\Arduino15\packages
INFO[0000] Loading libraries index file                  index="C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\library_index.json"
INFO[0000] Adding libraries dir                          dir="C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\libraries" location=ide
INFO[0000] Adding libraries dir                          dir="C:\\Users\\Administrator\\Documents\\Arduino\\libraries" location=user

root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\Administrator\AppData\Local\Arduino15\package_index.json: open C:\Users\Administrator\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
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
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
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\Administrator\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
root ERROR Uncaught Exception:
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\Administrator\AppData\Local\Arduino15\package_index.json: open C:\Users\Administrator\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\Administrator\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at isIndexUpdateRequiredBeforeInit (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:378:11)
    at CoreClientProvider.evaluateErrorStatus (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:190:16)
    at ClientReadableStreamImpl.<anonymous> (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:175:36)
    at ClientReadableStreamImpl.emit (node:events:394:28)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
root INFO Deployed backend plugin "vscode-language-pack-de@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-de\extension": 132.1 ms [Finished 1.385 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-es@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-es\extension": 70.2 ms [Finished 1.456 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-fr@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-fr\extension": 49.7 ms [Finished 1.505 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-hu@1.48.3" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-hu\extension": 82.0 ms [Finished 1.587 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-it@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-it\extension": 58.3 ms [Finished 1.646 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ja@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-ja\extension": 60.8 ms [Finished 1.707 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ko@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-ko\extension": 60.7 ms [Finished 1.767 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-nl@1.48.3" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-nl\extension": 19.5 ms [Finished 1.787 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pl@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-pl\extension": 47.1 ms [Finished 1.834 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pt-BR@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-pt-BR\extension": 52.2 ms [Finished 1.886 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ru@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-ru\extension": 51.9 ms [Finished 1.938 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-tr@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-tr\extension": 52.8 ms [Finished 1.991 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-uk@1.48.3" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-uk\extension": 35.2 ms [Finished 2.026 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-zh-hans@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-zh-hans\extension": 59.6 ms [Finished 2.086 s after backend start]
root INFO Deploy plugins list: 156.2 ms [Finished 2.094 s after backend start]
root WARN Frontend s.configure took longer than the expected maximum 100 milliseconds: 182.4 ms [Finished 1.768 s after frontend start]

Thanks! That is useful. I can see the problem here:

Are you aware of any reason why the IDE would not be able to access files at paths like this?:

C:\Users\Administrator\AppData\Local\Arduino15\library_index.json

Is "Administrator" your normal Windows user account, or do you have another username you are using to start the IDE with?

1 Like

I am not aware of any reason why the IDE would not be able to access file paths like that and Administrator is my windows user account.

Looking further into it, the files are not in that path. Where would I get the libraries from?

This is odd indeed. Is your C:\ hard drive full?

If looking for it with your file browser or command line, note that the C:\Users\Administrator\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".

The IDE automatically downloads them from the Internet.

The file mentioned here:

Is available for download here:

https://downloads.arduino.cc/packages/package_index.json

The file mentioned here:

Is available for download here:

http://downloads.arduino.cc/libraries/library_index.json

It would be worth a try to manually install them:

  1. Download the files from the links I provided above.
  2. Create the folder at the following path if it does not already exist:
    C:\Users\Administrator\AppData\Local\Arduino15
    
  3. Copy the downloaded files to the Arduino15 folder.
  4. Try starting Arduino IDE again.

Thank you for your help! I was able to get it working.

You are welcome. I'm glad it is working now.

Regards,
Per

6 posts were split to a new topic: IDE hangs on startup: "Received RST_STREAM with code 2 triggered by internal client error: Protocol error"

2 posts were split to a new topic: IDE hangs on startup: "Unable to get Documents Folder: The filename, directory name, or volume label syntax is incorrect."

5 posts were split to a new topic: IDE hangs on startup: "Unable to get Documents Folder: The system cannot find the path specified."

8 posts were split to a new topic: IDE hangs on startup

10 posts were split to a new topic: IDE hangs on startup: "downloading builtin:serial-monitor@0.11.0 tool: Server responded with: 403 Forbidden"

15 posts were split to a new topic: IDE hangs on startup: "Unable to get Documents Folder: The system cannot find the file specified."

2 posts were split to a new topic: IDE hangs on startup: "Error loading hardware platform: discovery builtin:serial-discovery not installed"

7 posts were split to a new topic: IDE hangs on startup: "No connection established"

6 posts were split to a new topic: IDE hangs on startup: "Error: 14 UNAVAILABLE: read ECONNRESET"

5 posts were split to a new topic: IDE hangs on startup: "Error loading hardware platform: discovery builtin:serial-discovery not found"

4 posts were split to a new topic: IDE hangs on startup: "EPERM: operation not permitted, mkdir 'c:\Users\User.arduinoIDE'"

7 posts were split to a new topic: IDE hangs on startup: "ENOENT"