Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

arduino:avr:uno is not installed + failed to listen: listen tcp :50051: bind #134

Closed
fhtino opened this issue Nov 10, 2019 · 6 comments
Closed
Labels
type: imperfection Something isn't working
Milestone

Comments

@fhtino
Copy link

fhtino commented Nov 10, 2019

Arduino Pro IDE ( 0.0.2 )shows this error at startup:
"Editor support may be inaccurate because the core for the board arduino:avr:uno is not installed. Use the Boards Manager to install it."

Running from command line, I see this error when the IDE tries to start arduino-cli:

root INFO Error: Command failed: "C:\mybin\arduino-pro-ide-0.0.2-alpha.preview-windows\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe" daemon -v --log-level info --format json --log-format json
2019/11/10 16:34:29 failed to listen: listen tcp :50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
    at ChildProcess.exithandler (child_process.js:299:12)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Socket.stream.socket.on (internal/child_process.js:381:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close (net.js:606:12)
daemon INFO <<< The 'arduino-cli' daemon is up an running.

Running ProIDE or directly Arduino-cli as administrator does not solve the issue.

OS: Windows 10 -1809

cc /@akash73

@fhtino fhtino added the type: imperfection Something isn't working label Nov 10, 2019
@kittaakos
Copy link
Contributor

@fhtino, can you please try to extract and run the application somewhere under %USERPROFILE%?

@fhtino
Copy link
Author

fhtino commented Nov 13, 2019

@kittaakos I've run it under C:\Users\Fabry\temp\arduino-pro-ide-0.0.2-alpha.preview-windows\
Nothing changed: same errors on IDE and from command-line.

@fhtino
Copy link
Author

fhtino commented Nov 13, 2019

@kittaakos I've found a similar issue here docker/for-win#3171
I have HyperV installed. I've tried netsh on my PC. Port 50051 is included in the exclusion ranges.

C:\>netsh interface ipv4 show excludedportrange protocol=tcp
Protocol tcp Port Exclusion Ranges
Start Port    End Port
----------    --------
      5357        5357
      5700        5700
      8884        8884
     49863       49962
     50042       50141
     64380       64479
     64746       64845
* - Administered port exclusions.

@kittaakos
Copy link
Contributor

Thank you for your help, @fhtino. The CLI part is not under my control 😊, but I have opened a proposal. Hopefully, Windows users with Hyper-V installed, do not have to do any magic to be able to use the IDE.

If you have a better idea, please let us know.

spoenemann added a commit to arduino/arduino-language-server that referenced this issue Jan 13, 2020
@kittaakos
Copy link
Contributor

This will be available with the 0.0.6-alpha release. You can use the CLI config to update the daemon.port.

I am moving this item to the current milestone as this feature will be supported by the next release.

@kittaakos kittaakos added this to the v0.0.6 milestone Apr 8, 2020
@kittaakos
Copy link
Contributor

@fhtino, you should be able to tune the daemon port via the CLI configuration.
File > Settings > Open CLI Configuration and change the daemon.port entry.

If you have questions/problems, please let us know.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: imperfection Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants