IDE 2.0 beta4 available for download!

Pretty much all the beta testers have both IDEs installed, as well as many users. I personally have both installed. I think it’s more likely the problem has another cause.

Please provide a detailed description of what you mean by “I still can’t open it”, including the full and exact text of any error messages you might be seeing.

I can’t even get into the IDE interface. The software is always in the process of opening

上传中:image.png…

Hi @caodawei it looks like your image upload didn’t work. Please try again.

I don’t know why I can’t upload the picture. I tried several times

The software stays in this state all the time

OK, thank you. This is valuable information for troubleshooting.

Is this screenshot taken when using Arduino IDE 2.0.0-beta.5?

The reason I ask is because there was a very nice improvement made in the 2.0.0-beta.5 that was intended to show a helpful error notification in the IDE when this sort of initialization failure occurs, rather than just hanging on the splash screen as shown in your screenshot.

The software has just stayed in the state, the software stuck, there is no error prompt

OK, we’ll try something else.

Which operating system are you using?

win10

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.

PS H:\arduino IDE2.0 beta5> .\Arduino IDE
.\Arduino : 无法将“.\Arduino”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请
确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ .\Arduino IDE
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (.\Arduino:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS H:\arduino IDE2.0 beta5> & ".\Arduino IDE"
PS H:\arduino IDE2.0 beta5>
Starting backend process. PID: 16772
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/Administrator/.theia'
root INFO Theia app listening on http://localhost:53893.
root WARN The local plugin referenced by local-dir:/c%3A/Users/Administrator/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/Administrator/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\Administrator\.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 "H:\arduino IDE2.0 beta5\resources\app\plugins\cortex-debug\extension\dist\extension"
root INFO Deploying backend plugin "vscode-arduino-tools@0.0.1-beta.1" from "H:\arduino IDE2.0 beta5\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle"
root INFO Deploying backend plugin "cpp@1.52.1" from "H:\arduino IDE2.0 beta5\resources\app\plugins\vscode-builtin-cpp\extension"
root INFO Deploying backend plugin "json@1.46.1" from "H:\arduino IDE2.0 beta5\resources\app\plugins\vscode-builtin-json\extension"
root INFO Deploying backend plugin "json-language-features@1.46.1" from "H:\arduino IDE2.0 beta5\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain"
root INFO Deploy plugins list took: 72.2 ms
root WARN Backend ConfigServiceImpl.onStart is slow, took: 195.2 ms
daemon INFO Starting daemon from H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:25:10+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon INFO Daemon is now listening on 127.0.0.1:50051...
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:53900.
root WARN Could not load sketch from \$RECYCLE.BIN\S-1-5-21-1366395137-2572947392-4136602940-1000.
root WARN Frontend CommonFrontendContribution.configure is slow, took: 397.9 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/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/ncp
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: js-yaml
root WARN Failed to resolve module: temp
root ERROR Error: Git installation not found.
    at H:\arduino IDE2.0 beta5\resources\app\node_modules\find-git-exec\lib\find-git-exec.js:69:69
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:25:15+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:25:20+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:25:25+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:25:30+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:25:35+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:25:41+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:25:46+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:25:51+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
                            daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduidaemon INFO Starting daemon from H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...nable to get Documents Folder: The system cannot find the path specified.
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.ents Folder: The system cannot find the path specified.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.nsion\lib\node\arduino-    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307:58)ents.js:223:5)
    at Socket.emit (events.js:223:5):309:12)
    at addChunk (_stream_readable.js:309:12):290:11)
    at readableAddChunk (_stream_readable.js:290:11):10)
    at Socket.Readable.push (_stream_readable.js:224:10)s:181:23)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)
daemon INFO Restarting daemon in 5 seconds...level=error msg="Unable to get Documents Folder: The system cannot find
daemon INFO time="2021-04-17T12:26:01+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."nfig file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1on :9090/metrics
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051d error: listen tcp 127.0.0.1:50051: bind: Only one usage odaemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.cp 127.0.0.1:50051: bind: Only one usage
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:26:06+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:26:11+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:26:16+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-17T12:26:21+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
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: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
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...

@pert

OK, I see two significant errors:

daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.

I don’t know what is the cause of the first one. Maybe your Documents folder is on a cloud service like OneDrive and is not connected.

daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

By default, Arduino IDE 2.x uses TCP port 50051 to communicate with the Arduino CLI tool that handles all the non-GUI related tasks. It looks like some other application is already using this port. We are seeing that the application that causes this conflict is usually multipass.

Both of these issues can be fixed by customizing the Arduino CLI configuration file. Please do this:

  1. Close the Arduino IDE 2.x if it’s still running.
  2. Open c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml in a text editor.
  3. Change this line from:
      port: "50051"
    
    to:
      port: "50052"
    
    (or any free port number you like)
  4. Change this line (might be slightly different) from:
      user: C:\Users\Administrator\Documents\Arduino
    
    to the path of any folder you would like to use for your Arduino sketchbook folder. If you already have an Arduino sketchbook folder, you will probably find it convenient to use the same location.
  5. Save the file.
  6. Try starting Arduino IDE 2.x again.

Hopefully that will solve your problems. If not, please follow the instruction from my last reply once again so I can see the new command line output.

@pert
Thanks for your reply, but it’s a pity it still can’t work. I have changed 50051 to 50052 according to your method.

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 H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Unable to get Documents Folder: The system cannot find the path specified.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (H:\arduino IDE2.0 beta5\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:307: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 time="2021-04-20T15:52:49+08:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."
daemon INFO Using config file: c:\Users\Administrator\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.1
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50052
daemon INFO Failed to listen on TCP port: 50052. Unexpected error: listen tcp 127.0.0.1:50052: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon ERROR Failed to listen on TCP port: 50052. Unexpected error: listen tcp 127.0.0.1:50052: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

@pert