Questions tagged [puma]

Puma is a simple, fast, threaded, and highly concurrent HTTP server for Ruby/Rack applications.

From the introduction:

Puma is a simple, fast, and highly concurrent HTTP 1.1 server for Ruby web applications. It can be used with any application that supports Rack, and is considered the replacement for Webrick and Mongrel. It was designed to be the go-to server for Rubinius, but also works well with JRuby and MRI. Puma is intended for use in both development and production environments.

Also see the GitHub project.

1218 questions
8
votes
2 answers

Rails 4 API deployment example to Amazon EC2 using Capistrano 3, Nginx, Puma, GitHub, and RVM?

I have a Rails 4 API project on GitHub, and I'm trying to deploy it from my MacBook Pro using Capistrano 3 to two Amazon AWS EC2 Ubuntu instances using SSH keys - one is the app/web server, and the other is the PostgreSQL database server. The…
Chris
  • 824
  • 1
  • 7
  • 26
7
votes
0 answers

How to find the root cause of spontaneous restarts of Puma Worker?

From time to time on my RoR API service I can see that requests are being interrupted in the middle of processing. Simply the Puma server stops processing the request and right after I can see message in logs saying: [10] - Worker 0 (PID: 811)…
OndrejK
  • 187
  • 1
  • 9
7
votes
1 answer

nginx permission denied accessing puma socket that does exist in the correct location

On a Digital Ocean droplet running Ubuntu 21.10 impish I am deploying a bare bones Rails 7.0.0.alpha2 application to production. I am setting up nginx as the reverse proxy server to communicate with Puma acting as the Rails server. I wish to run…
jamesc
  • 12,423
  • 15
  • 74
  • 113
7
votes
2 answers

Elastic Beanstalk: customize Puma configuration

The current Beanstalk solution stack for Ruby + Puma uses the configuration file at /opt/elasticbeanstalk/support/conf/pumaconf.rb and ignores the config/puma.rb inside the Rails application directory. I could override the file above with a custom…
7
votes
1 answer

Rails 5.1 ActiveJob on Puma development not performing specific enqueued job

I'm running Rails 5.1.4 server (Puma v. 3.10.0 in single mode), but having an issue with a specific ActionJob that get's enqueued correctly but often never performed. I have a handful of jobs. All but 1 specific job always gets performed…
7
votes
0 answers

Pry session timing out because of Puma worker timeout

Whenever I hit a binding.pry while running an app locally, I enter the pry session as normal, but after about a minute, I see something like this in my server output. [54438] ! Terminating timed out worker: 54455 Then the server seems to run in a…
James Stonehill
  • 1,125
  • 10
  • 22
7
votes
1 answer

Error deploying Rails 5 app with Sinatra 2.0.0beta2 to Amazon Linux AMI

I'm running into an exception with Sinatra 2.0.0 beta 2 with Rails 5 deploying to the Amazon Linux AMI v 2.1.6. I've posted the issue in the Sinatra Github repro but it's been suggested I post it here. Edit: I ran into this using Elastic Beanstalk…
Will
  • 2,768
  • 1
  • 17
  • 15
7
votes
0 answers

Puma unable to find production environment configuration

I have a rails (4.2.4) app running with puma. The documentation says: If an environment is specified, either via the -e and --environment flags, or through the RACK_ENV environment variable, the default file location will be…
Edward Loveall
  • 1,983
  • 1
  • 19
  • 34
7
votes
2 answers

Puma not creating socket at defined location when started with `rails server`

I'm deploying my Rails app using nginx, puma, and capistrano. It's deployed by a user called deploy and the deploy location is under the home directory (/home/deploy) I have Puma configured to create a socket under the shared folder that Capistrano…
user2490003
  • 10,706
  • 17
  • 79
  • 155
7
votes
2 answers

nginx error: (13: Permission denied) while connecting to upstream)

I am running rails app with puma, capistrano, and nginx on a google compute engine VM with ubuntu 14.04 LTS. I have the nginx running on the external IP. And when I visit it I get two nginx errors in the log: 2016/02/03 11:58:07 [info] 19754#0: *73…
Rorschach
  • 3,684
  • 7
  • 33
  • 77
7
votes
1 answer

Nginx serving Rails app with Puma locally as development environment on OS X

I'm trying to setup Nginx with Rails and Puma locally on MAC to practice some setups. Ultimately I will have two apps running so Nginx would load balance them. For Rails and Puma I have the next. Procfile with: web: bundle exec puma -C…
Pod
  • 928
  • 1
  • 10
  • 30
7
votes
3 answers

Are there still benefits to running JRuby vs. the latest MRI with Puma?

I'm considering updating our ruby interpreter to JRuby, it's been quite a headache because we've had to remove any 2.x specific syntax from our app and resort to ruby 1.9.3 compatibility. Which isn't the end of the world. When it came time to run…
JP Silvashy
  • 46,977
  • 48
  • 149
  • 227
7
votes
3 answers

How scalable are server-sent events in Rails?

I'm planning on writing a Rails app where multiple users are going to have updated information pushed to them using server-sent events with ActionController::Live and Puma. I've already written a test app and it seems to work very well. For what…
Ten Bitcomb
  • 2,316
  • 1
  • 25
  • 39
7
votes
1 answer

Rails app 502 with AWS Elastic Beanstalk running Puma & Nginx

I've been able to successfully get my application running on Beanstalk with Passenger, however I've had no luck with Puma. Whenever I deploy to a Puma stack I get a 502 error, my log files indicate that it can't find the puma sock file: 2014/05/15…
7
votes
2 answers

Production log is blank?

My puma config: path = Dir.pwd + "/tmp/puma/" threads 0,20 environment "production" daemonize true drain_on_shutdown true bind "unix://" + path + "socket/puma.sock" pidfile path + "pid/puma.pid" state_path path + "pid/puma.state" My…
Starkers
  • 10,273
  • 21
  • 95
  • 158