flipper icon indicating copy to clipboard operation
flipper copied to clipboard

Getting "Connection Error: Couldn't start connection server" on fresh install of Flipper on Mac

Open bengrunfeld opened this issue 1 year ago • 2 comments

🐛 Bug Report

Getting the following error on a fresh install of Flipper on Mac:

Connection error
Couldn't start connection server. Looks like you have multiple copies of Flipper running or another process is using the same port(s). As a result devices will not be able to connect to Flipper.

Please try to kill the offending process by running kill $(lsof -ti:PORTNUMBER) and restart flipper.

Error: listen EADDRINUSE: address already in use :::8089

But when I kill the process on 8089, it just starts up again.

Environment

OS: macOS Monterey v12.6.3 chip: Apple M1 Flipper: Version 0.201.0 (50.0.0)

Custom Port

I tried setting up Flipper to use a custom port by following the instructions at: https://fbflipper.com/docs/custom-ports/, but this didn't help.

I ran the following command but it didn't help:

xcrun simctl spawn booted defaults write "Apple Global Domain" "com.facebook.flipper.ports" -string "1111,2222"

Flipper doctor says that everything is ok.

Also, despite the fact that I'm running a react native app in Xcode simulator, I get the following warning in the flipper app:

NO DEVICES FOUND No devices found Start a fresh emulator  or check the troubleshooting guide.

But when I click on the "Start Emulator / Simulator" icon in Flipper, it opens a modal and nothing happens. A spinner comes up and spins infinitely.

Any advice?

Screenshot: Screen Shot 2023-06-22 at 14 17 50

bengrunfeld avatar Jun 22 '23 11:06 bengrunfeld

Hey, I don't know if it can help

I have the same issue whenever I build and start my app using xcode before starting the flipper app I'm using xcode to build the app for the target My Mac (Designed for iPhone)

Starting flipper before building the app on xcode solves the issue in my case

And I don't have any issue when building and starting the app from the terminal using the react-native-cli

Justkant avatar Aug 17 '23 15:08 Justkant

I have same issue.

vivek21feb avatar Apr 16 '24 18:04 vivek21feb