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.

learn more… | top users | synonyms (1)

0
votes
0answers
96 views

nginx - PDF not displayed in Chrome's PDF plugin when using X-Accel-Redirect to serve the PDF

I followed this guide to setup X-Accel-Redirect on my Rails application. It works fine everywhere, except for PDF files in Chrome. Only in Chrome, the PDF just does not get displayed in the built-in ...
0
votes
0answers
31 views

Minimal Rails server OS for use with High Availability (XenServer)

I have multiple XenServers configured with High Availability. I have multiple simple Rails apps that talk to each other and form a higher purpose. I have a postgresql database. Is there any distro ...
3
votes
2answers
2k views

How to resolve high CPU + excessive stat(“/etc/localtime”) and clock_gettime(CLOCK_REALTIME) calls

I've been experiencing really high CPU on a ruby on rails app (see stack below) and have been trying to diagnose the possible causes to no avail. Stack: ruby 1.9.3 rails 3.2.6 Apache/2.2.21 (Debian)...
0
votes
0answers
44 views

Nginx/Passenger (with Rails, Capistrano and MongoDB replica set)

I've encountered a problem with a Ruby on Rails application that runs under Nginx/Passenger and connects to MongoDB replica set. Everything worked fine until suddenly the application stopped ...
0
votes
0answers
31 views

Domain name not working in AWS

I had previously hosted my domain in a different instance but for some reason I had to delete that instance and create a new one. I am now trying to host my domain in the new instance. So I went to my ...
0
votes
1answer
112 views

Puppet-Dashboard Doesn't Load With Ruby Gem Passenger 5

Has anyone encountered problem of running Puppet Dashboard on Ruby Passenger 5? If yes does it really work with that Passenger version? I've already setup and configured the necessary files required ...
2
votes
1answer
1k views

File descriptor limit in nginx/Passenger app

We're running a Rails app in Passenger 4.0.45 and nginx 1.6.0 (installed by Passenger installer) running on Ubuntu 14.04. Under heavy load Passenger restarts all of the application processes. After ...
-2
votes
1answer
160 views

How do I SSH through a jump server into a Rails console?

I'd like to have a one-liner for this. When I use the following command: ssh -o ProxyCommand='ssh -W %h:%p user@<jump server>' -t user@<rails server> 'sudo su another_user ; cd /some/dir ;...
4
votes
2answers
4k views

how to disable email confirmation in gitlab in private network

Recently I installed the gitlab for my LAN. When my users are trying to create their accounts they are getting email confirmation message. Now my question is I want to disable whole email confirmation ...
2
votes
1answer
2k views

Deleting a remote directory using capistrano

I am using Capistrano to deploy a Ruby on Rails application to a server. Everything is running up until the point when bundle install is called in which case I get the error "Some gems seem to be ...
0
votes
0answers
37 views

Getting vhost to work with phusion passenger

I have installed ruby and rails using rvm. I have nginx pre-installed using apt-get . I have tried installing using rvmsudo passenger-install-nginx-module but it tries to install new nginx server. I ...
0
votes
2answers
983 views

Starting Rails App with Phusion Passenger Standalone?

I am deploying a Rails application ( Project Fedena ) to a VPS at Digital Ocean. I can use either of mongrel_rails start and ruby script/server to launch my app with no problem. It binds to port :3000 ...
0
votes
0answers
72 views

Elastic Load Balancer Nginx and Rails

Currently we use Elastic Load balancer which hits Nginx then finally rails (nginx and rails both run on the app server). The idea is to use the connection pooling functionality of Nginx. Do we need ...
2
votes
2answers
2k views

Rails app (Redmine) on Phusion Passenger

I've installed mod_passenger for Apache on my Linux box. The module has compiled correctly and Apache seems to be loading it correctly (no errors with this side of things). BUt when I set up a vhost ...
0
votes
1answer
333 views

nginx-passenger shuts down, install double checked (updated)

I just setup a vps at Bluehost. Centos 6. For 2 days my nginx server closes and logs this: [ ... ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown) I ...
0
votes
0answers
85 views

Nginx Rails production suddenly stopped working

I am using Rails with Postgres and Redis running on Nginx on Centos7. I have encountered interesting behavior today, my production server became offline for some time. The server refused connections ...
2
votes
1answer
83 views

Is it really recommended to build Ruby from source on production servers?

I've seen all over the place people using RVM/rbenv to install the most updated version of Ruby on Linux. On development, I understand that it may be OK to do this, but I can't understand why would I ...
4
votes
1answer
663 views

Rails when served by unicorn is generating the wrong fingerprint for precompiled assets

I have a production server with nginx -> unicorn -> rails. I precompile assets, which puts assets in public/assets with a fingerprint (hash) appended to the filename. However, when a web page is ...
0
votes
1answer
49 views

Nginx passenger rails

On a EC2 with ubuntu 14.04 with nginx/passenger/rails came with this log on nginx: App 31063 stderr: * ERROR *: Cannot execute /usr/local/lib/ruby: Permission denied (13) App 31065 stderr: /...
0
votes
1answer
32 views

Nginx Passenger MySQL connects only locally

Fresh server, installed using the digital ocean guide here. Ubuntu 14.04 Passenger 5.0.18 Nginx 1.8.0 I can deploy my app to the server via capistrano no problem. I can also load the rails console ...
0
votes
0answers
73 views

Requesting HTTP API from Elastic Beanstalk causes 503 timeout on Heroku

Got a weird problem on our hands. We're calling a third party HTTP API hosted on Heroku. If we make the request through cURL locally, or we SSH into our Docker container on Elastic Beanstalk and cURL ...
0
votes
0answers
2k views

Rails application: SocketError (getaddrinfo: Name or service not known):

I have a Rails (Spree) application running on a Debian/Apache/Passenger server. I have just randomly started seeing the following issue when trying to access the admin area. I have tried changing my ...
0
votes
1answer
199 views

Rails app deploy on openshift

I'm trying to deploy Rails application no openshift (rails-2.0 + postrgesql). I think automatic deploy on git push didn't execute rake task db:setup and db:migrate, because I see PG::UndefinedTable:...
0
votes
0answers
200 views

Looking for error log in Nginx

When I try to sign up a user on my site I get a 500 error. On my local machine I can at least see what the error is, but in production I cannot. My controller returns a 422 error when a sign up is not ...
0
votes
1answer
462 views

AWS Elastic Load Balancer HTTP health check ping not reaching Rails application server

I have just inherited a Ruby + Rails application running on AWS Elastic Beanstalk, and it is currently using TCP for the Elastic Load Balancer health check. I wish to switch to HTTP, and actually hit ...
0
votes
1answer
88 views

Running multiple Ruby on Rails web apps on a single Azure VM

I have 5 Ruby on Rails web apps and I want to run them from a single Azure Linux VM in order to save expenses. Actually I wanted to run them as Web Apps but Ruby on Rails is not yet supported. I am ...
1
vote
1answer
66 views

Nginx basic auth on specific location [closed]

I have a rails app and would like basic Nginx Basic Auth on specific location and now I am doing it like location / { passenger_enabled on; proxy_set_header X-Real-IP $remote_addr; ...
0
votes
1answer
22 views

How could I access the auto scaling DB servers because not knowing the IP address

I put the web servers and db servers in different auto scaling group. Those machines in auto scaling group will be added or removed dynamically. Therefore, I have no idea about what's the db server ...
0
votes
2answers
2k views

Installing MongoDb on EC2

I'm trying to deploy a Rails 3.2.3 with MondoDb app to EC2. I've chosen t2.micro instance. However, I found out that to use MonboDb I have to use at least m1.large - https://aws.amazon.com/marketplace/...
-1
votes
1answer
53 views

How can I defend against malicious GET requests? [duplicate]

My server is getting hit with a variety if requests like the following: Started GET "/key/values" ActionController::RoutingError (No route matches [GET] "/key/values") Started GET "/loaded" ...
2
votes
1answer
179 views

Apache passenger setup - Multiple projects under same domain

I want to setup different projects under same domain with different ruby version for each app. Eg: example1.com is a main app which runs on Ruby 1.8.7 example1.com/tasks is another app which runs ...
1
vote
1answer
416 views

Nginx not responding with rails app deployed on aws ec2 instance using capistrano

I have a rails application deployed through capistrano on an aws ec2 instance and have passenger nginx installed on the server as well. Whenever I try and access my application using the DNS or the ...
0
votes
0answers
219 views

font-awesome not displaying on Nginx, Rails 4, mina/puma

I made some changes to the nginx config file and I now cannot see any of the font-awesome fonts on FF and Chrome. The fonts are precompiled and in this directory: /root/sites/mina_deploy/current/...
0
votes
1answer
143 views

How to host staging and production on the same server [closed]

I'm new to server administration and I've recently setup my rails app on a Linode server. I followed a similar configuration to the Ryan Bates railscast on the subject. With nginx, unicorn and Ubuntu ...
0
votes
1answer
495 views

(Passenger Agent) Signal received. Gracefully shutting down

I have a rails application that I am deploying on an aws ec2 instance, this is my first time using the Rubber Gem, for which I have followed this tutorial. After removing the default nginx ...
2
votes
3answers
2k views

Rails + Nginx + Unicorn multiple apps

I get the server where is currently installed two apps and i need to add another one, here is my configs. nginx.conf user www-data www-data; worker_processes 4; pid /var/run/nginx.pid; events { ...
0
votes
1answer
2k views

Production redis server has 100% cpu usage

My production redis server has gone mad and has been hogging up 100% of CPU usage. I have done everything that I can from upgrading redis server to restarting the machine. I can't figure out what's ...
0
votes
1answer
64 views

Nginx HTTPS config issue for non-wws

I need to configure nginx for one of my rails application to route some pages through SSL but facing problem with configuration. I've a SSL certificate where common name is example.com and my site is ...
0
votes
1answer
502 views

undefined symbol: sqlite3_initialize

When I try to deploy my Rails application to an Apache server using Passenger, I get the following error in the logs: undefined symbol: sqlite3_initialize I get the same error when just running ...
1
vote
2answers
2k views

Can't run webrick on port 80

I try to figure out how to point a.b.c.d:3000 to my domain name. Here, a.b.c.d is my IP address. As per this post: How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port I get the ...
2
votes
1answer
51 views

Posting url of rails application on FB without https replace meta tag description with “welcome to nginx”

I have a rails application deployed on an amazon ec2 ubuntu instance, configured with nginx which is working fine. The problem is when I try and post the url of the site on facebook without https ...
0
votes
1answer
100 views

Slow mongodb on ruby on rails

I have a ruby on rails application with mysql and mongodb (mongoid framework) running. I tested a load test with siege with the setting -c 60 -r 10 on one page which have 2 stationsong find queries. ...
1
vote
1answer
710 views

Ruby on Rails application throws SMTP Authentication Error

I'm developing a Rails app which when I run it locally, it's able to send emails through a gmail account via smtp. When I moved it to my server, it comes up with the following error for example when ...
0
votes
0answers
273 views

ruby on rails 404 not found after deployment

I'm getting a 404 not found error after deploying my rails app. I'm using: ubuntu, nginx, capistrano, & unicorn. These are my configurations: nginx.conf upstream unicorn { server unix:/tmp/...
2
votes
2answers
5k views

lost connection after STARTTLS: Postfix

I've setup a Postfix + Courier server and have a Rails app configured with the SMTP server settings. Whenever the Rails app tries to send an email, this is what appears in the Postfix log (additional ...
1
vote
1answer
1k views

EC2 Public DNS not working with HTTPS - Elastic Beanstalk URL is working

I have completely ran out of ideas to fix this issue. I've gone through just about every given solution to similar issues and nothing has worked successfully. I've successfully set up my Ruby on ...
1
vote
1answer
42 views

Proper way to start application servers

I'm not a server admin by any means...but run a few small apps and need to learn how things should work... I start all my stuff manually; mostly rails with puma/thin. When I reboot, I need to start ...
2
votes
1answer
220 views

Website offline message when server is unreachable

Is there a way to display a website offline/maintenance message to users who try and visit a website where the physical server is offline. The scenario: We have multiple client websites running at ...
3
votes
0answers
844 views

Coreos auto scaling with docker and fleetctl on AWS

I spent a lot of time evaluating different ways to deploy an application to the cloud (let's assume AWS for this question) in the last few weeks but couldn't really find a satisfying solution. We ...
3
votes
2answers
2k views

Why is my Rails application hanging?

I have a Rails application of moderate complexity running under Apache/Passenger which becomes unresponsive after periods of idleness. It takes several minutes to respond, but can be temporarily ...