IDE hangs on startup: "Error loading hardware platform: discovery builtin:serial-discovery not installed"

Hi I'm meeting the same problem with my Arduino IDE 2.2.1. I've looked through the previous replies but there are still some problems remain. It looks like my key error message is that the arduino cannot down the required file somehow. Could anyone help with this?

PS C:\Users\a0498579\AppData\Local\Programs\Arduino IDE> & '.\aRDUINO ide'
PS C:\Users\a0498579\AppData\Local\Programs\Arduino IDE>
Arduino IDE 2.2.1
Checking for frontend application configuration customizations. Module path: C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.2.1" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.34.0" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2023-08-31T14:35:44.802Z" (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.2.1","cliVersion":"0.34.0","buildDate":"2023-08-31T14:35:44.802Z"}
Starting backend process. PID: 23176
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/a0498579/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-11-09T19:22:33.610Z root INFO Backend Object.initialize: 3.6 ms [Finished 0.388 s after backend start]
2023-11-09T19:22:33.610Z root INFO Backend Object.configure: 3.0 ms [Finished 0.388 s after backend start]
2023-11-09T19:22:33.611Z root INFO Backend a.onStart: 1.0 ms [Finished 0.388 s after backend start]
2023-11-09T19:22:33.611Z root INFO Backend a.configure: 0.3 ms [Finished 0.410 s after backend start]
2023-11-09T19:22:33.612Z root INFO Backend u.onStart: 0.3 ms [Finished 0.410 s after backend start]
2023-11-09T19:22:33.613Z root INFO Backend d.configure: 0.1 ms [Finished 0.410 s after backend start]
2023-11-09T19:22:33.614Z root INFO Backend d.initialize: 22.3 ms [Finished 0.410 s after backend start]
2023-11-09T19:22:33.614Z root INFO Backend c.onStart: 0.3 ms [Finished 0.410 s after backend start]
2023-11-09T19:22:33.615Z root INFO Backend s.configure: 1.6 ms [Finished 0.412 s after backend start]
2023-11-09T19:22:33.616Z config INFO >>> Initializing CLI configuration...
2023-11-09T19:22:33.616Z root INFO Backend c.initialize: 0.5 ms [Finished 0.412 s after backend start]
2023-11-09T19:22:33.616Z root INFO Backend P.onStart: 0.8 ms [Finished 0.413 s after backend start]
2023-11-09T19:22:33.617Z config INFO Loading CLI configuration from c:\Users\a0498579\.arduinoIDE\arduino-cli.yaml...
2023-11-09T19:22:33.618Z daemon INFO Starting daemon from C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2023-11-09T19:22:33.618Z root INFO Backend s.initialize: 0.3 ms [Finished 0.414 s after backend start]
2023-11-09T19:22:33.618Z root INFO Backend w.onStart: 1.1 ms [Finished 0.415 s after backend start]
2023-11-09T19:22:33.618Z root INFO Backend r.configure: 2.0 ms [Finished 0.415 s after backend start]
2023-11-09T19:22:33.618Z discovery-log INFO start
2023-11-09T19:22:33.619Z discovery-log INFO start new deferred
2023-11-09T19:22:33.619Z root INFO Backend d.initialize: 0.3 ms [Finished 0.415 s after backend start]
2023-11-09T19:22:33.619Z root INFO Backend y.onStart: 1.8 ms [Finished 0.417 s after backend start]
2023-11-09T19:22:33.619Z root INFO Backend r.configure: 1.6 ms [Finished 0.417 s after backend start]
2023-11-09T19:22:33.619Z root INFO Backend s.onStart: 0.6 ms [Finished 0.419 s after backend start]
2023-11-09T19:22:33.620Z root INFO Backend h.configure: 0.8 ms [Finished 0.419 s after backend start]
2023-11-09T19:22:33.620Z root INFO Backend a.configure: 0.7 ms [Finished 0.420 s after backend start]
2023-11-09T19:22:33.620Z root INFO Backend s.configure: 0.0 ms [Finished 0.420 s after backend start]
2023-11-09T19:22:33.620Z root INFO Backend l.configure: 0.1 ms [Finished 0.420 s after backend start]
2023-11-09T19:22:33.623Z root INFO Theia app listening on http://localhost:63219.
2023-11-09T19:22:33.626Z root INFO Finished starting backend application: 4.9 ms [Finished 0.424 s after backend start]
2023-11-09T19:22:33.935Z root WARN The local plugin referenced by local-dir:/c%3A/Users/a0498579/.arduinoIDE/extensions does not exist.
2023-11-09T19:22:33.936Z root WARN The local plugin referenced by local-dir:/c%3A/Users/a0498579/.arduinoIDE/plugins does not exist.
2023-11-09T19:22:33.938Z root WARN The local plugin referenced by local-dir:C:\Users\a0498579\.arduinoIDE\plugins does not exist.
2023-11-09T19:22:33.967Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\a0498579\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\a0498579\\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}}
2023-11-09T19:22:33.967Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-11-09T19:22:33.970Z config INFO Loaded the CLI configuration.
2023-11-09T19:22:33.972Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/a0498579/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/a0498579/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2023-11-09T19:22:33.972Z config INFO Validating the CLI configuration...
2023-11-09T19:22:33.973Z config INFO The CLI config is valid.
2023-11-09T19:22:33.973Z config INFO <<< Initialized the CLI configuration.
2023-11-09T19:22:33.981Z root INFO Resolve plugins list: 363.9 ms [Finished 0.781 s after backend start]
2023-11-09T19:22:34.076Z daemon INFO time="2023-11-09T11:22:34-08:00" level=info msg="Using config file: c:\\Users\\a0498579\\.arduinoIDE\\arduino-cli.yaml"
time="2023-11-09T11:22:34-08:00" level=info msg="arduino-cli.exe version 0.34.0"
time="2023-11-09T11:22:34-08:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:63220
{"IP":"127.0.0.1","Port":"63220"}
2023-11-09T19:22:34.076Z daemon INFO Daemon is running.
2023-11-09T19:22:34.210Z daemon INFO time="2023-11-09T11:22:34-08:00" level=info msg="Missing signature file" index="C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\package_index.json"
time="2023-11-09T11:22:34-08:00" level=info msg="Loading hardware from: C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\packages"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.4.0_Windows_64bit.zip"
2023-11-09T19:22:34.278Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:serial-discovery@1.4.0 tool: Get "https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.4.0_Windows_64bit.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.279Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:mdns-discovery@1.0.9 tool: Get "https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.9_Windows_64bit.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.281Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:serial-monitor@0.13.0 tool: Get "https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.13.0_Windows_64bit.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.283Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:dfu-discovery@0.1.2 tool: Get "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.2_Windows_64bit.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.284Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:ctags@5.8-arduino11 tool: Get "https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.284Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: reading directory C:\Users\a0498579\AppData\Local\Arduino15\packages\builtin\tools: open C:\Users\a0498579\AppData\Local\Arduino15\packages\builtin\tools: The system cannot find the path specified.
2023-11-09T19:22:34.285Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not installed
2023-11-09T19:22:34.285Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed
2023-11-09T19:22:34.285Z daemon INFO time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.9_Windows_64bit.zip"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.13.0_Windows_64bit.zip"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.2_Windows_64bit.zip"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip"
time="2023-11-09T11:22:34-08:00" level=info msg="Loading tools from dir: C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2023-11-09T11:22:34-08:00" level=info msg="Loading libraries index file" index="C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\library_index.json"
2023-11-09T19:22:34.395Z daemon INFO time="2023-11-09T11:22:34-08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2023-11-09T11:22:34-08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\a0498579\\Documents\\Arduino\\libraries" location=user
2023-11-09T19:22:34.400Z 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: Error loading hardware platform: discovery builtin:serial-discovery not installed
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed

2023-11-09T19:22:34.453Z daemon INFO time="2023-11-09T11:22:34-08:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2023-11-09T19:22:34.455Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2023-11-09T19:22:34.456Z root ERROR Failed to update platform indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:726940)
    at Object.onReceiveStatus (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:754480)
    at Object.onReceiveStatus (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:747504)
    at C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:833048
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeServerStreamRequest (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:754247)
    at a.updateIndex (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:818456)
    at C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587141
    at C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587489
    at new Promise (<anonymous>)
    at _.doUpdateIndex (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587468)
    at _.updatePlatformIndex (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587113)
    at _.updateIndex (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:586481)
    at _.initInstanceWithFallback (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:584725)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-11-09T19:22:34.521Z daemon INFO time="2023-11-09T11:22:34-08:00" level=info msg="Missing signature file" index="C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\package_index.json"
time="2023-11-09T11:22:34-08:00" level=info msg="Loading hardware from: C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\packages"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.4.0_Windows_64bit.zip"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.9_Windows_64bit.zip"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.13.0_Windows_64bit.zip"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.2_Windows_64bit.zip"
time="2023-11-09T11:22:34-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip"
time="2023-11-09T11:22:34-08:00" level=info msg="Loading tools from dir: C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2023-11-09T11:22:34-08:00" level=info msg="Loading libraries index file" index="C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\library_index.json"
2023-11-09T19:22:34.522Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:serial-discovery@1.4.0 tool: Get "https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.4.0_Windows_64bit.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.526Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:mdns-discovery@1.0.9 tool: Get "https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.9_Windows_64bit.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.528Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:serial-monitor@0.13.0 tool: Get "https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.13.0_Windows_64bit.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.528Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:dfu-discovery@0.1.2 tool: Get "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.2_Windows_64bit.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.529Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:ctags@5.8-arduino11 tool: Get "https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-09T19:22:34.529Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: reading directory C:\Users\a0498579\AppData\Local\Arduino15\packages\builtin\tools: open C:\Users\a0498579\AppData\Local\Arduino15\packages\builtin\tools: The system cannot find the path specified.
2023-11-09T19:22:34.530Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not installed
2023-11-09T19:22:34.530Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed
2023-11-09T19:22:34.620Z daemon INFO time="2023-11-09T11:22:34-08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\a0498579\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2023-11-09T11:22:34-08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\a0498579\\Documents\\Arduino\\libraries" location=user
2023-11-09T19:22:34.621Z 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: Error loading hardware platform: discovery builtin:serial-discovery not installed
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed

2023-11-09T19:22:34.621Z 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: Error loading hardware platform: discovery builtin:serial-discovery not installed
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed

    at C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:586285
    at _.evaluateErrorStatus (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:586301)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async s.<anonymous> (C:\Users\a0498579\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:585971)
2023-11-09T19:22:35.077Z root INFO Deploy plugins list: 363.9 ms [Finished 1.878 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2023-11-09T19:22:40.564Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 1791.1 ms [Finished 5.781 s after frontend start]
2023-11-09T19:22:40.572Z root WARN A command editor.action.toggleStickyScroll is already registered.

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

Hi ptillisch, thank you so much for your explanation. While I'm already connected to the network, I'm wondering if there's something wrong with the configurations. I saw you are suggesting configuring proxy settings manually by changing that .yaml file. Do you think that might be helpful? If so, what should be or how can I find my username and proxy address?

network:
  proxy: <proxy scheme>://<username>:<password>@<proxy address>:<port>

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