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

not a passenger issue (was: Meteor Deploy giving error on Websocket connection) #1876

Closed
mariohmol opened this issue Sep 21, 2016 · 4 comments

Comments

@mariohmol
Copy link

Hi,

have a meteor projec, i'm trying to deploy and getting this error:

3205508….js?meteor_js_resource=true:57 WebSocket connection to 'ws://app.brigadistacivil.com.br/sockjs/361/ahglfyhe/websocket' failed: One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1

Here is more info: meteor/meteor#7802

Thanks

@mariohmol mariohmol changed the title Meteor Deploy giving Meteor Deploy giving error on Websocket connection Sep 21, 2016
@OnixGH
Copy link
Contributor

OnixGH commented Sep 22, 2016

From your config it appears you are using the Apache integration mode. This will not work reliably. You can use either the standalone (Nginx) mode or run Passenger as a reverse proxy behind Apache.

Also, 4.0.19 is very old, the latest version is 5.0.30 which has a number of fixes for security issues as well as websockets.

@mariohmol
Copy link
Author

As Meteor just work with websockets, shouldnt this docs be deleted?

https://www.phusionpassenger.com/library/deploy/apache/deploy/meteor/

Lost some days researching something that do not work.. but official docs says that works..

@OnixGH
Copy link
Contributor

OnixGH commented Sep 22, 2016

We have a warning up in the Passenger + Apache installation walkthrough, which you should encounter before getting to the doc you mentioned.

Nevertheless it is a good point, we're in the process of updating the Meteor-specific docs anyway and we'll look into this part as well. I created an issue on the passenger library tracker.

@mariohmol
Copy link
Author

Some updates:

I had problem making this work on apache2.2 because of wstunnel is not supported, just by apache2.4 .

If you use passanger standalone works but if is a new meteor project with ionic2, you have to call the gulp build and copy www/ folder to a public/ folder inside the api/ folder.

Here is a link with a example project: https://github.com/mariohmol/brigadistas

@OnixGH OnixGH changed the title Meteor Deploy giving error on Websocket connection not a passenger issue (was: Meteor Deploy giving error on Websocket connection) Oct 14, 2016
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

3 participants