IDE hangs on startup: "connectex: A connection attempt failed ..."

Hello.

Following the installation, the IDE (v2.3.2) does not start. I have gotten to the point of extracting the debug output from the PowerShell window as Arduino IDE starts, which I have attached here - Drive Link.

Could anyone help me understand wherein lies the problem?

Couple of other things that I have tried, without any success on the IDE launch:

  • Running it in the administrator mode
  • Restoring default of Documents Properties in the Windows File Explorer

Being a new user, I have not been able to upload a text document in this post, including the output from the Power Shell Window. It would be of massive help if anyone could take a look at the document on the drive. Apologies for my ignorance if this has already been addressed on the platform.

Thanks in advance.


MODERATOR EDIT: add logs to post:

PS C:\Users\DELL\.arduinoIDE\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\DELL\.arduinoIDE\Arduino IDE>
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\DELL\.arduinoIDE\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: 2428
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/DELL/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-09-18T06:42:10.688Z root INFO Backend Object.initialize: 3.5 ms [Finished 0.453 s after backend start]
2024-09-18T06:42:10.688Z root INFO Backend Object.configure: 2.8 ms [Finished 0.453 s after backend start]
2024-09-18T06:42:10.688Z root INFO Backend s.onStart: 1.4 ms [Finished 0.453 s after backend start]
2024-09-18T06:42:10.689Z root INFO Backend s.configure: 0.3 ms [Finished 0.474 s after backend start]
2024-09-18T06:42:10.689Z root INFO Backend d.onStart: 0.2 ms [Finished 0.474 s after backend start]
2024-09-18T06:42:10.690Z root INFO Backend d.configure: 0.1 ms [Finished 0.474 s after backend start]
2024-09-18T06:42:10.690Z root INFO Backend d.initialize: 20.7 ms [Finished 0.474 s after backend start]
2024-09-18T06:42:10.690Z root INFO Backend c.onStart: 0.2 ms [Finished 0.474 s after backend start]
2024-09-18T06:42:10.691Z root INFO Backend a.configure: 0.9 ms [Finished 0.475 s after backend start]
2024-09-18T06:42:10.692Z config INFO >>> Initializing CLI configuration...
2024-09-18T06:42:10.692Z root INFO Backend c.initialize: 0.4 ms [Finished 0.476 s after backend start]
2024-09-18T06:42:10.692Z root INFO Backend R.onStart: 0.6 ms [Finished 0.476 s after backend start]
2024-09-18T06:42:10.693Z config INFO Loading CLI configuration from c:\Users\DELL\.arduinoIDE\arduino-cli.yaml...
2024-09-18T06:42:10.693Z daemon INFO Starting daemon from C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-09-18T06:42:10.693Z root INFO Backend a.initialize: 0.3 ms [Finished 0.477 s after backend start]
2024-09-18T06:42:10.693Z root INFO Backend w.onStart: 0.8 ms [Finished 0.477 s after backend start]
2024-09-18T06:42:10.693Z root INFO Backend r.configure: 1.3 ms [Finished 0.477 s after backend start]
2024-09-18T06:42:10.693Z discovery-log INFO start
2024-09-18T06:42:10.693Z discovery-log INFO start new deferred
2024-09-18T06:42:10.693Z root INFO Backend d.initialize: 0.3 ms [Finished 0.478 s after backend start]
2024-09-18T06:42:10.693Z root INFO Backend y.onStart: 1.5 ms [Finished 0.479 s after backend start]
2024-09-18T06:42:10.693Z root INFO Backend r.configure: 1.3 ms [Finished 0.479 s after backend start]
2024-09-18T06:42:10.693Z root INFO Backend a.onStart: 0.3 ms [Finished 0.480 s after backend start]
2024-09-18T06:42:10.693Z root INFO Backend h.configure: 0.3 ms [Finished 0.480 s after backend start]
2024-09-18T06:42:10.693Z root INFO Backend s.configure: 0.1 ms [Finished 0.480 s after backend start]
2024-09-18T06:42:10.693Z root INFO Backend l.configure: 0.0 ms [Finished 0.480 s after backend start]
2024-09-18T06:42:10.695Z root INFO Theia app listening on http://127.0.0.1:60570.
2024-09-18T06:42:10.695Z root INFO Finished starting backend application: 2.2 ms [Finished 0.482 s after backend start]
2024-09-18T06:42:10.700Z root WARN The local plugin referenced by local-dir:/c%3A/Users/DELL/.arduinoIDE/plugins does not exist.
2024-09-18T06:42:10.701Z root WARN The local plugin referenced by local-dir:/c%3A/Users/DELL/.arduinoIDE/extensions does not exist.
2024-09-18T06:42:10.701Z root WARN The local plugin referenced by local-dir:C:\Users\DELL\.arduinoIDE\plugins does not exist.
2024-09-18T06:42:10.710Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\DELL\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\DELL\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\DELL\\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-09-18T06:42:10.710Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-09-18T06:42:10.710Z config INFO Loaded the CLI configuration.
2024-09-18T06:42:10.713Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/DELL/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/DELL/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-09-18T06:42:10.713Z config INFO Validating the CLI configuration...
2024-09-18T06:42:10.713Z config INFO The CLI config is valid.
2024-09-18T06:42:10.713Z config INFO <<< Initialized the CLI configuration.
2024-09-18T06:42:10.728Z root INFO Resolve plugins list: 35.6 ms [Finished 0.515 s after backend start]
2024-09-18T06:42:10.748Z daemon INFO time="2024-09-18T12:12:10+05:30" level=info msg="Using config file: c:\\Users\\DELL\\.arduinoIDE\\arduino-cli.yaml"
time="2024-09-18T12:12:10+05:30" level=info msg="arduino-cli.exe version 0.35.3"
time="2024-09-18T12:12:10+05:30" level=info msg="Executing `arduino-cli daemon`"
2024-09-18T06:42:10.752Z daemon INFO Daemon is now listening on 127.0.0.1:60572
{"IP":"127.0.0.1","Port":"60572"}
2024-09-18T06:42:10.752Z daemon INFO Daemon is running.
2024-09-18T06:42:10.820Z daemon INFO time="2024-09-18T12:12:10+05:30" level=info msg="Updating libraries index"
time="2024-09-18T12:12:10+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-09-18T06:42:11.435Z root INFO Deploy plugins list: 35.6 ms [Finished 1.221 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-09-18T06:42:12.234Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 103.5 ms [Finished 1.459 s after frontend start]
2024-09-18T06:42:12.235Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-09-18T06:42:52.878Z 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-09-18T06:42:52.879Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\DELL\AppData\Local\Arduino15\package_index.json: open C:\Users\DELL\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-09-18T06:42:52.879Z 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-09-18T06:42:52.879Z 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-09-18T06:42:52.879Z 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\DELL\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-09-18T06:42:52.883Z 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\DELL\AppData\Local\Arduino15\package_index.json: open C:\Users\DELL\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\DELL\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-09-18T06:42:52.883Z daemon INFO time="2024-09-18T12:12:52+05:30" level=info msg="Loading hardware from: C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages"
time="2024-09-18T12:12:52+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-09-18T12:12:52+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-09-18T12:12:52+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\DELL\\Documents\\Arduino\\libraries" location=user
2024-09-18T06:42:52.883Z daemon INFO time="2024-09-18T12:12:52+05:30" level=info msg="Updating libraries index"
time="2024-09-18T12:12:52+05:30" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-09-18T06:42:52.884Z daemon INFO time="2024-09-18T12:12:52+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-09-18T06:42:52.885Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-09-18T06:42:52.886Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-09-18T06:42:52.886Z daemon INFO time="2024-09-18T12:12:52+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-09-18T06:43:34.995Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
	at t.callErrorFromStatus (C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:763461)
	at Object.onReceiveStatus (C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:791078)
	at Object.onReceiveStatus (C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:784102)
	at C:\Users\DELL\.arduinoIDE\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\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:790845)
	at s.updateIndex (C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:855121)
	at C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:623733
	at C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:624081
	at new Promise (<anonymous>)
	at E.doUpdateIndex (C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:624060)
	at E.updatePlatformIndex (C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:623705)
	at E.updateIndex (C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:623073)
	at E.initInstanceWithFallback (C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:621317)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-09-18T06:43:34.996Z daemon INFO time="2024-09-18T12:13:34+05:30" level=info msg="Updating libraries index"
2024-09-18T06:43:34.997Z daemon INFO time="2024-09-18T12:13:34+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-09-18T06:44:17.206Z 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-09-18T06:44:17.207Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\DELL\AppData\Local\Arduino15\package_index.json: open C:\Users\DELL\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-09-18T06:44:17.208Z daemon INFO time="2024-09-18T12:14:17+05:30" level=info msg="Loading hardware from: C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages"
time="2024-09-18T12:14:17+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\library_index.json"
2024-09-18T06:44:17.208Z 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-09-18T06:44:17.209Z 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-09-18T06:44:17.209Z 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\DELL\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-09-18T06:44:17.209Z daemon INFO time="2024-09-18T12:14:17+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-09-18T12:14:17+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\DELL\\Documents\\Arduino\\libraries" location=user
2024-09-18T06:44:17.211Z 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\DELL\AppData\Local\Arduino15\package_index.json: open C:\Users\DELL\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\DELL\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-09-18T06:44:17.211Z 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\DELL\AppData\Local\Arduino15\package_index.json: open C:\Users\DELL\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\DELL\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

	at C:\Users\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:622877
	at E.evaluateErrorStatus (C:\Users\DELL\.arduinoIDE\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\DELL\.arduinoIDE\Arduino IDE\resources\app\lib\backend\main.js:2:622563)

Welcome to the forum

To post images etc. you need trust level 1, you can get there by:

  • Entering at least 5 topics
  • Reading at least 30 posts
  • Spend a total of 10 minutes reading posts

Users at trust level 1 can...

  • Use all core Discourse functions; all new user restrictions are removed
  • Send PMs
  • Upload images and attachments

You can just post it in your post instead of attaching it (it's only 17k). But use code tags to make it easier to read and copy.

```text
log here
```

will result in

log here

Note
I used ```text because it's not code; for code it would be ``` or ```cpp

2024-09-18T06:42:52.878Z 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.

The error seems to indicate a problem with internet access by the IDE.

Any chance that you're using a corporate computer or in a corporate environment?

Any chance that you have set firewall rules if this is your own PC.

The IDE needs to install some additional stuff from the internet. It will block any progress till it has been able to do it once. After that internet access is no longer needed (although it makes life a lot easier).

Thank you for your response and for the guidance on the forum.

Yes, I am using a company [institutional] computer. There is a possibility of a firewall in place. Is there any way to ascertain that through the system?

I don't know. Ask your IT department and ask if it can be unblocked; if you need Arduino for work you have a case.

Okay, thank you.

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