{"action":"created","issue":{"url":"https://api.github.com/repos/arunoda/meteor-up/issues/224","labels_url":"https://api.github.com/repos/arunoda/meteor-up/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/arunoda/meteor-up/issues/224/comments","events_url":"https://api.github.com/repos/arunoda/meteor-up/issues/224/events","html_url":"https://github.com/arunoda/meteor-up/issues/224","id":54681162,"number":224,"title":"Handshake fails and websockets are not working when deploying with meteor-up (Ubuntu 14.04)","user":{"login":"MaazAli","id":7013041,"avatar_url":"https://avatars.githubusercontent.com/u/7013041?v=3","gravatar_id":"","url":"https://api.github.com/users/MaazAli","html_url":"https://github.com/MaazAli","followers_url":"https://api.github.com/users/MaazAli/followers","following_url":"https://api.github.com/users/MaazAli/following{/other_user}","gists_url":"https://api.github.com/users/MaazAli/gists{/gist_id}","starred_url":"https://api.github.com/users/MaazAli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaazAli/subscriptions","organizations_url":"https://api.github.com/users/MaazAli/orgs","repos_url":"https://api.github.com/users/MaazAli/repos","events_url":"https://api.github.com/users/MaazAli/events{/privacy}","received_events_url":"https://api.github.com/users/MaazAli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-18T00:30:48Z","updated_at":"2015-09-09T14:49:21Z","closed_at":null,"body":"Hi, \r\n\r\nI'm using meteor-up when deploying to my Ubuntu 14.04 server and the handshake is failing for websockets with a 400 error. \r\n\r\nHere is the exact error:\r\n\r\n`WebSocket connection to 'ws://example.com/sockjs/477/z3heiyow/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400`\r\n\r\nIt deploys perfectly fine, it doesn't throw out any errors either. \r\nAny idea what could be going on? \r\n\r\nHere is my `mup.json` config, it's fairly simple\r\n```\r\n{\r\n  // Server authentication info\r\n  \"servers\": [\r\n    {\r\n      \"host\": \"...\",\r\n      \"username\": \"...\",\r\n      \"password\":  \"...\"\r\n      // or pem file (ssh based authentication)\r\n      //\"pem\": \"~/.ssh/id_rsa\"\r\n    }\r\n  ],\r\n\r\n  // Install MongoDB in the server, does not destroy local MongoDB on future setup\r\n  \"setupMongo\": true,\r\n\r\n  // WARNING: Node.js is required! Only skip if you already have Node.js installed on server.\r\n  \"setupNode\": true,\r\n\r\n  // WARNING: If nodeVersion omitted will setup 0.10.33 by default. Do not use v, only version number.\r\n  \"nodeVersion\": \"0.10.33\",\r\n\r\n  // Install PhantomJS in the server\r\n  \"setupPhantom\": true,\r\n\r\n  // Application name (No spaces)\r\n  \"appName\": \"...\",\r\n\r\n  // Location of app (local directory)\r\n  \"app\": \"~/Desktop/projects/my-app\",\r\n\r\n  // Configure environment\r\n  \"env\": {\r\n    \"ROOT_URL\": \"http://mydomain.com\",\r\n    \"MAIL_URL\": \"...\"\r\n  },\r\n\r\n  // Meteor Up checks if the app comes online just after the deployment\r\n  // before mup checks that, it will wait for no. of seconds configured below\r\n  \"deployCheckWaitTime\": 15\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/arunoda/meteor-up/issues/comments/138935002","html_url":"https://github.com/arunoda/meteor-up/issues/224#issuecomment-138935002","issue_url":"https://api.github.com/repos/arunoda/meteor-up/issues/224","id":138935002,"user":{"login":"zaklampert","id":7213046,"avatar_url":"https://avatars.githubusercontent.com/u/7213046?v=3","gravatar_id":"","url":"https://api.github.com/users/zaklampert","html_url":"https://github.com/zaklampert","followers_url":"https://api.github.com/users/zaklampert/followers","following_url":"https://api.github.com/users/zaklampert/following{/other_user}","gists_url":"https://api.github.com/users/zaklampert/gists{/gist_id}","starred_url":"https://api.github.com/users/zaklampert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaklampert/subscriptions","organizations_url":"https://api.github.com/users/zaklampert/orgs","repos_url":"https://api.github.com/users/zaklampert/repos","events_url":"https://api.github.com/users/zaklampert/events{/privacy}","received_events_url":"https://api.github.com/users/zaklampert/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T14:49:21Z","updated_at":"2015-09-09T14:49:21Z","body":"+1"}}