IDE hangs on startup: "connectex: A connection attempt failed because the connected party did not properly respond ..."

2024-05-09 11:37:32 Arduino IDE 2.3.2
2024-05-09 11:37:32 Checking for frontend application configuration customizations. Module path: C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\package.json
2024-05-09 11:37:32 Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.2" (type of string)
2024-05-09 11:37:32 Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.3" (type of string)
2024-05-09 11:37:32 Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-20T10:04:35.814Z" (type of string)
2024-05-09 11:37:32 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"}
2024-05-09 11:37:32 Starting backend process. PID: 5696
2024-05-09 11:37:33 Using browser-only version of superagent in non-browser environment
2024-05-09 11:37:33 Configuration directory URI: 'file:///c%3A/Users/prawech_sr/.arduinoIDE'
2024-05-09 11:37:33 Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-05-09 11:37:33 2024-05-09T04:37:33.392Z root INFO Backend Object.initialize: 7.7 ms [Finished 0.926 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.399Z root INFO Backend Object.configure: 6.6 ms [Finished 0.926 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.399Z root INFO Backend s.onStart: 3.1 ms [Finished 0.926 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.400Z root INFO Backend s.configure: 0.7 ms [Finished 0.967 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.401Z root INFO Backend d.onStart: 0.5 ms [Finished 0.967 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.402Z root INFO Backend d.configure: 0.2 ms [Finished 0.967 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.404Z root INFO Backend d.initialize: 40.3 ms [Finished 0.967 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.404Z root INFO Backend c.onStart: 0.3 ms [Finished 0.967 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.405Z root INFO Backend a.configure: 7.1 ms [Finished 0.974 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.408Z config INFO >>> Initializing CLI configuration...
2024-05-09 11:37:33 2024-05-09T04:37:33.408Z root INFO Backend c.initialize: 1.0 ms [Finished 0.975 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.408Z root INFO Backend R.onStart: 1.1 ms [Finished 0.976 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.409Z config INFO Loading CLI configuration from c:\Users\prawech_sr\.arduinoIDE\arduino-cli.yaml...
2024-05-09 11:37:33 2024-05-09T04:37:33.410Z daemon INFO Starting daemon from C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\resources\arduino-cli.exe...
2024-05-09 11:37:33 2024-05-09T04:37:33.410Z root INFO Backend a.initialize: 0.6 ms [Finished 0.977 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.410Z root INFO Backend w.onStart: 2.3 ms [Finished 0.979 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.410Z root INFO Backend r.configure: 3.3 ms [Finished 0.979 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.410Z discovery-log INFO start
2024-05-09 11:37:33 2024-05-09T04:37:33.410Z discovery-log INFO start new deferred
2024-05-09 11:37:33 2024-05-09T04:37:33.410Z root INFO Backend d.initialize: 0.7 ms [Finished 0.980 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.410Z root INFO Backend y.onStart: 3.5 ms [Finished 0.983 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.410Z root INFO Backend r.configure: 3.1 ms [Finished 0.983 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.411Z root INFO Backend a.onStart: 1.0 ms [Finished 0.985 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.411Z root INFO Backend h.configure: 0.9 ms [Finished 0.985 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.411Z root INFO Backend s.configure: 0.2 ms [Finished 0.985 s after backend start]
2024-05-09 11:37:33 2024-05-09T04:37:33.411Z root INFO Backend l.configure: 0.1 ms [Finished 0.986 s after backend start]
2024-05-09 11:37:49 2024-05-09T04:37:49.080Z root INFO Theia app listening on http://127.0.0.1:65221.
2024-05-09 11:37:49 2024-05-09T04:37:49.080Z root INFO Finished starting backend application: 15669.8 ms [Finished 16.655 s after backend start]
2024-05-09 11:37:49 2024-05-09T04:37:49.389Z root WARN The local plugin referenced by local-dir:/c%3A/Users/prawech_sr/.arduinoIDE/plugins does not exist.
2024-05-09 11:37:49 2024-05-09T04:37:49.390Z root WARN The local plugin referenced by local-dir:/c%3A/Users/prawech_sr/.arduinoIDE/extensions does not exist.
2024-05-09 11:37:49 2024-05-09T04:37:49.390Z root WARN The local plugin referenced by local-dir:C:\Users\prawech_sr\.arduinoIDE\plugins does not exist.
2024-05-09 11:37:49 2024-05-09T04:37:49.402Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\prawech_sr\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\prawech_sr\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\prawech_sr\\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-09 11:37:49 2024-05-09T04:37:49.402Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-05-09 11:37:49 2024-05-09T04:37:49.402Z config INFO Loaded the CLI configuration.
2024-05-09 11:37:49 2024-05-09T04:37:49.436Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/prawech_sr/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/prawech_sr/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-05-09 11:37:49 2024-05-09T04:37:49.436Z config INFO Validating the CLI configuration...
2024-05-09 11:37:49 2024-05-09T04:37:49.499Z config INFO The CLI config is valid.
2024-05-09 11:37:49 2024-05-09T04:37:49.499Z config INFO <<< Initialized the CLI configuration.
2024-05-09 11:37:49 2024-05-09T04:37:49.571Z root INFO Resolve plugins list: 16161.3 ms [Finished 17.144 s after backend start]
2024-05-09 11:37:49 2024-05-09T04:37:49.641Z daemon INFO time="2024-05-09T11:37:49+07:00" level=info msg="Using config file: c:\\Users\\prawech_sr\\.arduinoIDE\\arduino-cli.yaml"
time="2024-05-09T11:37:49+07:00" level=info msg="arduino-cli.exe version 0.35.3"
time="2024-05-09T11:37:49+07:00" level=info msg="Executing `arduino-cli daemon`"
2024-05-09 11:37:51 2024-05-09T04:37:51.185Z daemon INFO Daemon is now listening on 127.0.0.1:65226
{"IP":"127.0.0.1","Port":"65226"}
2024-05-09 11:37:51 2024-05-09T04:37:51.185Z daemon INFO Daemon is running.
2024-05-09 11:37:51 2024-05-09T04:37:51.329Z daemon INFO time="2024-05-09T11:37:51+07:00" level=info msg="Updating libraries index"
2024-05-09 11:37:51 2024-05-09T04:37:51.335Z daemon INFO time="2024-05-09T11:37:51+07:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-05-09 11:37:51 Opening channel for service path '/services/electron-window'.
2024-05-09 11:37:52 Opening channel for service path '/services/ide-updater'.
2024-05-09 11:37:52 2024-05-09T04:37:52.528Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 398.4 ms [Finished 3.200 s after frontend start]
2024-05-09 11:37:52 2024-05-09T04:37:52.624Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-05-09 11:37:52 2024-05-09T04:37:52.692Z root WARN Frontend keybindings.onStart took longer than the expected maximum 100 milliseconds: 128.0 ms [Finished 3.376 s after frontend start]
2024-05-09 11:37:53 2024-05-09T04:37:53.028Z root WARN Frontend D.onStart took longer than the expected maximum 100 milliseconds: 278.3 ms [Finished 3.739 s after frontend start]
2024-05-09 11:37:53 2024-05-09T04:37:53.445Z root INFO Deploy plugins list: 16161.3 ms [Finished 21.020 s after backend start]
2024-05-09 11:38:44 2024-05-09T04:38:44.562Z 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 104.18.11.21:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
2024-05-09 11:38:44 2024-05-09T04:38:44.564Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\prawech_sr\AppData\Local\Arduino15\package_index.json: open C:\Users\prawech_sr\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-05-09 11:38:44 2024-05-09T04:38:44.564Z daemon INFO time="2024-05-09T11:38:44+07:00" level=info msg="Loading hardware from: C:\\Users\\prawech_sr\\AppData\\Local\\Arduino15\\packages"
2024-05-09 11:38:44 2024-05-09T04:38:44.566Z daemon INFO time="2024-05-09T11:38:44+07:00" level=info msg="Loading libraries index file" index="C:\\Users\\prawech_sr\\AppData\\Local\\Arduino15\\library_index.json"
2024-05-09 11:38:44 2024-05-09T04:38:44.566Z 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-09 11:38:44 2024-05-09T04:38:44.567Z 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-09 11:38:44 2024-05-09T04:38:44.568Z 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\prawech_sr\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-05-09 11:38:44 2024-05-09T04:38:44.568Z daemon INFO time="2024-05-09T11:38:44+07:00" level=info msg="Adding libraries dir" dir="C:\\Users\\prawech_sr\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-05-09T11:38:44+07:00" level=info msg="Adding libraries dir" dir="C:\\Users\\prawech_sr\\Documents\\Arduino\\libraries" location=user
2024-05-09 11:38:44 2024-05-09T04:38:44.582Z 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\prawech_sr\AppData\Local\Arduino15\package_index.json: open C:\Users\prawech_sr\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\prawech_sr\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-05-09 11:38:44 2024-05-09T04:38:44.584Z daemon INFO time="2024-05-09T11:38:44+07:00" level=info msg="Updating libraries index"
2024-05-09 11:38:44 2024-05-09T04:38:44.585Z daemon INFO time="2024-05-09T11:38:44+07:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-05-09 11:38:44 2024-05-09T04:38:44.591Z daemon INFO time="2024-05-09T11:38:44+07:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-05-09 11:38:44 2024-05-09T04:38:44.596Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-05-09 11:38:44 2024-05-09T04:38:44.598Z daemon INFO time="2024-05-09T11:38:44+07:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-05-09 11:38:44 2024-05-09T04:38:44.600Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-05-09 11:39:26 2024-05-09T04:39:26.713Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:763461)
    at Object.onReceiveStatus (C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:791078)
    at Object.onReceiveStatus (C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:784102)
    at C:\Users\prawech_sr\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\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:790845)
    at s.updateIndex (C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:855121)
    at C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:623733
    at C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:624081
    at new Promise (<anonymous>)
    at E.doUpdateIndex (C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:624060)
    at E.updatePlatformIndex (C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:623705)
    at E.updateIndex (C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:623073)
    at E.initInstanceWithFallback (C:\Users\prawech_sr\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-09 11:39:26 2024-05-09T04:39:26.715Z daemon INFO time="2024-05-09T11:39:26+07:00" level=info msg="Updating libraries index"
2024-05-09 11:39:26 2024-05-09T04:39:26.723Z daemon INFO time="2024-05-09T11:39:26+07:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-05-09 11:40:19 2024-05-09T04:40:19.868Z 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 104.18.10.21:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
2024-05-09 11:40:19 2024-05-09T04:40:19.870Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\prawech_sr\AppData\Local\Arduino15\package_index.json: open C:\Users\prawech_sr\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-05-09 11:40:19 2024-05-09T04:40:19.870Z daemon INFO time="2024-05-09T11:40:19+07:00" level=info msg="Loading hardware from: C:\\Users\\prawech_sr\\AppData\\Local\\Arduino15\\packages"
2024-05-09 11:40:19 2024-05-09T04:40:19.874Z daemon INFO time="2024-05-09T11:40:19+07:00" level=info msg="Loading libraries index file" index="C:\\Users\\prawech_sr\\AppData\\Local\\Arduino15\\library_index.json"
2024-05-09 11:40:19 2024-05-09T04:40:19.874Z 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-09 11:40:19 2024-05-09T04:40:19.874Z 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-09 11:40:19 2024-05-09T04:40:19.876Z daemon INFO time="2024-05-09T11:40:19+07:00" level=info msg="Adding libraries dir" dir="C:\\Users\\prawech_sr\\AppData\\Local\\Arduino15\\libraries" location=ide
2024-05-09 11:40:19 2024-05-09T04:40:19.876Z 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\prawech_sr\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-05-09 11:40:19 2024-05-09T04:40:19.876Z daemon INFO time="2024-05-09T11:40:19+07:00" level=info msg="Adding libraries dir" dir="C:\\Users\\prawech_sr\\Documents\\Arduino\\libraries" location=user
2024-05-09 11:40:19 2024-05-09T04:40:19.883Z 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\prawech_sr\AppData\Local\Arduino15\package_index.json: open C:\Users\prawech_sr\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\prawech_sr\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-05-09 11:40:19 2024-05-09T04:40:19.883Z 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\prawech_sr\AppData\Local\Arduino15\package_index.json: open C:\Users\prawech_sr\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\prawech_sr\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Users\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:622877
    at E.evaluateErrorStatus (C:\Users\prawech_sr\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\prawech_sr\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:622563)
2024-05-09 11:41:09 Closing channel on service path '/services/electron-window'.
2024-05-09 11:41:09 Closing channel on service path '/services/ide-updater'.
2024-05-09 11:41:09 Stored workspaces roots: 
2024-05-09 11:41:09 No sketches were scheduled for deletion.

I moved your topic to an appropriate forum category @wettar.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

1 Like

Hi @wettar.

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.

1 Like

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