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
error when deployed: "Error during WebSocket handshake: Unexpected response code: 404" #22871
Comments
Is not this Elastic Beanstalk rejecting |
@rafaelfranca not sure. Someone had success deploying to a single instance hosted on Cloud9, so probably AWS specific. The server production.log shows two "Started GET /cable" for every one "Finished /cable" call (strange?). /var/app/containerfiles/logs/production.log ... |
We got this working using this proxy config for NGINX : https://gist.github.com/KeithP/f8534c04d20c2b4e4b1d. In future to make this easier to troubleshoot can we add to the documentation and / or add more logging? |
Feel free to submit a PR adding more error logging. I do think the source of error though is AWS' handling of websockets. |
Thanks, PR #23274 is submitted for this |
Closing due to #23274 being merged. |
When attempting to deploy the simple chat example https://github.com/HectorPerez/chat-in-rails5
to a single EC2 instance on AWS we get 'Error during WebSocket handshake: Unexpected response code: 404'. This works locally with RAILS_ENV=production but fails when deployed.
Steps to reproduce:
Clone https://github.com/HectorPerez/chat-in-rails5
Add redis install script by adding .ebextensions/ruby.config like this: https://gist.github.com/KeithP/08b38189372b7fd241e5#file-ebextensions-redis-config ; Git commit and deploy.
Use Elastic Beanstalk to spin up a single instance thus:
Check the logs and verify redis installed and started ok
This is also asked on stackoverflow: http://stackoverflow.com/questions/34536926/rails-5-0-0-beta1-activecable-error-during-websocket-handshake-unexpected-resp
The text was updated successfully, but these errors were encountered: