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
26
votes
4 answers

How do I use puma's configuration file?

I was following this guide it documents the puma.rb file that is stored inside the app's config directory. The guide is a bit flakey, but here's what I assume the puma.rb file does. Instead of running crazy commands such as this to get puma running…
Starkers
  • 10,273
  • 21
  • 95
  • 158
25
votes
10 answers

Rails application deployed on Elastic Beanstalk with Puma fails - 502 errors on every request

I just deployed a Rails app to Elastic Beanstalk, and every request is giving me a 502 error. Here's the contents of /var/logs/nginx/error.log 2015/05/20 16:24:25 [warn] 1535#0: conflicting server name "localhost" on 0.0.0.0:80, ignored 2015/05/20…
24
votes
2 answers

PG::TRDeadlockDetected: ERROR: deadlock detected

I am restarting 8 puma workers via bundle exec pumactl -F config/puma.rb phased-restart what works fine. Now I am getting more and more postgres errors: PG::TRDeadlockDetected: ERROR: deadlock detected I found a about 50 of idle postgres processes…
Railsana
  • 1,813
  • 2
  • 21
  • 30
23
votes
6 answers

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

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 of worker". I don't have any custom configurations nor settings for that…
yigit
  • 253
  • 1
  • 3
  • 8
23
votes
3 answers

No such file or directory @ rb_sysopen - tmp/pids/puma.pid

I'm trying to start puma, but at the last step it fails like this: 16:38:09 web.1 | /home/ramonpm/.rvm/gems/ruby-2.2.7/gems/puma-3.9.1/lib/puma/launcher.rb:130:in `initialize': No such file or directory @ rb_sysopen - tmp/pids/puma.pid…
Ramon Marques
  • 3,046
  • 2
  • 23
  • 34
23
votes
4 answers

Cannot install Puma gem on Ruby on Rails

I'm trying to install the puma gem, but when I run gem install puma I get this error message: Temporarily enhancing PATH to include DevKit Building native extensions. This could take a while... ERROR: Error installing puma: ERROR: Failed…
EJ107
  • 251
  • 1
  • 2
  • 4
23
votes
1 answer

how to start puma with unix socket

I have followed this link to configure nginx with puma but when I start the server with bundle exec puma -e development -b unix:///var/run/my_app.sock it throws Permission denied - "/var/run/my_app.sock" (Errno::EACCES) error. but when I start the…
Thrikal Samy
  • 302
  • 1
  • 3
  • 12
22
votes
4 answers

Change local web server back to WEBrick in Rails from Puma

I was following the Heroku docs on getting Puma set up and entered this command: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} Which made it so that now I run puma in my development environment whenever I run a rails s. But…
james
  • 3,989
  • 8
  • 47
  • 102
22
votes
2 answers

Is puma the ONLY multi-threaded rails 4 http server?

I've gotten our stack converted to Rails 4 (yea!) and I'm looking to take advantage of the thread-safe code. Puma works in getting up, stopping it appears to be a different problem :( Is Puma the only multi-threaded rails? Thin ->…
Daniel
  • 7,006
  • 7
  • 43
  • 49
21
votes
5 answers

How to configure Rails with Puma to use SSL?

I only found how to start puma using SSL: $ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert' However, there is no description about how to include an intermediate CA cert in the documentation. Could someone point me in the right…
omninonsense
  • 6,644
  • 9
  • 45
  • 66
20
votes
5 answers

Puma - show full logs when run server with config file

I installed puma gem and when I start rails server by rails s I can see full output: $ rails s /Users/serj/.rvm/gems/ruby-2.2.1@email_platform/gems/htmlentities-4.3.2/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466…
ExiRe
  • 4,727
  • 7
  • 47
  • 92
19
votes
2 answers

Thin and Puma fail with similar issues - ERROR: Failed to build gem native extension on Mac with OpenSSL@1.1

Describe the bug I have tried to do a gem install puma and gem install thin and get an error. I have a brand new Mac that I am setting up: MacOS Catalina 10.15.6 (19G73) I have worked out that any version <= 4.2.1 works fine on my computer I am…
David Cruwys
  • 6,262
  • 12
  • 45
  • 91
19
votes
3 answers

Rails server start/stop

To run the Rails server, I use $rails server. It says 'To stop, click Ctrl+c'. I use Putty. The questions are: Should I keep the terminal open always? Because if the server stops, my web page wouldn't work. With Apache I just used commands…
user6586190
19
votes
1 answer

An unhandled lowlevel error occurred. The application logs may have details

I'm tyring to deploy a rails app to a digital ocean droplet and all seems to be configured ok but I get this error: An unhandled lowlevel error occurred. The application logs may have details. I'm not sure what to do as the logs are empty. Here's…
Tudor S.
  • 809
  • 2
  • 12
  • 29
19
votes
1 answer

How to check Rails app's thread safety for Puma

I wish to deploy my Rails app to Heroku using Puma webserver. However, I am not really sure whether all Gems are thread safe. Reading all Gems' source code is not feasible option for us. Is there a way to automatically check all Gems for thread…
Pahlevi Fikri Auliya
  • 4,157
  • 8
  • 35
  • 71
1
2
3
81 82