我有一个Rails 6 api-only 应用程序,但是我无法在AWS Elastic Beanstalk上运行它。在部署该应用程序后,puma进程会卡住并显示“Early termination of worker”消息。我没有任何自定义配置或设置该项目。只是创建了一个环境并上传了存档的zip文件。
在使用命令pkill -9 -f puma
杀死puma进程后,我的puma.log文件如下所示:
=== puma startup: 2020-01-22 13:17:45 +0000 ===
=== puma startup: 2020-01-22 13:17:45 +0000 ===
[28858] Early termination of worker
[28856] Early termination of worker
[28862] Early termination of worker
[28865] Early termination of worker
[28869] Early termination of worker
我搜索了这个错误,但没有找到解决方法。
- Ruby 版本:2.6.5
- Puma 版本:4.3.1
- Rails 版本:6.0.2.1
我正在使用运行在 AWS 上的 64 位 Amazon Linux/2.11.2 的 Ruby 2.6 和 Puma。
rackup config.ru
看到我的问题。 - CTS_AEProcfile
文件,就可以解决问题 (web: bundle exec puma -C /opt/elasticbeanstalk/config/private/pumaconf.rb
)。在 默认设置 中添加了bundle exec
。 - x-yuri