[英]AWS Elastic Beanstalk Ruby on Rails 6 app deployment error with nginx
I have deployed a Rails 6 app using the Elastic Beanstalk Ruby platform, and I'm getting a 502 when trying to access the app.我使用 Elastic Beanstalk Ruby 平台部署了一个 Rails 6 应用程序,尝试访问该应用程序时收到 502。 The Nginx error logs have the following error... Nginx错误日志有以下错误...
connect() to unix:///var/run/puma/my_app.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: XXX.XX.XX.XX, server: _, request: "GET / HTTP/1.1", upstream: "http://unix:///var/run/puma/my_app.sock:/", host: "XXX.XX.XX.XX" connect() 到 unix:///var/run/puma/my_app.sock 连接到上游时失败(11:资源暂时不可用),客户端:XXX.XX.XX.XX,服务器:_,请求:“GET / HTTP/1.1”,上游:“http://unix:///var/run/puma/my_app.sock:/”,主机:“XXX.XX.XX.XX”
What could be the issue?可能是什么问题? An exceeded resource limit?超出资源限制?
Check /var/log/puma/puma.log
, you may find error message such as You have already activated puma 5.2.2, but your Gemfile requires puma 4.x
.检查/var/log/puma/puma.log
,您可能会发现错误消息,例如You have already activated puma 5.2.2, but your Gemfile requires puma 4.x
。 If this is the case, make sure your Gemfile and Gemfile.lock specify version of Puma that is available on the new Amazon Linux 2 based EB platform for Ruby.如果是这种情况,请确保您的 Gemfile 和 Gemfile.lock 指定在基于 Amazon Linux 2 的新 EB 平台上适用于 Ruby 的 Puma 版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.