Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipconfig returns error code 1 if interface not configured #42292

Closed
wants to merge 1 commit into from
Closed

ipconfig returns error code 1 if interface not configured #42292

wants to merge 1 commit into from

Conversation

broncha
Copy link

@broncha broncha commented Jan 16, 2024

Summary:

I have only seen this happen in one of our Mac mini (M1). The interface en0 is not configured, and en1 is. When the script tries to find the IP address of the metro server, it cycles through interfaces 0 to 8. But, ipconfig on en0 returns with exit code 1 which causes the script to exit.

Changelog:

[INTERNAL] [CHANGED] - Do not exit the script when extracting IP address of metro server.

Test Plan:

ipconfig successfully cycles through the list of interfaces when the first interfaces are not configured.

Screenshot 2024-01-16 at 12 06 38 PM

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jan 16, 2024
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 16,805,012 +4
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,200,486 -9
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: cd6755f
Branch: main

@broncha
Copy link
Author

broncha commented Jan 16, 2024

Just realized this is same as #41838

@dmytrorykun
Copy link
Contributor

@broncha this PR #41839 was supposed to fix this issue, and it has been merged. Can you confirm that the issue still persists, and your PR fixes it.

@broncha
Copy link
Author

broncha commented Jan 17, 2024

@dmytrorykun I guess its the same result different approach. I dont have the machine in which this was failing right now. But it looks like the fix should work. I can close this PR, if you want, or keep it open until I verify the other fix tomorrow

@dmytrorykun
Copy link
Contributor

@broncha If you could verify that the other fix worked, that would be really great. Let's keep this PR open until then.

@broncha
Copy link
Author

broncha commented Jan 18, 2024

@dmytrorykun I can confirm now that the other fix works as expected. Closing this now

@broncha broncha closed this Jan 18, 2024
@broncha broncha deleted the broncha-patch-1 branch January 18, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants