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
0
votes
2 answers

Puma server log error

I have an AngularJS web application sending requests to a Rails API running in a Puma server. I see this error in my puma error log once or twice a day: 2015-02-26 23:26:41 +0000: HTTP parse error, malformed request (): #
Rober
  • 5,868
  • 17
  • 58
  • 110
0
votes
1 answer

Websocket-rails Can't Add New Key Into Hash

I am currently making an app that uses Rails, Puma and Websocket-rails to push Twitter Streaming tweets to the client. For some reason, I randomly get the following error after I navigate to the index page (single page app). I can't figure out…
TheNastyOne
  • 965
  • 11
  • 19
0
votes
1 answer

How do I get database response time in Rails console on Heroku?

When I make querys in the rails console in development on each query I get a speed report such as (0.4ms in this case): Comment.find(1) Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = $1 ORDER BY…
Laser
  • 5,085
  • 4
  • 34
  • 48
0
votes
1 answer

Puma: Status file not found

I am trying to deploy a Rails application with Capistrano. I had an issue of bundler: command not found: pumactl, which I seem to have resolved by adding the puma gem to my Gemfile outside of the :development group. Gemfile source…
Micah Alcorn
  • 2,363
  • 2
  • 22
  • 45
0
votes
1 answer

Ruby app stop responding after ssh logout

I have Ruby app up and running with a puma server. It runs on a virtual machine. When I connect to this machine over ssh everything works perfectly. However, if ssh logout and refresh the page I see a blank page and "Request Method:GET; Status…
inearth
  • 1
  • 2
0
votes
1 answer

Testing for Threat Safety in Rails

Now that Puma is the recommended web server for Rails on Heroku, they are warning of the dangers of using non-threadsafe code. How do you test a Rails app for thread safety?
softcode
  • 4,358
  • 12
  • 41
  • 68
0
votes
1 answer

Undefined method on Heroku (using Puma)

We're using the Postgis adapter with Ruby on Rails, and we're trying to use Puma on Heroku for our production environment. Our test pass flawlessly on the development system. Also, the server works perfectly on every production server but Heroku,…
Dave Qorashi
  • 326
  • 2
  • 11
0
votes
1 answer

How can I dedicate threads to run Sidekiq jobs with Puma or Raptor server?

Let's say my process will run 3 workers, and I want to dedicate 1 of them to process web requests, and 2 to handle Sidekiq background jobs, each process potentially being multi-threaded. Is there an easy or best-practices way to handle this? I've…
sway
  • 363
  • 1
  • 5
  • 17
0
votes
1 answer

nginx serve request to a json api service via sockets configuration

my grape app runs on localhost like so: bundle exec rackup -p 9292 and after that when going to http://localhost:9292/api/v1/ping, you get a json response {"res":"pong"} now,i'm trying to set it up in production. so I decided to run it on puma and…
Ohad Perry
  • 1,315
  • 2
  • 15
  • 26
0
votes
1 answer

ActionNotFound during application boot

I have a bizarre issue with my Rails 4.1.4 app running on multiple Puma instances. The app has an API that is hit by other systems in an SOA architecture. We have a high-traffic system and it receives many calls. If, when starting the app, we have…
Javid Jamae
  • 8,741
  • 4
  • 47
  • 62
0
votes
1 answer

Rails + xmpp4r + puma. Whem puma run as daemon XMPP disconnects

I've got an initializer which starts xmpp4r client. It works fine when I run puma server as a regular process. But when I start puma as a daemon (-d option) it works for a few seconds and disconnects from the xmpp server. I've got separate thread…
Oleg Antonyan
  • 2,943
  • 3
  • 28
  • 44
0
votes
2 answers

Puma 2.9.2 and rufus-scheduler 3.0.3 incompatibility

I´m using Rufus Scheduler 3.0.3 in a Ruby on Rails 4.1.4 web app and it´s working great with Unicorn. I moved to Puma and it´s great but I have realized Rufus is not working with Puma (daemonized). I have read this issue #183 (comment)…
Rober
  • 5,868
  • 17
  • 58
  • 110
0
votes
1 answer

Thin boots instead of puma

I'm trying to make a chat application deployed on a puma ec2 instance and have puma gem declared on my gemfile, but rails-websockets gem requires thin. For some reason when I start my server it uses thin instead of puma. How to force my app to boot…
Hamdan
  • 183
  • 15
0
votes
0 answers

configure puma through rails command line

I want to be able to launch the rails server so that puma is configured to use ssl. rails s puma -b 127.0.0.1 works to bind it to an address and puma -b 'ssl://127.0.0.1:3000?key=/Users/bobby/.ssh/server.key&cert=/Users/bobby/.ssh/server.crt'…
bobbdelsol
  • 996
  • 6
  • 21
0
votes
1 answer

Capistrano how can i use two deploy.rb files

I'm working with project on local machine where internet connection is so slowly. For best testing i have another server in other place with fast internet connection. To test my projects i'm use capistrano with puma. But my client use production…
Sergio Belevskij
  • 2,478
  • 25
  • 24