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

[1.5.2.1][osx] keeps asking 'to accept incoming network connections'. #9139

Closed
rjsmith opened this issue Sep 27, 2017 · 8 comments
Closed

[1.5.2.1][osx] keeps asking 'to accept incoming network connections'. #9139

rjsmith opened this issue Sep 27, 2017 · 8 comments

Comments

@rjsmith
Copy link

rjsmith commented Sep 27, 2017

I have just upgraded my Meteor application from 1.5.2 to 1.5.2.1 and immediately noticed that OSX 10.11.6 is prompting "Do you want the application “node” to accept incoming network connections? Allow/Deny" every time Meteor re-starts the server application after a re-build.

I normally only see this prompt once after upgrading a Meteor version. I have not seen this behaviour on 1.5.2 or earlier versions.

Steps to reproduce:

  1. Edit a client - only file. Save. Meteor does a client-only rebuild, no "accept incoming" prompt.
  2. Edit a server - only file (I tried the in the /server folder). Save. Meteor does a server re-build and re-starts the server and OSX shows the "accept incoming" prompt.
  3. Edit a client or server-side file in a local package. Save. Meteor re-builds and re-starts the server and OSX shows the "accept incoming" prompt.

The applications /.meteor/release file has "METEOR@1.5.2.1"

@abernix abernix changed the title [osx] Meteor 1.5.2.1 Server re-builds always asking 'to accept incoming network connections?' [1.5.2.1][osx] keeps asking 'to accept incoming network connections'. Sep 27, 2017
@abernix
Copy link
Contributor

abernix commented Sep 27, 2017

I'm currently working on this and should have a solution soon.

Easy Fix for macOS Users

Copy the node binary from the 1.5.2 release into your 1.5.2.1 release using the following (long) command:

cp ~/.meteor/packages/meteor-tool/1.5.2/mt-os.osx.x86_64/dev_bundle/bin/node ~/.meteor/packages/meteor-tool/1.5.2_1/mt-os.osx.x86_64/dev_bundle/bin/node

It's built from the same source and has no other changes for macOS users (there were changes for Linux users; see #9068). Meteor 1.5.2 will need to be installed for this command to work, so if you receive an error when running it, just run meteor create --release 1.5.2 test-app-safe-to-delete somewhere to put the binary in place first.

Prognosis

I know why the error is happening every time, and it's related to the code-signing signature on the node binary included in 1.5.2.1. I've confirmed that the binary is identical to that which was built on our build Mac, but the build Mac hardware itself changed so something else happened in the compilation process. This is could be the root cause of #9136 as well.

1.5.2.1 binary

$ codesign --verify -vv ~/.meteor/packages/meteor-tool/1.5.2_1/mt-os.osx.x86_64/dev_bundle/bin/node
/Users/jesse/.meteor/packages/meteor-tool/1.5.2_1/mt-os.osx.x86_64/dev_bundle/bin/node: invalid signature (code or signature have been modified)
In architecture: x86_64

1.5.2 binary

$ codesign --verify -vv ~/.meteor/packages/meteor-tool/1.5.2/mt-os.osx.x86_64/dev_bundle/bin/node
/Users/jesse/.meteor/packages/meteor-tool/1.5.2/mt-os.osx.x86_64/dev_bundle/bin/node: valid on disk
/Users/jesse/.meteor/packages/meteor-tool/1.5.2/mt-os.osx.x86_64/dev_bundle/bin/node: satisfies its Designated Requirement

More details and a fix with a test to prevent this in the future coming soon.

@rjsmith
Copy link
Author

rjsmith commented Sep 27, 2017

Hi @abernix . Thanks. I can confirm the above workround has resolved the problem on my dev machine.

@abernix
Copy link
Contributor

abernix commented Sep 27, 2017

Just FYI, I ran into delays initially because SourceForge downloads were down and they host the ICU (International Components for Unicode) dependencies necessary to build node, but later on due to some bizarre codesign issues. The full fix is still being investigated, but we hope to have an answer soon.

@m-salamon
Copy link

having the same issue when I updated to node v8.6.0

@abernix abernix removed the in-development We are already working on it label Sep 28, 2017
@abernix abernix added this to the 1.5.2.2 milestone Sep 28, 2017
@abernix
Copy link
Contributor

abernix commented Sep 28, 2017

A release candidate for Meteor 1.5.2.2 has been released which includes this change. Please help test it and confirm whether this issue is fixed!

meteor update --release 1.5.2.2-rc.0

@hwillson
Copy link
Contributor

Just chiming in @abernix - I've confirmed the 1.5.2.2 RC addresses this issue for me. Thanks!

@rjsmith
Copy link
Author

rjsmith commented Sep 29, 2017

Hi @abernix . Yes, after upgrading to 1.5.2.2-rc.0, I'm not seeing the OSX prompt when the meteor server restarts after a rebuild. Thanks!

@benjamn
Copy link
Contributor

benjamn commented Sep 29, 2017

This should be fixed if you update to Meteor 1.5.2.2 (meteor update --release 1.5.2.2). Thanks everyone!

@benjamn benjamn closed this as completed Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants