IDE hangs on startup: "wsarecv: An existing connection was forcibly closed by the remote host"

Hi merkelck,
I have a similar problem with the IDE. I went through my PC and flushed any reference to Arduino. Then did a clean install, still the same start up pulsing problem. I added my Powershell output below:

I appreciate your help.

PS C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE>
Arduino IDE 2.3.4
Checking for frontend application configuration customizations. Module path: C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.4" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.1.1" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-12-03T10:03:03.490Z" (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.4","cliVersion":"1.1.1","buildDate":"2024-12-03T10:03:03.490Z"}
Starting backend process. PID: 30224
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/pierre.hinse/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2025-03-06T20:56:35.864Z root INFO Backend Object.initialize: 2.6 ms [Finished 0.401 s after backend start]
2025-03-06T20:56:35.866Z root INFO Backend Object.configure: 2.1 ms [Finished 0.401 s after backend start]
2025-03-06T20:56:35.866Z root INFO Backend s.onStart: 1.1 ms [Finished 0.401 s after backend start]
2025-03-06T20:56:35.866Z root INFO Backend s.configure: 0.2 ms [Finished 0.416 s after backend start]
2025-03-06T20:56:35.867Z root INFO Backend d.onStart: 0.1 ms [Finished 0.416 s after backend start]
2025-03-06T20:56:35.867Z root INFO Backend d.configure: 0.1 ms [Finished 0.417 s after backend start]
2025-03-06T20:56:35.868Z root INFO Backend d.initialize: 15.4 ms [Finished 0.417 s after backend start]
2025-03-06T20:56:35.868Z root INFO Backend c.onStart: 0.2 ms [Finished 0.417 s after backend start]
2025-03-06T20:56:35.868Z root INFO Backend a.configure: 1.8 ms [Finished 0.419 s after backend start]
2025-03-06T20:56:35.869Z config INFO >>> Initializing CLI configuration...
2025-03-06T20:56:35.869Z root INFO Backend c.initialize: 0.3 ms [Finished 0.419 s after backend start]
2025-03-06T20:56:35.869Z root INFO Backend x.onStart: 0.5 ms [Finished 0.419 s after backend start]
2025-03-06T20:56:35.870Z config INFO Loading CLI configuration from c:\Users\pierre.hinse\.arduinoIDE\arduino-cli.yaml...
2025-03-06T20:56:35.870Z daemon INFO Starting daemon from C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2025-03-06T20:56:35.870Z root INFO Backend a.initialize: 0.3 ms [Finished 0.420 s after backend start]
2025-03-06T20:56:35.870Z root INFO Backend w.onStart: 0.9 ms [Finished 0.420 s after backend start]
2025-03-06T20:56:35.870Z root INFO Backend r.configure: 1.3 ms [Finished 0.420 s after backend start]
2025-03-06T20:56:35.870Z discovery-log INFO start
2025-03-06T20:56:35.870Z discovery-log INFO start new deferred
2025-03-06T20:56:35.870Z root INFO Backend d.initialize: 0.3 ms [Finished 0.421 s after backend start]
2025-03-06T20:56:35.870Z root INFO Backend y.onStart: 1.2 ms [Finished 0.422 s after backend start]
2025-03-06T20:56:35.870Z root INFO Backend r.configure: 1.1 ms [Finished 0.422 s after backend start]
2025-03-06T20:56:35.870Z root INFO Backend a.onStart: 0.3 ms [Finished 0.423 s after backend start]
2025-03-06T20:56:35.870Z root INFO Backend h.configure: 0.2 ms [Finished 0.423 s after backend start]
2025-03-06T20:56:35.870Z root INFO Backend s.configure: 0.1 ms [Finished 0.423 s after backend start]
2025-03-06T20:56:35.870Z root INFO Backend l.configure: 0.0 ms [Finished 0.423 s after backend start]
2025-03-06T20:56:35.872Z root INFO Theia app listening on http://127.0.0.1:60126.
2025-03-06T20:56:35.872Z root INFO Finished starting backend application: 2.2 ms [Finished 0.425 s after backend start]
2025-03-06T20:56:35.936Z root WARN The local plugin referenced by local-dir:/c%3A/Users/pierre.hinse/.arduinoIDE/plugins does not exist.
2025-03-06T20:56:35.936Z root WARN The local plugin referenced by local-dir:/c%3A/Users/pierre.hinse/.arduinoIDE/extensions does not exist.
2025-03-06T20:56:35.936Z root WARN The local plugin referenced by local-dir:C:\Users\pierre.hinse\.arduinoIDE\plugins does not exist.
2025-03-06T20:56:36.051Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]}}
2025-03-06T20:56:36.051Z config INFO Loading fallback CLI configuration to get 'directories.data' and 'directories.user'2025-03-06T20:56:36.058Z daemon INFO time="2025-03-06T15:56:35-05:00" level=info msg="arduino-cli version 1.1.1"
time="2025-03-06T15:56:35-05:00" level=info msg="Using config file: c:\\Users\\pierre.hinse\\.arduinoIDE\\arduino-cli.yaml"
time="2025-03-06T15:56:35-05:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:60128
{"IP":"127.0.0.1","Port":"60128"}
2025-03-06T20:56:36.058Z daemon INFO Daemon is running.
2025-03-06T20:56:36.076Z daemon INFO time="2025-03-06T15:56:36-05:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2025-03-06T20:56:36.092Z root INFO Resolve plugins list: 222.2 ms [Finished 0.644 s after backend start]
2025-03-06T20:56:36.130Z config INFO Loaded fallback CLI configuration: {"directories":{"user":"C:\\Users\\pierre.hinse\\OneDrive - PLASTIC OMNIUM\\Documents\\Arduino","data":"C:\\Users\\pierre.hinse\\AppData\\Local\\Arduino15"}}
2025-03-06T20:56:36.130Z config INFO Merged CLI configuration with the fallback: {"directories":{"user":"C:\\Users\\pierre.hinse\\OneDrive - PLASTIC OMNIUM\\Documents\\Arduino","data":"C:\\Users\\pierre.hinse\\AppData\\Local\\Arduino15"},"board_manager":{"additional_urls":[]}}
2025-03-06T20:56:36.130Z config INFO Loaded the CLI configuration.
2025-03-06T20:56:36.154Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/pierre.hinse/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/pierre.hinse/OneDrive%20-%20PLASTIC%20OMNIUM/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2025-03-06T20:56:36.154Z config INFO Validating the CLI configuration...
2025-03-06T20:56:36.156Z config INFO The CLI config is valid.
2025-03-06T20:56:36.156Z config INFO <<< Initialized the CLI configuration.
2025-03-06T20:56:36.340Z 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": read tcp 10.176.4.13:60131->104.18.10.21:443: wsarecv: An existing connection was forcibly closed by the remote host.
2025-03-06T20:56:36.340Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\pierre.hinse\AppData\Local\Arduino15\package_index.json: open C:\Users\pierre.hinse\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2025-03-06T20:56:36.340Z 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
2025-03-06T20:56:36.340Z 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
2025-03-06T20:56:36.340Z daemon INFO time="2025-03-06T15:56:36-05:00" level=info msg="Loading hardware from: C:\\Users\\pierre.hinse\\AppData\\Local\\Arduino15\\packages"
time="2025-03-06T15:56:36-05:00" level=info msg="Loading libraries index file" index="C:\\Users\\pierre.hinse\\AppData\\Local\\Arduino15\\library_index.json"
time="2025-03-06T15:56:36-05:00" level=info msg="Adding libraries dir" dir="C:\\Users\\pierre.hinse\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2025-03-06T15:56:36-05:00" level=info msg="Adding libraries dir" dir="C:\\Users\\pierre.hinse\\OneDrive - PLASTIC OMNIUM\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2025-03-06T20:56:36.340Z 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\pierre.hinse\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-03-06T20:56:36.771Z root INFO Deploy plugins list: 222.2 ms [Finished 1.323 s after backend start]
2025-03-06T20:56:36.923Z 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\pierre.hinse\AppData\Local\Arduino15\package_index.json: open C:\Users\pierre.hinse\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\pierre.hinse\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2025-03-06T20:56:36.924Z daemon INFO time="2025-03-06T15:56:36-05:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2025-03-06T20:56:36.925Z daemon INFO time="2025-03-06T15:56:36-05:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2025-03-06T20:56:36.926Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2025-03-06T20:56:36.926Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2025-03-06T20:56:36.926Z daemon INFO time="2025-03-06T15:56:36-05:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
Opening channel for service path '/services/electron-window'.
2025-03-06T20:56:37.026Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": read tcp 10.176.4.13:60137->104.18.10.21:443: wsarecv: An existing connection was forcibly closed by the remote host.
    at t.callErrorFromStatus (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:921712)
    at Object.onReceiveStatus (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:949334)
    at Object.onReceiveStatus (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:942356)
    at C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1028497
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at s.makeServerStreamRequest (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:949101)
    at s.updateLibrariesIndex (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1013389)
    at C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:778557
    at C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:778750
    at new Promise (<anonymous>)
    at v.doUpdateIndex (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:778729)
    at v.updateLibraryIndex (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:778529)
    at v.updateIndex (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:777803)
    at v.initInstanceWithFallback (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:776035)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-03-06T20:56:37.028Z daemon INFO time="2025-03-06T15:56:37-05:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
Opening channel for service path '/services/ide-updater'.
2025-03-06T20:56:37.127Z 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": read tcp 10.176.4.13:60139->104.18.10.21:443: wsarecv: An existing connection was forcibly closed by the remote host.
2025-03-06T20:56:37.127Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\pierre.hinse\AppData\Local\Arduino15\package_index.json: open C:\Users\pierre.hinse\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2025-03-06T20:56:37.128Z daemon INFO time="2025-03-06T15:56:37-05:00" level=info msg="Loading hardware from: C:\\Users\\pierre.hinse\\AppData\\Local\\Arduino15\\packages"
2025-03-06T20:56:37.128Z daemon INFO time="2025-03-06T15:56:37-05:00" level=info msg="Loading libraries index file" index="C:\\Users\\pierre.hinse\\AppData\\Local\\Arduino15\\library_index.json"
2025-03-06T20:56:37.128Z 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
2025-03-06T20:56:37.128Z 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
2025-03-06T20:56:37.128Z daemon INFO time="2025-03-06T15:56:37-05:00" level=info msg="Adding libraries dir" dir="C:\\Users\\pierre.hinse\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
2025-03-06T20:56:37.128Z 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\pierre.hinse\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-03-06T20:56:37.129Z daemon INFO time="2025-03-06T15:56:37-05:00" level=info msg="Adding libraries dir" dir="C:\\Users\\pierre.hinse\\OneDrive - PLASTIC OMNIUM\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2025-03-06T20:56:37.205Z root WARN A command editor.action.toggleStickyScroll is already registered.
2025-03-06T20:56:37.602Z 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\pierre.hinse\AppData\Local\Arduino15\package_index.json: open C:\Users\pierre.hinse\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\pierre.hinse\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2025-03-06T20:56:37.602Z 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\pierre.hinse\AppData\Local\Arduino15\package_index.json: open C:\Users\pierre.hinse\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\pierre.hinse\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:777546
    at v.evaluateErrorStatus (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:777562)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async a.<anonymous> (C:\Users\pierre.hinse\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:777232)

Question split to its own topic.

Anything special about your networking environment (e.g. corporate/school network)?

Yes, that's a good question. It is a work network, but if I try to open the URL with a browser it will open normally and download.
Is there a way to download, place it on a local drive and get IDE to look there?

If you need the IDE for business, talk to the IT department.

Do you have access to another PC (e.g. at home) with the same operating system (only relevant is 32/64 bit)?
If so, you can install the IDE there, run it and install the needed board packages and next copy the installed board packages to the problematic PC; I can provide more detailed instructions if needed,
Note that you will have similar problems for libraries; you will have to download them from the web (as zip) and next install.

1 Like

A post was split to a new topic: IDE hangs on startup: "Unable to get Documents Folder"