arunoda / meteor-up-legacy

Production Quality Meteor Deployments
MIT License
2.26k stars 395 forks source link

Websockets Error when deploying with meteor-up (Ubuntu 14.04) Use Aliyun #838

Open nombx opened 8 years ago

nombx commented 8 years ago

Hi,

I'm using meteor-up when deploying to my Ubuntu 14.04 server and the handshake is failing for websockets with a 400 error.

Here is the exact error: WebSocket connection to 'ws://123.57.23.127:7788/sockjs/505/qx52a1w_/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400

It deploys perfectly fine, it doesn't throw out any errors either. Any idea what could be going on?

Here is my mup.json config, it's fairly simple { "servers": [ { "host": "", "password": "", "username": "root" } ], "setupMongo": true, "enableUploadProgressBar": true, "setupNode": true, "nodeVersion": "0.10.40", "setupPhantom": true, "appName": "", "app": "/Users/niko/www/meteor/test", "env": { "PORT" : 7788, "ROOT_URL": "http://123.57.23.127/" }, "deployCheckWaitTime": 150 }

http://123.57.23.127:7788/

MasterJames commented 8 years ago

What is going on with the last line exactly? 7788? Looks like that wrong. Is it in the settings too or is it a link?

gitTerebi commented 8 years ago

I disabled cloudflare on the domain hosting app and after that error 400s disappeared.

Try that?