DEV Community

Discussion on: Deploy Rails in Amazon ECS: Part 4 - Create an ECS Cluster

Collapse
 
thomschlereth profile image
Thom Schlereth • Edited

Hi @jamby1100 thanks for putting this together. It looks like it was a fair amount of work. I got through it all but at the end I'm having this issue. My service keeps spinning up and then immediately killing tasks. I put the error logs from a stopped task down below. I've spent a number of hours trying to find out more information on why it's happening with no success. Any help would be appreciated.

2020-08-30 13:08:44/usr/local/bundle/gems/puma-4.3.5/lib/puma/dsl.rb:46:in read': No such file or directory @ rb_sysopen - config/docker_puma.rb (Errno::ENOENT)
/usr/local/bundle/gems/puma-4.3.5/lib/puma/dsl.rb:46:in
read': No such file or directory @ rb_sysopen - config/docker_puma.rb (Errno::ENOENT)
2020-08-30 13:08:44from /usr/local/bundle/gems/puma-4.3.5/lib/puma/dsl.rb:46:in _load_from'
2020-08-30 13:08:44from /usr/local/bundle/gems/puma-4.3.5/lib/puma/configuration.rb:195:in
block in load'
2020-08-30 13:08:44from /usr/local/bundle/gems/puma-4.3.5/lib/puma/configuration.rb:195:in each'
2020-08-30 13:08:44from /usr/local/bundle/gems/puma-4.3.5/lib/puma/configuration.rb:195:in
load'
2020-08-30 13:08:44from /usr/local/bundle/gems/puma-4.3.5/lib/puma/launcher.rb:58:in initialize'
2020-08-30 13:08:44from /usr/local/bundle/gems/puma-4.3.5/lib/puma/cli.rb:71:in
new'
2020-08-30 13:08:44from /usr/local/bundle/gems/puma-4.3.5/lib/puma/cli.rb:71:in initialize'
2020-08-30 13:08:44from /usr/local/bundle/gems/puma-4.3.5/bin/puma:8:in
new'
2020-08-30 13:08:44from /usr/local/bundle/gems/puma-4.3.5/bin/puma:8:in `'

Collapse
 
raphael_jambalos profile image
Raphael Jambalos

Hi Thom, thank you reading the article and following along the steps.

Based on your stack trace, I think your config/docker_puma.rb may be missing.

  • Can you check your config file if your docker_puma.rb file is there?
  • You can send me your Dockerfile so we can double check if the docker_puma.rb file was referenced properly

Cheers, let me know if this helps

Collapse
 
thomschlereth profile image
Thom Schlereth

How embarrassing, spent hours to realize it's docker_puma.rb not docker-puma.rb. Apparently I've been away from ruby for too long. Thanks for the help.

Thread Thread
 
raphael_jambalos profile image
Raphael Jambalos

Hi Thom, no worries! I usually have that problem too