Questions tagged [ruby-on-rails]

Ruby on Rails is an open-source, MVC web development framework written in Ruby, optimized for programmer happiness and maintaining sustainable productivity. Many things are defined by convention, freeing you from having to re-invent things to stay productive.

Ruby on Rails is an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration.

911 questions
3
votes
1 answer

Running Ruby methods via cron having issues

So I have a method that is run every 10 minutes (Background.cron) to be exact. Background.cron loops through a set of database rows and if certain criteria are met, an ActionMailer method is run to send out an email. But what seems to be happening…
Shpigford
  • 169
  • 1
  • 5
3
votes
0 answers

Determining Rails max threads and database pool size using Puma and NGINX

I noticed the default pool size for a Rails 5 App using Puma is equal to: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> Which means that you can establish a max number of threads as an environment variable or it will default to 5 database…
Jorge Cuevas
  • 131
  • 3
3
votes
0 answers

Server CPU at 100 Percent and not responding using PUMA and Nginx

My Server CPU is at 100 percent and not responding using PUMA and Nginx after one or two days. I use 4 workers. Up to now I had a look at the problem with strace, which leads to the following Output futex(0x20f0f64, FUTEX_WAKE_OP_PRIVATE, 1, 1,…
dan_0
  • 131
  • 2
3
votes
4 answers

how can we run multiple applications with different domain & port numbers in apache

I Have two applications running on my server with domains x.abc.com admin.x.abc.com x.abc.com is running on port 80 admin.x.abc.com is running on port 8080 I can able to access x.abc.com from browser, but when I try admin.x.abc.com, it is…
loganathan
  • 240
  • 2
  • 13
3
votes
0 answers

Should i run Rails behind Apache/nginx?

I am slowly approaching deployment of a company internal Rails application, and am trying to find out whether i should be running the application server behind Apache/nginx in production. Currently thin is being used as the Application server, but…
Vesther
  • 31
  • 1
3
votes
1 answer

Unable to deploy a rails application using eb cli

I recently updated my environments configuration to :64bit Amazon Linux 2015.03 v1.4.6 running Ruby 2.2 (Passenger Standalone). After deploying my application using eb deploy i now get an error in my var/log/eb-commandprocessor.log that…
3
votes
1 answer

(111: Connection refused) while connecting to upstream - Opsworks Rails 4

I deployed a rails 4 application in OpsWorks (Ubuntu 14.04, nginx and unicorn), when I open the homepage I'm getting a 502 Bad Gateway error. In nginx/error.log I can see this error: 2015/01/25 06:19:42 [error] 3652#0: *1 connect() to…
darkcode
  • 131
  • 1
  • 4
3
votes
4 answers

Execute a script while boot up in RHEL7

One of my server reboots every sunday and monday morning, whenever the server is up I need to do a service restart. Actually I call a script to execute itself (everytime manually). What I want to achieve is that it should be possible to invoke this…
serverstackqns
  • 764
  • 3
  • 16
  • 42
3
votes
2 answers

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 with to a Puma stack I get 502 Errors, my log files indicate that it can't find the sock file: 2014/05/15…
3
votes
2 answers

"768 worker_connections are not enough" error after a fresh installation of nginx and ROR

I have a fresh installation of nginx and ruby on rails. But it gives me a '500 Internal Server Error' while testing. The error.log for my app has the following: 2014/05/01 17:27:15 [alert] 1423#0: *6892 768 worker_connections are not enough while…
Purres
  • 239
  • 1
  • 4
  • 18
3
votes
1 answer

What does this log mean?

While my application is running (with a lot of traffic), I see this in error log but I dont even understand what it is about. I guess it's optimizing some configuration but I need a more formal explaination. App 13214 stderr: Trying: App 13214…
vutran
  • 153
  • 7
3
votes
2 answers

Explain load-balancing with Nginx like I'm five

I've found plenty of DIY posts and tutorials on how to configure Nginx as a load-balancer using upstream server: upstream backend { ip_hash; server 1.2.3.4; server 1.2.3.5; server 1.2.3.6; } server { location / { proxy_pass …
Cyle
  • 145
  • 1
  • 8
3
votes
1 answer

bundler: command not found: unicorn_rails

While restarting gitlab I get this: Starting both the GitLab Unicorn and Sidekiqbundler: command not found: unicorn_rails Install missing gem executables with `bundle install I installed gitlab 6.3.0 with ruby 1.9.3 on my centos 6.3 vm. I tried…
mirage
  • 221
  • 1
  • 3
  • 11
3
votes
4 answers

chef-server-webui session not working when access from external IP address

I have installed chef-server on an Ubuntu 12.10 system using the official .deb package for that release. After the installation had finished I run chef-server-ctl test Which reported success, 0 failures. The server - an Amazon EC2 instance - has 1…
hek2mgl
  • 282
  • 2
  • 15
3
votes
1 answer

What happens when Phusion PassengerMaxPoolSize is reached?

The subject of my post pretty much sums up my question: What happens when PassengerMaxPoolSize is reached? For Example: PassengerMaxPoolSize is configured to 40 based off our system specs What happens if all 40 sessions are active (processing a…
bmurtagh
  • 773
  • 2
  • 6
  • 13