Skip to content

Hang on startup due to CLI daemon continuously restarting due to port 50051 unavailable #201

Closed
@jnslxndr

Description

@jnslxndr

Describe the bug
The Arduino IDE 2 beta GUI hangs on a rotating spinner and splashscreen when another service is listening on port 50051 (arduino cli port).

To Reproduce
Steps to reproduce the behavior:

  1. Start a service listeing on port 50051 (IPv4 and IPv6)
  2. Double click the Arduino IDE

Expected behavior
The Arduino IDE to start past the spinner and give a warning that port 50051 is unavaible. Possibly indicating how to change the port settings.

Desktop (please complete the following information):

  • OS: macOS
  • Version: 2.0.0-beta.3

Additional context

To mitigate the problem I started the Arduino IDE via the command line. That gave me the error of the unavailable port. I resolved the service that was listening on port 50051—Canonical's Multipass in my case. However, I was wondering if the port could be randomly picked and written/updated to the .arduino/arduino-cli.yml file?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions