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

type or paste code herePS C:\Program Files\arduino-ide_2.3.3_Windows_64bit> & ".\Arduino IDE"
PS C:\Program Files\arduino-ide_2.3.3_Windows_64bit>
Arduino IDE 2.3.3
Checking for frontend application configuration customizations. Module path: C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.3" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.0.4" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-09-25T09:41:18.242Z" (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.3","cliVersion":"1.0.4","buildDate":"2024-09-25T09:41:18.242Z"}
Starting backend process. PID: 24968
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/adity/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-10-22T19:52:00.800Z root INFO Backend Object.initialize: 3.4 ms [Finished 0.372 s after backend start]
2024-10-22T19:52:00.801Z root INFO Backend Object.configure: 2.9 ms [Finished 0.372 s after backend start]
2024-10-22T19:52:00.801Z root INFO Backend a.onStart: 1.4 ms [Finished 0.372 s after backend start]
2024-10-22T19:52:00.801Z root INFO Backend a.configure: 0.3 ms [Finished 0.388 s after backend start]
2024-10-22T19:52:00.802Z root INFO Backend d.onStart: 0.2 ms [Finished 0.388 s after backend start]
2024-10-22T19:52:00.802Z root INFO Backend d.configure: 0.1 ms [Finished 0.388 s after backend start]
2024-10-22T19:52:00.803Z root INFO Backend d.initialize: 16.0 ms [Finished 0.388 s after backend start]
2024-10-22T19:52:00.803Z root INFO Backend c.onStart: 0.2 ms [Finished 0.388 s after backend start]
2024-10-22T19:52:00.803Z root INFO Backend s.configure: 1.1 ms [Finished 0.389 s after backend start]
2024-10-22T19:52:00.805Z config INFO >>> Initializing CLI configuration...
2024-10-22T19:52:00.805Z root INFO Backend c.initialize: 0.4 ms [Finished 0.389 s after backend start]
2024-10-22T19:52:00.805Z root INFO Backend x.onStart: 0.5 ms [Finished 0.390 s after backend start]
2024-10-22T19:52:00.805Z config INFO Loading CLI configuration from c:\Users\adity\.arduinoIDE\arduino-cli.yaml...
2024-10-22T19:52:00.805Z daemon INFO Starting daemon from C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\resources\arduino-cli.exe...
2024-10-22T19:52:00.805Z root INFO Backend s.initialize: 0.3 ms [Finished 0.390 s after backend start]
2024-10-22T19:52:00.805Z root INFO Backend w.onStart: 0.9 ms [Finished 0.391 s after backend start]
2024-10-22T19:52:00.806Z root INFO Backend r.configure: 1.4 ms [Finished 0.391 s after backend start]
2024-10-22T19:52:00.806Z discovery-log INFO start
2024-10-22T19:52:00.806Z discovery-log INFO start new deferred
2024-10-22T19:52:00.806Z root INFO Backend d.initialize: 0.3 ms [Finished 0.392 s after backend start]
2024-10-22T19:52:00.806Z root INFO Backend y.onStart: 1.4 ms [Finished 0.393 s after backend start]
2024-10-22T19:52:00.806Z root INFO Backend r.configure: 1.2 ms [Finished 0.393 s after backend start]
2024-10-22T19:52:00.806Z root INFO Backend s.onStart: 0.3 ms [Finished 0.394 s after backend start]
2024-10-22T19:52:00.806Z root INFO Backend h.configure: 0.3 ms [Finished 0.394 s after backend start]
2024-10-22T19:52:00.806Z root INFO Backend a.configure: 0.1 ms [Finished 0.394 s after backend start]
2024-10-22T19:52:00.806Z root INFO Backend l.configure: 0.0 ms [Finished 0.394 s after backend start]
2024-10-22T19:52:00.807Z root INFO Theia app listening on http://127.0.0.1:54625.
2024-10-22T19:52:00.807Z root INFO Finished starting backend application: 1.9 ms [Finished 0.396 s after backend start]
2024-10-22T19:52:00.813Z root WARN The local plugin referenced by local-dir:/c%3A/Users/adity/.arduinoIDE/plugins does not exist.
2024-10-22T19:52:00.814Z root WARN The local plugin referenced by local-dir:/c%3A/Users/adity/.arduinoIDE/extensions does not exist.
2024-10-22T19:52:00.814Z root WARN The local plugin referenced by local-dir:C:\Users\adity\.arduinoIDE\plugins does not exist.
2024-10-22T19:52:00.824Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]}}
2024-10-22T19:52:00.824Z config INFO Loading fallback CLI configuration to get 'directories.data' and 'directories.user'
2024-10-22T19:52:00.847Z root INFO Resolve plugins list: 41.2 ms [Finished 0.434 s after backend start]
2024-10-22T19:52:00.867Z daemon INFO time="2024-10-23T01:22:00+05:30" level=info msg="arduino-cli version 1.0.4"
2024-10-22T19:52:00.867Z daemon INFO time="2024-10-23T01:22:00+05:30" level=info msg="Using config file: c:\\Users\\adity\\.arduinoIDE\\arduino-cli.yaml"
time="2024-10-23T01:22:00+05:30" level=info msg="Executing `arduino-cli daemon`"
2024-10-22T19:52:00.874Z daemon INFO Daemon is now listening on 127.0.0.1:54626
{"IP":"127.0.0.1","Port":"54626"}
2024-10-22T19:52:00.874Z daemon INFO Daemon is running.
2024-10-22T19:52:00.889Z config INFO Loaded fallback CLI configuration: {"directories":{"user":"C:\\Users\\adity\\OneDrive\\Documents\\Arduino","data":"C:\\Users\\adity\\AppData\\Local\\Arduino15"}}
2024-10-22T19:52:00.889Z config INFO Merged CLI configuration with the fallback: {"directories":{"user":"C:\\Users\\adity\\OneDrive\\Documents\\Arduino","data":"C:\\Users\\adity\\AppData\\Local\\Arduino15"},"board_manager":{"additional_urls":[]}}
2024-10-22T19:52:00.889Z config INFO Loaded the CLI configuration.
2024-10-22T19:52:00.928Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/adity/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/adity/OneDrive/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-10-22T19:52:00.928Z config INFO Validating the CLI configuration...
2024-10-22T19:52:00.930Z daemon INFO time="2024-10-23T01:22:00+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-10-22T19:52:00.930Z config INFO The CLI config is valid.
2024-10-22T19:52:00.930Z config INFO <<< Initialized the CLI configuration.
2024-10-22T19:52:01.403Z root INFO Deploy plugins list: 41.2 ms [Finished 0.991 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-10-22T19:52:02.177Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 112.8 ms [Finished 1.274 s after frontend start]
2024-10-22T19:52:02.178Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-10-22T19:52:21.954Z 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 192.0.2.1: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-10-22T19:52:21.955Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\adity\AppData\Local\Arduino15\package_index.json: open C:\Users\adity\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-10-22T19:52:21.955Z 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-10-22T19:52:21.956Z 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-10-22T19:52:21.956Z 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\adity\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-10-22T19:52:21.965Z 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\adity\AppData\Local\Arduino15\package_index.json: open C:\Users\adity\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\adity\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-10-22T19:52:21.966Z daemon INFO time="2024-10-23T01:22:21+05:30" level=info msg="Loading hardware from: C:\\Users\\adity\\AppData\\Local\\Arduino15\\packages"
time="2024-10-23T01:22:21+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\adity\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-10-23T01:22:21+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\adity\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2024-10-23T01:22:21+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\adity\\OneDrive\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2024-10-22T19:52:21.966Z daemon INFO time="2024-10-23T01:22:21+05:30" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-10-22T19:52:21.970Z daemon INFO time="2024-10-23T01:22:21+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-10-22T19:52:21.972Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-10-22T19:52:21.974Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-10-22T19:52:21.975Z daemon INFO time="2024-10-23T01:22:21+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-10-22T19:52:43.037Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:912720)
    at Object.onReceiveStatus (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:940342)
    at Object.onReceiveStatus (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:933364)
    at C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:1019505
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeServerStreamRequest (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:940109)
    at a.updateIndex (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:1004397)
    at C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:771327
    at C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:771675
    at new Promise (<anonymous>)
    at v.doUpdateIndex (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:771654)
    at v.updatePlatformIndex (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:771299)
    at v.updateIndex (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:770667)
    at v.initInstanceWithFallback (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:768960)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-10-22T19:52:43.043Z daemon INFO time="2024-10-23T01:22:43+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-10-22T19:52:43.063Z 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
2024-10-22T19:52:43.063Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\adity\AppData\Local\Arduino15\package_index.json: open C:\Users\adity\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-10-22T19:52:43.063Z daemon INFO time="2024-10-23T01:22:43+05:30" level=info msg="Loading hardware from: C:\\Users\\adity\\AppData\\Local\\Arduino15\\packages"
2024-10-22T19:52:43.066Z daemon INFO time="2024-10-23T01:22:43+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\adity\\AppData\\Local\\Arduino15\\library_index.json"
2024-10-22T19:52:43.066Z 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-10-22T19:52:43.067Z 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-10-22T19:52:43.067Z 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\adity\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-10-22T19:52:43.067Z daemon INFO time="2024-10-23T01:22:43+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\adity\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2024-10-23T01:22:43+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\adity\\OneDrive\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2024-10-22T19:52:43.070Z 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\adity\AppData\Local\Arduino15\package_index.json: open C:\Users\adity\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\adity\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-10-22T19:52:43.071Z 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\adity\AppData\Local\Arduino15\package_index.json: open C:\Users\adity\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\adity\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:770471
    at v.evaluateErrorStatus (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:770487)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async s.<anonymous> (C:\Program Files\arduino-ide_2.3.3_Windows_64bit\resources\app\lib\backend\main.js:2:770157)
                                                     Reply
Reply : The term 'Reply' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1
+ Reply
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (Reply:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Program Files\arduino-ide_2.3.3_Windows_64bit> Closing channel on service path '/services/electron-window'.
Closing channel on service path '/services/ide-updater'.
Stored workspaces roots:
No sketches were scheduled for deletion.



Anything special about your network setup? Maybe a corporate computer or corporate network? Firewall settings?

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