Puma stuck with message “Early termination of worker” on Rails 6 API only project at Elastic Beanstalk

后端 未结 6 501
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-17 11:41

I have a Rails 6 api-only application which I am failed to run at AWS Elastic Beanstalk. After deployment of that application, puma stucks with message \"Early termination o

6条回答
  •  深忆病人
    2021-01-17 12:22

    Met the same error. Turns out it is a different PATCH of puma.

    I was using this stack from elastic beanstalk

    Ruby 2.6 AL2 version 3.0.1
    64bit Amazon Linux 2 v3.0.1 running Ruby 2.6
    Ruby 2.6.6-p146
    RubyGems 3.1.2
    Puma 4.3.3
    ...
    

    My project's Gemfile included puma this way.

    gem 'puma', '~> 4.3.3'
    

    My project was a boilerplate for new projects that were coming my way, so things were working fine for "old" projects until the newer patch version, puma 4.3.5 as of now, came out.

    Solution is to fix the version of the gem in the Gemfile as such:

    gem 'puma', '= 4.3.3'
    

    Lesson learnt is to always match your environment with that of your deployment tool. Keep track of the latest solution stack versions here.

提交回复
热议问题