Problem lautch arduino IDE V2

hello
I have a problem
i have install arduino V2 IDE on my laptop
windows 10

the install is OK
but when i run the program
it stays on th lautch page (i try wait more 1 hour)

Hi @ro2. Please do this:

  1. Start File Explorer (AKA "Windows Explorer").
  2. Open the Arduino IDE's 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 & ".\Arduino IDE".
  6. Press Enter. 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.
  10. Click Edit > Select All. 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. In this Arduino forum thread, click on the reply field.
  13. Click the </> button on the forum toolbar. This will add the forum's code tags markup (```) to your reply, making it easier for us to read.
  14. Press Ctrl+V. This will paste the output between the code tags.
  15. Move the cursor outside of the code tags before you add any additional text to your reply.
  16. Click the "Reply" button.

Hopefully that will give us some information we can use to help you with the problem.

1 Like

thank you for the process
i post the log file:

PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
PS C:\Program Files\Arduino IDE>
Starting backend process. PID: 13060
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+.webview..+$' hostname.
root WARN please install @theia/electron@1.12.0-next.1a1d7afc as a runtime dependency
root INFO Configuration directory URI: 'file:///c%3A/Users/ro2/.theia'
root INFO Theia app listening on http://localhost:60356.
root WARN The local plugin referenced by local-dir:/c%3A/Users/ro2/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/ro2/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\ro2.arduinoProIDE\plugins does not exist.
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.1-beta.1" 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 Deploying backend plugin "cortex-debug@0.3.10" from "C:\Program Files\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension"
root INFO Deploying backend plugin "vscode-arduino-tools@0.0.1-beta.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle"
root INFO Deploying backend plugin "cpp@1.52.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension"
root INFO Deploying backend plugin "json@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension"
root INFO Deploying backend plugin "json-language-features@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain"
root INFO Deploy plugins list took: 132.2 ms
root WARN Backend ConfigServiceImpl.onStart is slow, took: 305.8 ms
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
at Socket.emit (events.js:223:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)
daemon INFO Restarting daemon in 5 seconds...
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
root INFO Git askpass helper is listening on http://127.0.0.1:60367.
root ERROR Error: Git installation not found.
at C:\Program Files\Arduino IDE\resources\app\node_modules\find-git-exec\lib\find-git-exec.js:69:69
daemon INFO Restarting daemon in 2 seconds...
root WARN Frontend CommonFrontendContribution.configure is slow, took: 459.3 ms
root WARN Failed to resolve module: @types/body-parser
root WARN Failed to resolve module: @types/cookie
root WARN Failed to resolve module: @types/express
root WARN Failed to resolve module: @types/fs-extra
root WARN Failed to resolve module: @types/lodash.debounce
root WARN Failed to resolve module: @types/lodash.throttle
root WARN Failed to resolve module: @types/react
root WARN Failed to resolve module: @types/react-dom
root WARN Failed to resolve module: @types/react-virtualized
root WARN Failed to resolve module: @types/route-parser
root WARN Failed to resolve module: @types/safer-buffer
root WARN Failed to resolve module: @types/ws
root WARN Failed to resolve module: @types/yargs
root WARN Failed to resolve module: @theia/monaco
root WARN Failed to resolve module: @theia/editor
root WARN Failed to resolve module: @types/rimraf
root WARN Failed to resolve module: @types/tar-fs
root WARN Failed to resolve module: @types/uuid
root WARN Failed to resolve module: @theia/navigator
root WARN Failed to resolve module: @types/p-queue
root WARN Failed to resolve module: @theia/preferences
root WARN Failed to resolve module: @theia/electron
root WARN Failed to resolve module: @theia/keymaps
root WARN Failed to resolve module: @theia/messages
root WARN Failed to resolve module: @types/diff
root WARN Failed to resolve module: @types/dompurify
root WARN Failed to resolve module: @types/mime
root WARN Failed to resolve module: @types/request
root WARN Failed to resolve module: @types/atob
root WARN Failed to resolve module: @types/auth0-js
root WARN Failed to resolve module: @types/btoa
root WARN Failed to resolve module: @types/dateformat
root WARN Failed to resolve module: @types/deepmerge
root WARN Failed to resolve module: @types/glob
root WARN Failed to resolve module: @types/google-protobuf
root WARN Failed to resolve module: @types/js-yaml
root WARN Failed to resolve module: @types/keytar
root WARN Failed to resolve module: @types/ncp
root WARN Failed to resolve module: @types/node-fetch
root WARN Failed to resolve module: @types/ps-tree
root WARN Failed to resolve module: @types/react-select
root WARN Failed to resolve module: @types/react-tabs
root WARN Failed to resolve module: @types/sinon
root WARN Failed to resolve module: @types/temp
root WARN Failed to resolve module: @types/which
root WARN Failed to resolve module: temp
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
at Socket.emit (events.js:223:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)
daemon INFO Restarting daemon in 5 seconds...
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
at Socket.emit (events.js:223:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)
daemon INFO Restarting daemon in 5 seconds...
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
at Socket.emit (events.js:223:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)
daemon INFO Restarting daemon in 5 seconds...
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
at Socket.emit (events.js:223:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)
daemon INFO Restarting daemon in 5 seconds...
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
at Socket.emit (events.js:223:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)
daemon INFO Restarting daemon in 5 seconds...
daemon INFO Setting up Prometheus metrics on :9090/metrics

I think this is the interesting part:

The Arduino IDE 2.x application itself is mostly focused on the GUI-specific tasks. It uses a separate tool named Arduino CLI for most of the non-GUI tasks (e.g., compiling and uploading sketches). It communicates with Arduino CLI over this TCP port.

A common cause of the IDE not starting up is when some other application is already using this 127.0.0.1:50051 port. However, in that case I believe the error message is different, like this:

daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Address already in use.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port. Address already in use.

So this makes me think the problem is different in your case. Are you aware of any sort of special security restrictions that might apply to your system that would prevent the IDE from connecting to the network?

I have try to desactivate windows defender and my antivirus

but the same!

I have install the IDEv2 on a other wibdows 10 PC with an other connexion (at office)
and the same error
for me it's a software bug it's impossible to have 2 pc with the séaame port block

the log of the 2eme pc:

daemon INFO Restarting daemon in 5 seconds...
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Une tentative dÔÇÖacc├¿s ├á un socket de mani├¿re interdite par ses autorisations dÔÇÖacc├¿s a ├®t├® tent├®e.

or the port is block on all the windows 10 pc!

I have test IDEv2 on a old mac , no problem to install and lautch
but no debug fonction for leonardo card (i use it)
impossible to install my library XMOTION (for sumo robot) error of preference ....

for me IDE V2 isn't a beta , more an apha to early to test

I had the same problem on Windows 10 with Arduino IDE intro graphic stopping the IDE from loading. Windows Security was blocking access. Needed to "Allow app through Controlled folder access" under ransomware protection.