IDE V2 Start Problem

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.