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

I can't get past the Loading gif at the Launch, I've read other forum posts but haven't been able to get any further, I've changed the download directory to several locations, and tried installing over the .zip file.
I am on Windows 10 Pro 22H2

Arduino IDE 2.2.1
Checking for frontend application configuration customizations. Module path: C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\m.loetzsch\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: 3788
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/m.loetzsch/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-09-21T07:25:03.194Z root INFO Backend Object.initialize: 8.5 ms [Finished 0.929 s after backend start]
2023-09-21T07:25:03.195Z root INFO Backend Object.configure: 6.9 ms [Finished 0.929 s after backend start]
2023-09-21T07:25:03.195Z root INFO Backend a.onStart: 2.8 ms [Finished 0.929 s after backend start]
2023-09-21T07:25:03.196Z root INFO Backend a.configure: 0.6 ms [Finished 0.980 s after backend start]
2023-09-21T07:25:03.198Z root INFO Backend u.onStart: 0.5 ms [Finished 0.980 s after backend start]
2023-09-21T07:25:03.199Z root INFO Backend d.configure: 0.2 ms [Finished 0.980 s after backend start]
2023-09-21T07:25:03.201Z root WARN Backend d.initialize took longer than the expected maximum 50 milliseconds: 50.8 ms [Finished 0.981 s after backend start]
2023-09-21T07:25:03.201Z root INFO Backend c.onStart: 0.6 ms [Finished 0.981 s after backend start]
2023-09-21T07:25:03.202Z root INFO Backend s.configure: 2.0 ms [Finished 0.983 s after backend start]
2023-09-21T07:25:03.205Z config INFO >>> Initializing CLI configuration...
2023-09-21T07:25:03.205Z root INFO Backend c.initialize: 0.8 ms [Finished 0.984 s after backend start]
2023-09-21T07:25:03.205Z root INFO Backend P.onStart: 1.4 ms [Finished 0.985 s after backend start]
2023-09-21T07:25:03.207Z config INFO Loading CLI configuration from c:\Users\m.loetzsch\.arduinoIDE\arduino-cli.yaml...
2023-09-21T07:25:03.208Z daemon INFO Starting daemon from C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2023-09-21T07:25:03.208Z root INFO Backend s.initialize: 0.7 ms [Finished 0.987 s after backend start]
2023-09-21T07:25:03.208Z root INFO Backend w.onStart: 1.8 ms [Finished 0.988 s after backend start]
2023-09-21T07:25:03.208Z root INFO Backend r.configure: 3.5 ms [Finished 0.988 s after backend start]
2023-09-21T07:25:03.209Z discovery-log INFO start
2023-09-21T07:25:03.209Z discovery-log INFO start new deferred
2023-09-21T07:25:03.209Z root INFO Backend d.initialize: 0.7 ms [Finished 0.989 s after backend start]
2023-09-21T07:25:03.209Z root INFO Backend y.onStart: 3.5 ms [Finished 0.992 s after backend start]
2023-09-21T07:25:03.209Z root INFO Backend r.configure: 3.1 ms [Finished 0.993 s after backend start]
2023-09-21T07:25:03.209Z root INFO Backend s.onStart: 0.9 ms [Finished 0.995 s after backend start]
2023-09-21T07:25:03.210Z root INFO Backend h.configure: 0.9 ms [Finished 0.995 s after backend start]
2023-09-21T07:25:03.210Z root INFO Backend a.configure: 0.7 ms [Finished 0.996 s after backend start]
2023-09-21T07:25:03.210Z root INFO Backend s.configure: 0.1 ms [Finished 0.997 s after backend start]
2023-09-21T07:25:03.211Z root INFO Backend l.configure: 0.1 ms [Finished 0.997 s after backend start]
2023-09-21T07:25:03.218Z root INFO Theia app listening on http://localhost:50139.
2023-09-21T07:25:03.220Z root INFO Finished starting backend application: 9.7 ms [Finished 1.005 s after backend start]
2023-09-21T07:25:03.237Z root WARN The local plugin referenced by local-dir:/c%3A/Users/m.loetzsch/.arduinoIDE/plugins does not exist.
2023-09-21T07:25:03.240Z root WARN The local plugin referenced by local-dir:/c%3A/Users/m.loetzsch/.arduinoIDE/extensions does not exist.
2023-09-21T07:25:03.242Z root WARN The local plugin referenced by local-dir:C:\Users\m.loetzsch\.arduinoIDE\plugins does not exist.
2023-09-21T07:25:03.281Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\m.loetzsch\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\m.loetzsch\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\m.loetzsch\\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-09-21T07:25:03.285Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-09-21T07:25:03.286Z config INFO Loaded the CLI configuration.
2023-09-21T07:25:03.289Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/m.loetzsch/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/m.loetzsch/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2023-09-21T07:25:03.291Z config INFO Validating the CLI configuration...
2023-09-21T07:25:03.293Z config INFO The CLI config is valid.
2023-09-21T07:25:03.293Z config INFO <<< Initialized the CLI configuration.
2023-09-21T07:25:03.356Z daemon INFO time="2023-09-21T09:25:03+02:00" level=info msg="Using config file: c:\\Users\\m.loetzsch\\.arduinoIDE\\arduino-cli.yaml"
time="2023-09-21T09:25:03+02:00" level=info msg="arduino-cli.exe version 0.34.0"
time="2023-09-21T09:25:03+02:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:50141
{"IP":"127.0.0.1","Port":"50141"}
2023-09-21T07:25:03.359Z daemon INFO Daemon is running.
2023-09-21T07:25:03.390Z root INFO Resolve plugins list: 183.1 ms [Finished 1.176 s after backend start]
2023-09-21T07:25:03.412Z daemon INFO time="2023-09-21T09:25:03+02:00" level=info msg="Updating libraries index"
2023-09-21T07:25:03.413Z daemon INFO time="2023-09-21T09:25:03+02:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2023-09-21T07:25:05.119Z root INFO Deploy plugins list: 183.1 ms [Finished 2.906 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2023-09-21T07:25:06.120Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 311.5 ms [Finished 2.761 s after frontend start]
2023-09-21T07:25:06.129Z root WARN A command editor.action.toggleStickyScroll is already registered.
2023-09-21T07:25:45.560Z 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 172.64.155.55: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.
2023-09-21T07:25:45.561Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\m.loetzsch\AppData\Local\Arduino15\package_index.json: open C:\Users\m.loetzsch\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2023-09-21T07:25:45.563Z 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
2023-09-21T07:25:45.565Z 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
2023-09-21T07:25:45.565Z 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\m.loetzsch\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2023-09-21T07:25:45.566Z daemon INFO time="2023-09-21T09:25:45+02:00" level=info msg="Loading hardware from: C:\\Users\\m.loetzsch\\AppData\\Local\\Arduino15\\packages"
time="2023-09-21T09:25:45+02:00" level=info msg="Loading libraries index file" index="C:\\Users\\m.loetzsch\\AppData\\Local\\Arduino15\\library_index.json"
time="2023-09-21T09:25:45+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\m.loetzsch\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2023-09-21T09:25:45+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\m.loetzsch\\Documents\\Arduino\\libraries" location=user
2023-09-21T07:25:45.575Z 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\m.loetzsch\AppData\Local\Arduino15\package_index.json: open C:\Users\m.loetzsch\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\m.loetzsch\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2023-09-21T07:25:45.577Z daemon INFO time="2023-09-21T09:25:45+02:00" level=info msg="Updating libraries index"
2023-09-21T07:25:45.582Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2023-09-21T07:25:45.584Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2023-09-21T07:25:45.584Z daemon INFO time="2023-09-21T09:25:45+02:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2023-09-21T09:25:45+02:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2023-09-21T09:25:45+02:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2023-09-21T07:26:27.676Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:726940)
    at Object.onReceiveStatus (C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:754480)
    at Object.onReceiveStatus (C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:747504)
    at C:\Users\m.loetzsch\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\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:754247)
    at a.updateIndex (C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:818456)
    at C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587141
    at C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587489
    at new Promise (<anonymous>)
    at _.doUpdateIndex (C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587468)
    at _.updatePlatformIndex (C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587113)
    at _.updateIndex (C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:586481)
    at _.initInstanceWithFallback (C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:584725)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-09-21T07:26:27.679Z daemon INFO time="2023-09-21T09:26:27+02:00" level=info msg="Updating libraries index"
2023-09-21T07:26:27.682Z daemon INFO time="2023-09-21T09:26:27+02:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
[6024:0921/092702.319:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is disabled, ANGLE is
2023-09-21T07:27:09.772Z 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 172.64.155.55: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.
2023-09-21T07:27:09.773Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\m.loetzsch\AppData\Local\Arduino15\package_index.json: open C:\Users\m.loetzsch\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2023-09-21T07:27:09.775Z 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
2023-09-21T07:27:09.776Z 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
2023-09-21T07:27:09.777Z 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\m.loetzsch\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2023-09-21T07:27:09.777Z daemon INFO time="2023-09-21T09:27:09+02:00" level=info msg="Loading hardware from: C:\\Users\\m.loetzsch\\AppData\\Local\\Arduino15\\packages"
time="2023-09-21T09:27:09+02:00" level=info msg="Loading libraries index file" index="C:\\Users\\m.loetzsch\\AppData\\Local\\Arduino15\\library_index.json"
time="2023-09-21T09:27:09+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\m.loetzsch\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2023-09-21T09:27:09+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\m.loetzsch\\Documents\\Arduino\\libraries" location=user
2023-09-21T07:27:09.784Z 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\m.loetzsch\AppData\Local\Arduino15\package_index.json: open C:\Users\m.loetzsch\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\m.loetzsch\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2023-09-21T07:27:09.784Z 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\m.loetzsch\AppData\Local\Arduino15\package_index.json: open C:\Users\m.loetzsch\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\m.loetzsch\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Users\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:586285
    at _.evaluateErrorStatus (C:\Users\m.loetzsch\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\m.loetzsch\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:585971)

Hi @niko_term. I see the problem here:

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.

I am connected to the internet though, I am replying on the same PC

2 posts were split to a new topic: IDE hangs at downloading index: package_index.tar.bz2

This problem might be caused by your firewall or some other network security system (e.g., proxy or VPN) interfering with Arduino IDE's ability to access the Internet.

Are you aware of anything special about the configuration of the network you connect to the Internet through that might interfere with Arduino IDE's access to the Internet?

A post was split to a new topic: IDE hangs on startup: "Failed to connect to proxy ..."

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