IDE hangs on startup: "Error: 14 UNAVAILABLE: No connection established"

I have had the previous RC working fine, but have just updated to the latest version, shortly before going away for a few weeks.
File dates show 14/09/22

Upon return I try to start the IDE and get as far as the splash screen with the pulsing Arduino logo, then nothing happens.

I have tried uninstalling then reinstalling again but it still acts the same.

I also tried closing the IDE 2.0.0 down then opening a file, with the same result

Hi @latedev. I'm sorry the IDE is not starting up. Please tell me which operating system (e.g., "Windows", "Linux"), you are using so that I can provide you with the appropriate instructions for the next step in the investigation.

Hi Windows 10 Home

I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. Start Windows "File Explorer".
  2. Open the Arduino IDE installation folder.
    (usually C:\Program Files\Arduino IDE or C:\Users\<user name>\AppData\Local\Programs\Arduino IDE).
  3. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  4. From the context menu, click "Open PowerShell window here".
    PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  5. Type the following command:
    & ".\Arduino IDE"
    
  6. Press the Enter key.
    Debug output should now be printed to the PowerShell window as the Arduino IDE starts (or fails to start).
  7. Wait for the Arduino IDE to finish starting, or failing to start.
  8. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  9. Right click on the title bar of the PowerShell window.
    This will open a context menu.
  10. Select Edit > Select All from the context menu.
    This will select all the text in the PowerShell window.
  11. Press Ctrl+C.
    This will copy the contents of the PowerShell window to the clipboard.
  12. Open a forum reply here by clicking the Reply button.
  13. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  14. Press Ctrl+V.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the Reply button to post the output.

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

PS E:\Arduino IDE> & ".\Arduino IDE"

PS E:\Arduino IDE> [7796:1011/170123.480:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///c%3A/Users/MJW/.theia'
root INFO Backend Object.initialize: 3.8 ms [Finished 1.017 s after backend start]
root INFO Backend Object.configure: 2.9 ms [Finished 1.017 s after backend start]
root INFO Backend MessagingContribution.onStart: 1.3 ms [Finished 1.017 s after backend start]
root INFO Backend OSBackendApplicationContribution.configure: 0.3 ms [Finished 1.057 s after backend start]
root INFO Backend DefaultWorkspaceServer.onStart: 0.3 ms [Finished 1.057 s after backend start]
root INFO Backend LocalizationBackendContribution.configure: 0.2 ms [Finished 1.057 s after backend start]
root INFO Backend LocalizationBackendContribution.initialize: 40.1 ms [Finished 1.057 s after backend start]
root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 1.057 s after backend start]
root INFO Backend ElectronTokenBackendContribution.configure: 1.6 ms [Finished 1.059 s after backend start]
root INFO Backend PluginDeployerContribution.initialize: 0.4 ms [Finished 1.059 s after backend start]
root INFO Backend ConfigServiceImpl.onStart: 0.8 ms [Finished 1.060 s after backend start]
root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.3 ms [Finished 1.061 s after backend start]
root INFO Backend ArduinoDaemonImpl.onStart: 1.0 ms [Finished 1.062 s after backend start]
root INFO Backend NodeFileUploadService.configure: 2.1 ms [Finished 1.062 s after backend start]
daemon INFO Starting daemon from E:\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
discovery-log INFO start
discovery-log INFO start new deferred
root INFO Backend BoardDiscovery.onStart: 0.8 ms [Finished 1.064 s after backend start]
root INFO Backend FileDownloadEndpoint.configure: 0.5 ms [Finished 1.064 s after backend start]
root INFO Backend AuthenticationServiceImpl.onStart: 0.4 ms [Finished 1.065 s after backend start]
root INFO Backend PluginApiContribution.configure: 0.5 ms [Finished 1.065 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.3 ms [Finished 1.066 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 1.066 s after backend start]
root INFO Backend PlotterBackendContribution.configure: 0.7 ms [Finished 1.067 s after backend start]
root INFO Theia app listening on http://localhost:55128.
root INFO Finished starting backend application: 5.6 ms [Finished 1.071 s after backend start]
root WARN The local plugin referenced by local-dir:/c%3A/Users/MJW/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/MJW/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\MJW\.arduinoProIDE\plugins does not exist.
Restoring workspace roots: e:\Arduino Projects\SolarConsumer
isTempSketch: false. Input was e:\Arduino Projects\SolarConsumer
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.5" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.69.0" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.69.0" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.69.0" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.69.0" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.69.0" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.69.0" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.69.0" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.69.0" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.69.0" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.69.0" with engines:
root INFO ---- DURATION: loadCliConfig took 53.276 ms. Args: [] ----
root INFO Resolve plugins list: 65.1 ms [Finished 1.129 s after backend start]
root INFO Deployed backend plugin "cortex-debug@0.3.10" from "E:\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension": 3.7 ms [Finished 1.133 s after backend start]
root INFO Deployed backend plugin "vscode-arduino-tools@0.0.2-beta.5" from "E:\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle": 3.6 ms [Finished 1.137 s after backend start]
root INFO Deployed backend plugin "cpp@1.52.1" from "E:\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension": 9.0 ms [Finished 1.146 s after backend start]
root INFO Deployed backend plugin "json@1.46.1" from "E:\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension": 1.9 ms [Finished 1.148 s after backend start]
root INFO Deployed backend plugin "json-language-features@1.46.1" from "E:\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain": 0.8 ms [Finished 1.148 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-cs@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-cs\extension": 93.4 ms [Finished 1.242 s after backend start]
daemon INFO {"level":"info","msg":"Using config file: c:\\Users\\MJW\\.arduinoIDE\\arduino-cli.yaml","time":"2022-10-11T16:59:24+01:00"}
{"level":"info","msg":"arduino-cli.exe version 0.27.1","time":"2022-10-11T16:59:24+01:00"}
{"level":"info","msg":"Executing `arduino-cli daemon`","time":"2022-10-11T16:59:24+01:00"}
{"IP":"127.0.0.1","Port":"55130"}

daemon INFO Daemon is running.
root ERROR Uncaught Exception:
root ERROR Error: 14 UNAVAILABLE: No connection established
    at Object.callErrorFromStatus (E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call.js:31:26)
    at Object.onReceiveStatus (E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client.js:189:52)
    at Object.onReceiveStatus (E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:365:141)
    at Object.onReceiveStatus (E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:328:181)
    at E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call-stream.js:187:78
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
root INFO Deployed backend plugin "vscode-language-pack-de@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-de\extension": 109.1 ms [Finished 1.351 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-es@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-es\extension": 87.7 ms [Finished 1.439 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-fr@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-fr\extension": 65.6 ms [Finished 1.504 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-it@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-it\extension": 50.8 ms [Finished 1.555 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ja@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-ja\extension": 52.7 ms [Finished 1.608 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-nl@1.48.3" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-nl\extension": 20.4 ms [Finished 1.628 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pt-BR@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-pt-BR\extension": 77.2 ms [Finished 1.705 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ru@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-ru\extension": 74.6 ms [Finished 1.780 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-tr@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-tr\extension": 69.4 ms [Finished 1.850 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-zh-hans@1.69.0" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-zh-hans\extension": 58.3 ms [Finished 1.908 s after backend start]
root INFO Deploy plugins list: 65.1 ms [Finished 1.915 s after backend start]

I had a thought that maybe the IDE needed to have the Arduino board plugged into the USB port for some reason. Maybe some config somewhere.

So I tried to start the IDE a number of times with the same splash screen appearing then nothing.
Then I plugged in the Arduino rev 3 board into the USB and tried starting the IDE again. This time the IDE started just fine.

Curious, I then I unplugged the Arduino device from the USB and proceeded to check if the IDE started up or not.
Repeated attempts and the IDE does not fail to start properly.

No idea why ?

I'm glad it is working now. This is mysterious, but I guess we can just be happy that your IDE is up and running.

Please let me know if you experience the problem again. I can see the relevant error in the output you posted and there are some things we can try to investigate that problem, but of course that is only needed in the event the IDE isn't working.

This has happened again, however plugging in the board has had no effect, so I cannot use the IDE 2

This looks like it is computer specific, as I just installed the last update on my surface pro and it works fine.

It is still perplexing me why this is not working, however I uninstalled, went through the registry, making sure all references to the IDE were removed, apart from some security sections where I wasn't allowed to delete, then reinstalled with the same result.

I shall keep trying different things

I managed to get this working by renaming the folder for the Arduino IDE under the users, but found another problem once I had managed to start the IDE.

For some reason Win10 has a nasty habit, apparently, of changing a folders attributes to read only.
I found this out when I came to update libraries and of course there was an error, because the data/project drive had been made read only.

I can only hope it now continues to work, although I cannot correlate the 2 together as in the IDE was updated and failed to work and at what point there was an update from MS, which changed the drives attributes.

1 Like

This is now working fine, so the answer is that for some reason, typically after a windows update, some folder attributes get changed to read only.

Solution is to set the attributes of the project/library folders to read/write again.

A post was split to a new topic: Connectex: A connection attempt failed because the connected party did not properly respond after a period of time

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