IDE hangs on startup: "No connection established. Last error: read ECONNRESET "

Continuing the discussion from IDE hangs on startup: "discovery teensy:teensy-discovery not found":

I have the same problem with my Mac running Ventura 13.7.4. Lately the IDE has suddenly stopped loading (the logo simply pulses in the centre of the screen) Usually a restart fiixes the problem for a while but this time I cannot get the IDE to run. I have followed the above thread and found my Library/Arduino15/packages but there is no sign of a Teensy. Any ideas for me to try?

Hi @joko1953. I'm going to ask you to provide some additional information that might help us to identify the problem.


:red_exclamation_mark: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Open macOS Launchpad.
  3. Type terminal in the "Search" field.
  4. Click on the "Terminal" icon.
    A "zsh" window will open.
  5. Type the following command in the zsh window:
    "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
    
  6. Press the Enter key.
  7. Wait until you are sure the IDE startup has gone into the hang state
    (as indicated by no additional output being printed to the Terminal window).
  8. Switch back to the Terminal window if the Arduino IDE window took the focus.
  9. Press the Command+A keyboard shortcut.
    This will select all the text in the Terminal window.
  10. Press the Command+C keyboard shortcut.
    This will copy the selected text to the clipboard.
  11. Open a forum reply here by clicking the "Reply" button.
  12. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the output is correctly formatted.
  13. Press the Command+V keyboard shortcut.
    This will paste the output into the code block.
  14. Move the cursor outside of the code block markup before you add any additional text to your reply.
  15. Click the "Reply" button to post the output.

Please let me know if you have any questions or problems while following those instructions.

Last login: Wed Apr 30 07:28:39 on console
john@Johns-iMac ~ % "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
Arduino IDE 2.3.6
Checking for frontend application configuration customizations. Module path: /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js, destination 'package.json': /Applications/Arduino IDE.app/Contents/Resources/app/package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.6" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.2.0" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2025-04-09T11:28:31.989Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{},"showWindowEarly":true,"splashScreenOptions":{},"uriScheme":"arduino-ide"},"defaultLocale":"","validatePreferencesSchema":false,"reloadOnReconnect":true,"uriScheme":"theia","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.6","cliVersion":"1.2.0","buildDate":"2025-04-09T11:28:31.989Z"}
Starting backend process. PID: 18389
Showing main window early
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/john/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2025-04-30T04:06:29.490Z root INFO Backend u.initialize: 24.7 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.490Z root INFO Backend Object.initialize: 23.4 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.491Z root INFO Backend a.initialize: 0.5 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.491Z root INFO Backend a.initialize: 0.3 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.491Z root INFO Backend u.initialize: 0.6 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.493Z root INFO Backend l.initialize: 24.4 ms [Finished 0.532 s after backend start]
2025-04-30T04:06:29.498Z root INFO configured all backend app contributions
2025-04-30T04:06:29.498Z root INFO Backend l.onStart: 1.0 ms [Finished 0.540 s after backend start]
2025-04-30T04:06:29.498Z root INFO Backend d.onStart: 0.1 ms [Finished 0.540 s after backend start]
2025-04-30T04:06:29.499Z root INFO Backend a.onStart: 0.2 ms [Finished 0.540 s after backend start]
2025-04-30T04:06:29.499Z config INFO >>> Initializing CLI configuration...
2025-04-30T04:06:29.499Z root INFO Backend x.onStart: 0.2 ms [Finished 0.540 s after backend start]
2025-04-30T04:06:29.499Z config INFO Loading CLI configuration from /Users/john/.arduinoIDE/arduino-cli.yaml...
2025-04-30T04:06:29.499Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2025-04-30T04:06:29.499Z root INFO Backend w.onStart: 0.3 ms [Finished 0.541 s after backend start]
2025-04-30T04:06:29.499Z discovery-log INFO start
2025-04-30T04:06:29.499Z discovery-log INFO start new deferred
2025-04-30T04:06:29.499Z root INFO Backend v.onStart: 0.2 ms [Finished 0.541 s after backend start]
2025-04-30T04:06:29.499Z root INFO Backend a.onStart: 0.1 ms [Finished 0.541 s after backend start]
2025-04-30T04:06:29.502Z root INFO Theia app listening on http://127.0.0.1:63635.
2025-04-30T04:06:29.502Z root INFO Finished starting backend application: 3.0 ms [Finished 0.544 s after backend start]
Restoring workspace roots: /Users/john/Library/CloudStorage/OneDrive-Personal/JK Onedrive/JKDataOneDrive/Arduino/Sketchbook/searchtimer_pro_micro/Box_leg_timer_withlowvoltageled/Box_leg_timer_withlowvoltageled.ino
2025-04-30T04:06:29.503Z root WARN The local plugin referenced by local-dir:/Users/john/.arduinoIDE/plugins does not exist.
2025-04-30T04:06:29.503Z root WARN The local plugin referenced by local-dir:/Users/john/.arduinoIDE/deployedPlugins does not exist.
2025-04-30T04:06:29.507Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"/Users/john/Library/Arduino15/libraries"},"data":"/Users/john/Library/Arduino15","downloads":"/Users/john/Library/Arduino15/staging","user":"/Users/john/Library/CloudStorage/OneDrive-Personal/JK Onedrive/JKDataOneDrive/Arduino"},"library":{"enable_unsafe_install":false},"locale":"en","logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2025-04-30T04:06:29.508Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2025-04-30T04:06:29.508Z config INFO Loaded the CLI configuration.
isTempSketch: false. Input was /Users/john/Library/CloudStorage/OneDrive-Personal/JK Onedrive/JKDataOneDrive/Arduino/Sketchbook/searchtimer_pro_micro/Box_leg_timer_withlowvoltageled/Box_leg_timer_withlowvoltageled.ino
2025-04-30T04:06:29.517Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/john/Library/Arduino15","sketchDirUri":"file:///Users/john/Library/CloudStorage/OneDrive-Personal/JK%20Onedrive/JKDataOneDrive/Arduino","additionalUrls":["https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json"],"network":"none","locale":"en"}
2025-04-30T04:06:29.517Z config INFO Validating the CLI configuration...
2025-04-30T04:06:29.541Z daemon INFO time="2025-04-30T16:06:29+12:00" level=info msg="arduino-cli version 1.2.0"
2025-04-30T04:06:29.542Z daemon INFO time="2025-04-30T16:06:29+12:00" level=info msg="Using config file: /Users/john/.arduinoIDE/arduino-cli.yaml"
time="2025-04-30T16:06:29+12:00" level=info msg="Executing `arduino-cli daemon`"
2025-04-30T04:06:29.548Z daemon INFO Daemon is now listening on 127.0.0.1:63636
{"IP":"127.0.0.1","Port":"63636"}
2025-04-30T04:06:29.548Z daemon INFO Daemon is running.
2025-04-30T04:06:29.563Z root INFO Resolve plugins list: 62.6 ms [Finished 0.605 s after backend start]
2025-04-30T04:06:29.571Z config INFO The CLI config is valid.
2025-04-30T04:06:29.571Z config INFO <<< Initialized the CLI configuration.
2025-04-30T04:06:29.834Z root ERROR Uncaught Exception:  Error: 14 UNAVAILABLE: No connection established. Last error: read ECONNRESET (2025-04-30T04:06:29.833Z)
2025-04-30T04:06:29.834Z root ERROR Error: 14 UNAVAILABLE: No connection established. Last error: read ECONNRESET (2025-04-30T04:06:29.833Z)
    at t.callErrorFromStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:987037)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:3783461)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:2216519)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:2215964)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:4354680
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at s.makeUnaryRequest (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:3782992)
    at s.create (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:3311624)
    at instance (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:102990)
    at new Promise (<anonymous>)
    at y.createClient (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:102967)
    at y.create (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:101875)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:100771
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:6419737
    at s.invoke (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:6419827)
    at a.fire (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:6421630)
2025-04-30T04:06:29.917Z root INFO Deploy plugins list: 417.0 ms [Finished 0.959 s after backend start]


Last login: Wed Apr 30 07:28:39 on console
john@Johns-iMac ~ % "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
Arduino IDE 2.3.6
Checking for frontend application configuration customizations. Module path: /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js, destination 'package.json': /Applications/Arduino IDE.app/Contents/Resources/app/package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.6" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.2.0" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2025-04-09T11:28:31.989Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{},"showWindowEarly":true,"splashScreenOptions":{},"uriScheme":"arduino-ide"},"defaultLocale":"","validatePreferencesSchema":false,"reloadOnReconnect":true,"uriScheme":"theia","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.6","cliVersion":"1.2.0","buildDate":"2025-04-09T11:28:31.989Z"}
Starting backend process. PID: 18389
Showing main window early
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/john/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2025-04-30T04:06:29.490Z root INFO Backend u.initialize: 24.7 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.490Z root INFO Backend Object.initialize: 23.4 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.491Z root INFO Backend a.initialize: 0.5 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.491Z root INFO Backend a.initialize: 0.3 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.491Z root INFO Backend u.initialize: 0.6 ms [Finished 0.531 s after backend start]
2025-04-30T04:06:29.493Z root INFO Backend l.initialize: 24.4 ms [Finished 0.532 s after backend start]
2025-04-30T04:06:29.498Z root INFO configured all backend app contributions
2025-04-30T04:06:29.498Z root INFO Backend l.onStart: 1.0 ms [Finished 0.540 s after backend start]
2025-04-30T04:06:29.498Z root INFO Backend d.onStart: 0.1 ms [Finished 0.540 s after backend start]
2025-04-30T04:06:29.499Z root INFO Backend a.onStart: 0.2 ms [Finished 0.540 s after backend start]
2025-04-30T04:06:29.499Z config INFO >>> Initializing CLI configuration...
2025-04-30T04:06:29.499Z root INFO Backend x.onStart: 0.2 ms [Finished 0.540 s after backend start]
2025-04-30T04:06:29.499Z config INFO Loading CLI configuration from /Users/john/.arduinoIDE/arduino-cli.yaml...
2025-04-30T04:06:29.499Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2025-04-30T04:06:29.499Z root INFO Backend w.onStart: 0.3 ms [Finished 0.541 s after backend start]
2025-04-30T04:06:29.499Z discovery-log INFO start
2025-04-30T04:06:29.499Z discovery-log INFO start new deferred
2025-04-30T04:06:29.499Z root INFO Backend v.onStart: 0.2 ms [Finished 0.541 s after backend start]
2025-04-30T04:06:29.499Z root INFO Backend a.onStart: 0.1 ms [Finished 0.541 s after backend start]
2025-04-30T04:06:29.502Z root INFO Theia app listening on http://127.0.0.1:63635.
2025-04-30T04:06:29.502Z root INFO Finished starting backend application: 3.0 ms [Finished 0.544 s after backend start]
Restoring workspace roots: /Users/john/Library/CloudStorage/OneDrive-Personal/JK Onedrive/JKDataOneDrive/Arduino/Sketchbook/searchtimer_pro_micro/Box_leg_timer_withlowvoltageled/Box_leg_timer_withlowvoltageled.ino
2025-04-30T04:06:29.503Z root WARN The local plugin referenced by local-dir:/Users/john/.arduinoIDE/plugins does not exist.
2025-04-30T04:06:29.503Z root WARN The local plugin referenced by local-dir:/Users/john/.arduinoIDE/deployedPlugins does not exist.
2025-04-30T04:06:29.507Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"/Users/john/Library/Arduino15/libraries"},"data":"/Users/john/Library/Arduino15","downloads":"/Users/john/Library/Arduino15/staging","user":"/Users/john/Library/CloudStorage/OneDrive-Personal/JK Onedrive/JKDataOneDrive/Arduino"},"library":{"enable_unsafe_install":false},"locale":"en","logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2025-04-30T04:06:29.508Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2025-04-30T04:06:29.508Z config INFO Loaded the CLI configuration.
isTempSketch: false. Input was /Users/john/Library/CloudStorage/OneDrive-Personal/JK Onedrive/JKDataOneDrive/Arduino/Sketchbook/searchtimer_pro_micro/Box_leg_timer_withlowvoltageled/Box_leg_timer_withlowvoltageled.ino
2025-04-30T04:06:29.517Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/john/Library/Arduino15","sketchDirUri":"file:///Users/john/Library/CloudStorage/OneDrive-Personal/JK%20Onedrive/JKDataOneDrive/Arduino","additionalUrls":["https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json"],"network":"none","locale":"en"}
2025-04-30T04:06:29.517Z config INFO Validating the CLI configuration...
2025-04-30T04:06:29.541Z daemon INFO time="2025-04-30T16:06:29+12:00" level=info msg="arduino-cli version 1.2.0"
2025-04-30T04:06:29.542Z daemon INFO time="2025-04-30T16:06:29+12:00" level=info msg="Using config file: /Users/john/.arduinoIDE/arduino-cli.yaml"
time="2025-04-30T16:06:29+12:00" level=info msg="Executing `arduino-cli daemon`"
2025-04-30T04:06:29.548Z daemon INFO Daemon is now listening on 127.0.0.1:63636
{"IP":"127.0.0.1","Port":"63636"}
2025-04-30T04:06:29.548Z daemon INFO Daemon is running.
2025-04-30T04:06:29.563Z root INFO Resolve plugins list: 62.6 ms [Finished 0.605 s after backend start]
2025-04-30T04:06:29.571Z config INFO The CLI config is valid.
2025-04-30T04:06:29.571Z config INFO <<< Initialized the CLI configuration.
2025-04-30T04:06:29.834Z root ERROR Uncaught Exception:  Error: 14 UNAVAILABLE: No connection established. Last error: read ECONNRESET (2025-04-30T04:06:29.833Z)
2025-04-30T04:06:29.834Z root ERROR Error: 14 UNAVAILABLE: No connection established. Last error: read ECONNRESET (2025-04-30T04:06:29.833Z)
    at t.callErrorFromStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:987037)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:3783461)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:2216519)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:2215964)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:4354680
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at s.makeUnaryRequest (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:3782992)
    at s.create (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:3311624)
    at instance (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:102990)
    at new Promise (<anonymous>)
    at y.createClient (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:102967)
    at y.create (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:101875)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:100771
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:6419737
    at s.invoke (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:6419827)
    at a.fire (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:6421630)
2025-04-30T04:06:29.917Z root INFO Deploy plugins list: 417.0 ms [Finished 0.959 s after backend start]
isTempSketch: false. Input was /Users/john/Library/CloudStorage/OneDrive-Personal/JK Onedrive/JKDataOneDrive/Arduino/Sketchbook/searchtimer_pro_micro/Box_leg_timer_withlowvoltageled/Box_leg_timer_withlowvoltageled.ino
Marking workspace as a closed sketch. Workspace URI: file:///Users/john/Library/CloudStorage/OneDrive-Personal/JK%20Onedrive/JKDataOneDrive/Arduino/Sketchbook/searchtimer_pro_micro/Box_leg_timer_withlowvoltageled/Box_leg_timer_withlowvoltageled.ino. Date: 1745986106336.
Storing the sketch as a workspace root: </Users/john/Library/CloudStorage/OneDrive-Personal/JK Onedrive/JKDataOneDrive/Arduino/Sketchbook/searchtimer_pro_micro/Box_leg_timer_withlowvoltageled/Box_leg_timer_withlowvoltageled.ino>.
Stored workspaces roots: /Users/john/Library/CloudStorage/OneDrive-Personal/JK Onedrive/JKDataOneDrive/Arduino/Sketchbook/searchtimer_pro_micro/Box_leg_timer_withlowvoltageled/Box_leg_timer_withlowvoltageled.ino
No sketches were scheduled for deletion.
john@Johns-iMac ~ % 

Not sure if this was the reason but I deleted ESET as I was no longer using it - IDE loading again so problem solved for now......

Same problem in this topic: IDE hangs on startup: "14 UNAVAILABLE: read ECONNRESET" - #4 by RonaldG.