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

Unresponsive socket after x time (puma - ruby)

I'm experiencing an unresponsive socket in with my Puma setup after random time. Up to this point I don't have a clue what's causing the issue. I was hoping somebody over here can help we with some answers or point me in the right direction. I'm…
Niels
  • 599
  • 5
  • 28
0
votes
0 answers

Rack::Timeout on Heroku/Puma when static assets are loaded for first time in awhile

I'm having a problem that I'm having trouble diagnosing or reproducing. I'm running a Rails 4.0 app on Puma 2.13 with Rack Timeout 0.2.4 deployed to Heroku on a paid hobby dev plan that should never sleep. I'm finding that when I access the site…
Daniel Bonnell
  • 4,817
  • 9
  • 48
  • 88
0
votes
1 answer

ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8) with portuguese brazilian characters

I'm trying to deploy an application on an Ubuntu 14.02 server with NGINX and PUMA and when I try to access static pages on the server with characters in brazilian portuguese and WITHOUT access to the database, the page is not showed and the…
0
votes
2 answers

Error 500 access in rails app with puma and nginx

I have 6 containers to create my own application with microservices. In this project I have an example app. The problem happens when I try to access to the URL (http://localhost:80/) the browser returns error 500 with message: return We're sorry,…
kalelc
  • 1,507
  • 1
  • 18
  • 33
0
votes
0 answers

Puma prints huge unruly output in terminal and runs slowly in development

What is going on with this dump when I am running Puma for my Rails server in development. I find my app starts being really slow in development and I have to restart the server every once and a while. So I'm curious about what is going on with this…
spitfire109
  • 9,651
  • 3
  • 20
  • 28
0
votes
1 answer

Rails app error connection refused - nginx & puma

Following this guide - https://www.digitalocean.com/community/tutorials/deploying-a-rails-app-on-ubuntu-14-04-with-capistrano-nginx-and-puma yesterday I deployed an application successfully. Today I tried to do just the same and when entering the…
mohnstrudel
  • 639
  • 8
  • 22
0
votes
2 answers

SSHKit::Runner::ExecuteError: Exception while executing on host

Trying to deploy a rails application to digital ocean following this tutorial: https://www.digitalocean.com/community/tutorials/deploying-a-rails-app-on-ubuntu-14-04-with-capistrano-nginx-and-puma but keep getting an error: cap…
Alex Onozor
  • 6,841
  • 1
  • 22
  • 26
0
votes
1 answer

rails add lib to eager_load_paths without specify directory

I found that autoload_paths cause circular dependency in production, so i put lib to eager_load_paths. config.eager_load_paths << Rails.root.join("lib") But i have a active_record template file, which path is…
LcpMarvel
  • 203
  • 2
  • 8
0
votes
1 answer

puma production server in background: omniauth logging to stdout failed cause error

I am using rails + puma as my production server. I used httpd to set up virtual machine and forward request to localhost:3000. And the command I used to start up my puma server is(inside the app folder already) puma -e production -p 3000…
Junchao Gu
  • 1,815
  • 6
  • 27
  • 43
0
votes
1 answer

Rails server not loading static images despite 'config.serve_static_assets = true'

I'm running a rails app which serves some small images statically (like the site logo and background texture). I'm storing these images in /public/images/. Everything has been working fine until recently, but now suddenly the server is responding…
Bez_almighty
  • 105
  • 10
0
votes
0 answers

How can I run puma server on boot instead of crontab

I wonder what's the better practice to run rails server with Puma and nginx on reboot. because my crontab doesn't work. I want to learn how to run the server automatically in other…
user3675188
  • 7,271
  • 11
  • 40
  • 76
0
votes
1 answer

Websockets with Rails(Puma) - Error during WebSocket handshake: Unexpected response code: 200

I am trying to use websocket in my Rails4.1 application Here are some relevant code snippets: Gemfile: gem 'websocket-rails' gem 'puma' development.rb config.middleware.delete Rack::Lock I am starting the server locally as: bundle exec puma -p…
codeObserver
  • 6,521
  • 16
  • 76
  • 121
0
votes
1 answer

Activerecord error: Mysql2::Error: MySQL server has gone away

i've looked into previous questions which look similar to my problem, nothing seems to be related. After doing the following query: Runner::Models::Job.where(:id => job_id) I get an exception, it happens once in a while: Mysql2::Error: MySQL server…
gal
  • 759
  • 1
  • 12
  • 26
0
votes
1 answer

Assets precompiled but not showing with puma & nginx (Rails 4)

In my local machine when I do: RAILS_ENV=production bundle exec rake assets:precompile RAILS_ENV=production bundle exec puma -e production Everything works fine. However I have the exact same app in a docker container for production that runs with…
Badr Tazi
  • 749
  • 1
  • 6
  • 20
0
votes
2 answers

Rails project located at port 8080 while nginx at port 80

I have deployed my Rails app to VPS (DigitalOcean). I have installed NGINX that will handle all my static css, js and html files. I have uploaded my project via capistrano. When I open my page at example.com it shows me page Welcome to NGINX. I can…
Mr.D
  • 7,353
  • 13
  • 60
  • 119