-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Many macOS popups asking for incoming connections appear when running test suite for the first time #37233
Comments
If you run |
This depends on your firewall settings. It doesn't seem to happen on a default macOS setup, but tends to happen if you have a managed macOS machine or if the firewall settings are otherwise adjusted to be sufficiently strict. I don't think there's much to do about this other than perhaps document the existence of I'm going to close this but feel free to comment or re-open if you think there's more to discuss and/or more to do here. |
I realise that |
I'm not sure how we'd achieve that unless we run all the tests that require network access with a single invocation of |
I followed the BUILDING.md file along with the feedback in this discussion. I built node.js using make. It was successful, or at least I think so. This is how my build ended in terminal:- After that, I executed Regardless, I ran the tests. The popups showed. All of em. Am I missing something? More Information:- |
The output you show is expected. (I know it looks like a bunch of errors and brokenness, but I think what the script does is try everything possible, and only one or two of those are supposed to succeed.) I think the docs may incorrectly be specifying to run the script with |
It works without |
Perhaps there is some change required for macOS Big Sur though for this script to work with it. Unfortunately I'm no longer using a mac and don't really have a good way to test/fix this 😞 |
When you say it works without As for the output, it has always been that way, so I'm not too concerned about that (although if someone wants to fix it without affecting the script working across various macOS versions, then great). |
Unfortunately, running the script with or without |
@marsonya What command are you using to run the tests? |
@marsonya What is the output of |
I am using |
This is the output on running it |
Hmmm.. OK, in that case, what is the output of running each of these six commands in turn?
|
It's possible that |
The output of tools/macos-firewall.sh can cause people to think it didn't work. Update things slightly to make the output mildly more informative. Refs: nodejs#37233 (comment)
|
I've updated my personal laptop to Big Sur in the hopes of being able to figure out what's going on with this. I need to rebuild |
I see at https://developer.apple.com/forums/thread/666222?answerId=646899022#646899022 that @Qard has run into this problem. Maybe he knows something more than what we've figured out so far. |
Based on that thread, it appears this may be a bug in Big Sur that may be fixed in an upcoming update. |
Can confirm that now that I've updated to Big Sur, I'm seeing the same behavior. And it sure seems like a Big Sur bug. |
Apple patching up Big Sur might take some time. |
The output of tools/macos-firewall.sh can cause people to think it didn't work. Update things slightly to make the output mildly more informative. Refs: nodejs#37233 (comment) PR-URL: nodejs#37846 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
I'm not sure if any or all of these will work, but you can try: 1: You can go to System Preferences -> Security & Privacy -> Firewall -> Firewall Options and use the GUI to add your 2: I just tried this and it worked, surprisingly to me. 3: Last resort, not recommended, but you can turn off the firewall entirely either from the command line or in the System Preferences -> Security & Privacy -> Firewall GUI. |
So, for the time being, I will just let the popups appear when I am running the full test suite. Takes like 5 mins only anyways. The popups are not at all a big problem when running tests for a specific subsystem. So that's a relief. I really appreciate you looking into this and thanks for the options :) |
I imagine it says "Allow incoming connections" rather than "Block incoming connections". If not, definitely change it to "Allow". If that doesn't work, one last thing to try might be to remove it and re-add it, just in case it's been added at a different path or something like that. |
It did say "Allow Incoming connections". But did not work earlier.
Then, I took your suggestion. Removed |
The output of tools/macos-firewall.sh can cause people to think it didn't work. Update things slightly to make the output mildly more informative. Refs: #37233 (comment) PR-URL: #37846 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
The output of tools/macos-firewall.sh can cause people to think it didn't work. Update things slightly to make the output mildly more informative. Refs: #37233 (comment) PR-URL: #37846 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
The output of tools/macos-firewall.sh can cause people to think it didn't work. Update things slightly to make the output mildly more informative. Refs: #37233 (comment) PR-URL: #37846 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
I'm having somehow a similar issue, where I believe running |
… environments) By only listening on the loopback address, we avoid the prompt about incoming networking connections from MacOS and other OSs. See nodejs/node#37233
… environments) By only listening on the loopback address, we avoid the prompt about incoming networking connections from MacOS and other OSs. See nodejs/node#37233
I saw 10s of popups in MacOS asking "Do you want the application node to accept incoming network connections?" when I ran the test suite. They just keep coming, 1 every 5-10 seconds. The only way to stop is force close vscode. Happened when I ran
./configure && make -j4 test
.What steps will reproduce the bug?
./configure && make -j4 test
How often does it reproduce? Is there a required condition?
This happened twice.
First time, I did not allow. Simply force closed vscode.
I wanted to try again to get a screenshot this time.
So I ran the test suite a second time, got the screenshot and allowed the application to get incoming calls.
What is the expected behavior?
One popup must be enough.
What do you see instead?
I see 10s of popups. They keep increasing. 1 every 5-10 seconds.
Additional information
The only way to make it stop is to force close vscode. The popups just keep coming.
The text was updated successfully, but these errors were encountered: