IDE V2 Start Problem

Version: 2.0.1
Date: 2022-10-27T13:26:40.924Z
CLI Version: 0.28.0 [06fb1909]

Copyright © 2022 Arduino SA

Whenever I have my VPN started, the IDE refuses to start, however, once the VPN is turned off the IDE starts normally.

Why is this happening?

Your topic has been moved to the dedicated IDE2.0 section of the forum.

Hi @latedev. From our previous discussions, I'll assume you are using Windows when providing these instructions. If you are using another operating system, just let me know.

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 until you are certain the Arduino IDE has finished any progress in starting (as indicated by the lack of new output printed to the PowerShell terminal).
  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.

Sorry I should have said MS Windows 10

Edition Windows 10 Home
Version 21H2
Installed on ‎01/‎11/‎2020
OS build 19044.2251
Experience Windows Feature Experience Pack 120.2212.4180.0

|---|---|
|Processor|Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz 3.70 GHz|
|Installed RAM|32.0 GB|
|Product ID|00326-11550-56296-AA201|
|System type|64-bit operating system, x64-based processor|

Two scenarios. The VPN is turned on, for the below output, however turning the VPN off the IDE starts fine.
I then Started the IDE, VPN off, then turned on the VPN, however the IDE failed to shut down with the VPN active, Once I had turned the VPN off, the IDE shut down as normal.

Arduino IDE 2.0.1
Starting backend process. PID: 9536
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: 4.6 ms [Finished 1.920 s after backend start]
root INFO Backend Object.configure: 3.6 ms [Finished 1.920 s after backend start]
root INFO Backend MessagingContribution.onStart: 1.3 ms [Finished 1.920 s after backend start]
root INFO Backend OSBackendApplicationContribution.configure: 0.3 ms [Finished 2.016 s after backend start]
root INFO Backend DefaultWorkspaceServer.onStart: 0.3 ms [Finished 2.016 s after backend start]
root INFO Backend LocalizationBackendContribution.configure: 0.1 ms [Finished 2.016 s after backend start]
root WARN Backend LocalizationBackendContribution.initialize took longer than the expected maximum 50 milliseconds: 96.4 ms [Finished 2.016 s after backend start]
root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 2.016 s after backend start]
root INFO Backend ElectronTokenBackendContribution.configure: 2.1 ms [Finished 2.019 s after backend start]
root INFO Backend PluginDeployerContribution.initialize: 0.3 ms [Finished 2.019 s after backend start]
root INFO Backend ConfigServiceImpl.onStart: 0.8 ms [Finished 2.020 s after backend start]
root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.3 ms [Finished 2.021 s after backend start]
root INFO Backend ArduinoDaemonImpl.onStart: 1.0 ms [Finished 2.021 s after backend start]
root INFO Backend NodeFileUploadService.configure: 2.0 ms [Finished 2.022 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.7 ms [Finished 2.023 s after backend start]
root INFO Backend FileDownloadEndpoint.configure: 0.5 ms [Finished 2.023 s after backend start]
root INFO Backend AuthenticationServiceImpl.onStart: 0.3 ms [Finished 2.024 s after backend start]
root INFO Backend PluginApiContribution.configure: 0.4 ms [Finished 2.024 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.3 ms [Finished 2.025 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 2.026 s after backend start]
root INFO Backend PlotterBackendContribution.configure: 2.0 ms [Finished 2.028 s after backend start]
root INFO Theia app listening on http://localhost:58333.
root INFO Finished starting backend application: 5.9 ms [Finished 2.031 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\SolarConsumer.ino
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-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" 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.53.2" 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.53.2" 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.53.2" 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.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" 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.53.2" 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.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" 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-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" 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.53.2" 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.53.2" 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.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" 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.53.2" with engines:
root INFO Resolve plugins list: 119.3 ms [Finished 2.143 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": 10.6 ms [Finished 2.153 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": 10.8 ms [Finished 2.164 s after backend start]
root INFO Deployed backend plugin "cpp@1.52.1" from "E:\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension": 33.6 ms [Finished 2.198 s after backend start]
root INFO Deployed backend plugin "json@1.46.1" from "E:\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension": 4.9 ms [Finished 2.203 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.6 ms [Finished 2.203 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-bg@1.48.3" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-bg\extension": 132.3 ms [Finished 2.336 s after backend start]
daemon INFO INFO[0000] Using config file: c:\Users\MJW\.arduinoIDE\arduino-cli.yaml
INFO[0000] arduino-cli.exe version 0.28.0
INFO[0000] Executing `arduino-cli daemon`
{"IP":"127.0.0.1","Port":"58336"}

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-cs@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-cs\extension": 187.0 ms [Finished 2.523 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-de@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-de\extension": 147.1 ms [Finished 2.670 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-es@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-es\extension": 143.6 ms [Finished 2.813 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-fr@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-fr\extension": 134.9 ms [Finished 2.948 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-hu@1.48.3" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-hu\extension": 97.3 ms [Finished 3.046 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-it@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-it\extension": 132.1 ms [Finished 3.178 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ja@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-ja\extension": 149.1 ms [Finished 3.327 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ko@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-ko\extension": 148.2 ms [Finished 3.475 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": 70.0 ms [Finished 3.545 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pl@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-pl\extension": 120.8 ms [Finished 3.666 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pt-BR@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-pt-BR\extension": 129.2 ms [Finished 3.795 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ru@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-ru\extension": 149.0 ms [Finished 3.944 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-tr@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-tr\extension": 134.9 ms [Finished 4.079 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-uk@1.48.3" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-uk\extension": 86.2 ms [Finished 4.165 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-zh-hans@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-zh-hans\extension": 123.4 ms [Finished 4.289 s after backend start]
root INFO Deploy plugins list: 119.3 ms [Finished 4.295 s after backend start]

A tool named Arduino CLI provides all the non-GUI functionality to Arduino IDE. Arduino IDE communicates with Arduino CLI over a TCP/IP port on your computer.

The logs above show that the Arduino CLI "daemon" was started and listens for this communication on 127.0.0.1:58336 (localhost). But when Arduino IDE attempts to connect to that port, the connection failed. So it seems that the VPN is interfering with the IDE's ability to make that connection.

Unfortunately I don't have any experience with VPNs.

We have had some reports of proxies interfering with the communication (though most often through the Internet rather than local communication). I don't know whether there is anything of relevance in those discussions for problems related to VPN usage:

You might take a look through your VPN or network settings to see if you can identify what is happening.


It is possible to enable some additional debugging output from the node-grpc package that is failing to connect to the Arduino CLI daemon. It is possible that additional information might provide a clue about what exactly is happening and how The I'm going to ask you to post the logs produced by Arduino IDE when some additional debugging output is enabled. This 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:
    $Env:GRPC_VERBOSITY = "DEBUG"
    
  6. Press the Enter key.
  7. Type the following command in the terminal:
    $Env:GRPC_TRACE = "all"
    
  8. Press the Enter key.
  9. Type the following command:
    & ".\Arduino IDE"
    
  10. Press the Enter key.
    Debug output should now be printed to the PowerShell window as the Arduino IDE starts (or fails to start).
  11. Wait until you are certain the Arduino IDE has finished any progress in starting (as indicated by the lack of new output printed to the PowerShell terminal).
  12. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  13. Right click on the title bar of the PowerShell window.
    This will open a context menu.
  14. Select Edit > Select All from the context menu.
    This will select all the text in the PowerShell window.
  15. Press Ctrl+C.
    This will copy the contents of the PowerShell window to the clipboard.
  16. Open a forum reply here by clicking the Reply button.
  17. 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
  18. Press Ctrl+V.
    This will paste the output into the code block.
  19. Move the cursor outside of the code block markup before you add any additional text to your reply.
  20. Click the Reply button to post the output.

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

I have not given up on this, just trying to find a way to make this work.

The error is that the local host is not resolved for some reason and it keeps trying an address which is unknown.

{"IP":"127.0.0.1","Port":"54701"}

root ERROR D 2022-11-23T18:18:22.721Z | resolving_load_balancer | dns:localhost:54701 IDLE -> IDLE
root ERROR D 2022-11-23T18:18:22.721Z | connectivity_state | (1) dns:localhost:54701 IDLE -> IDLE
root ERROR D 2022-11-23T18:18:22.721Z | dns_resolver | Resolver constructed for target dns:localhost:54701
root ERROR D 2022-11-23T18:18:22.722Z | channel | (1) dns:localhost:54701 Channel constructed with options {
"grpc.max_send_message_length": 536870912,
"grpc.max_receive_message_length": 536870912,
"grpc.primary_user_agent": "arduino-ide/2.0.1"
}

Anything else that follows is done to it trying the address 127.0.0.1: which is not a localhost

I have allow traffic over local network allowed in the VPN

Are you saying your localhost has a different IP address?

Sorry, given I don't know enough about net addresses so much I had assumed that localhost would have been identified with ipconfig /all ,which only shows the IP addresses of everything.

It clearly does exist given that I can ping 127.0.0.1

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