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
5 views

rvm losing alias value

Using RVM to manage Rubies on a server, and we set up RVM aliases, like so: rvm alias create MyAlias ree-1.8.7-p2010.01 which can be seen (and used) after we create them. rvm alias list MyAlias ...
0
votes
2answers
1k views

500 error with deploying rails application via apache2+passenger

I finally completed my own app, so the only work left is deploying the app. I'm using Ubuntu 10.04 and apache2(installed by apt-get), so I'm trying to deploy through passenger. I installed passenger ...
0
votes
0answers
11 views

Passenger+Nginx instances fail to keep rails' uniqueness true

I have multiple Nginx+Passenger instances conf here and many models (more than 40) that has validations on uniqueness. e.g. class Ssid < ActiveRecord::Base validates :name, :presence => true ...
0
votes
0answers
8 views

Using ProxyPassReverse in Apache 2.4 to run in front of Gitlab, how would I also enable User Directories in Apache?

I'm using Apache 2.4 to proxy with the gitlab omnibus package generally following this strategy from the gitlab recipes. I also want to have User Directories, like /~username using mod_userdir. To ...
1
vote
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
423 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 ...
0
votes
0answers
15 views

Rails app with nginx passenger: recv() failed (104: Connection reset by peer) while sending to client

I've searched both StackOverflow and ServerFault, but almost every Q/A is about "while reading response..." for the 104: Connection reset by peer, and not "while sending to client". This is what my ...
0
votes
1answer
1k views

Rails 3 passenger nginx application spawner server error on Synology NAS

Question updated, please read UPD2. I'm trying to deploy app through passenger nginx module on DS710+ (ruby 1.9.2p0 installed). There is syntax error relative to ...
0
votes
2answers
1k 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 ...
-1
votes
0answers
9 views

Rails server not working showing “TCPServer Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.”

My server was working fine until this happened. Please help me out on this. I don't know why this error is coming. => Booting WEBrick => Rails 4.1.8 application starting in development on ...
1
vote
1answer
2k views

Rails program is not being run on apache + passenger - only directory listing

I have successfully installed Phusion passenger + Apache 2 + Rails 3.1 program + git on a linux Debian 6. I ran passenger-install-apache2-module and followed the configuration instructions. I followed ...
2
votes
1answer
26 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
16 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
519 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
51 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 ...
4
votes
1answer
834 views

Creating a docker container from a capistrano deploy

I'm having a bit of a difficult time understanding how I can leverage my existing infrastructure code with Docker. I have a Ruby on Rails app that uses capistrano to push out deployments. I want to ...
1
vote
2answers
2k 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 ...
0
votes
1answer
83 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
24 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
138 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 ...
0
votes
0answers
166 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
1k 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 ...
1
vote
1answer
509 views

Ruby Enter Your Password to Create App

I have just installed ruby on rails on a Centos server with directadmin following http://blog.ilwilliams.net/installing-rails-3-with-apache-on-centos/ I'm now in a non privileged user account ...
1
vote
1answer
95 views

Error 'you must supply a name when declaring a config resouce' when deploying a rails app to OpsWorks

When moving a rails app from engine yard to OpsWorks, I am getting the following error: Error executing action `deploy` on resource 'deploy[{{ app path }}]' you must supply a name when declaring a ...
2
votes
2answers
108 views

SELinux - logrotate is not rotating NGINX logs

I am using CentOS, NGINX and Passenger to serve a Rails application. I have SELinux activated, and have had a series of problems with logrotate. I have been able to resolve most of the issues by ...
0
votes
0answers
17 views

What could cause Ruby's free heap slots to rapidly increase?

I'm diagnosing why our Rails servers seem to leak memory. In looking at New Relic today, I noticed that "Free heap slots" of our Ruby VMs seems to jump from almost nothing up to the baseline level of ...
3
votes
2answers
646 views

Restore a versioned S3 bucket to a particular point in time

Let's say I've got S3 versioning enabled for my bucket: http://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html Then, let's say someone (for example, junior employee) messes up the S3 bucket ...
1
vote
3answers
404 views

Nginx + Unicorn multiple apps with locations - routing

I would like to run multiple rails apps with just using different location blocks. Different unicorn workers are started and configured, they are working just fine. Every app is under the same ...
2
votes
3answers
2k views

Config Subdomain to point to heroku app

I have to host a subdomain of my domain to heroku app. For example abc.com points to a Hostgator account. I want to configure app.abc.com to heroku app. The domain is registered with godaddy. Can ...
1
vote
0answers
24 views

Nginx user uploaded SSL Certificates

I'm wondering what's the best way to let users upload their SSL certificates. I have a multitenant application based on rails/passenger/nginx and I need each user to use his own domain with his SSL ...
0
votes
0answers
156 views

Nginx and passenger request timeout (nginx status code 499)

DISCLAIMER: I have read numerous posts here, on stackoverflow and other pages and I could not come up with a solution, so hopefully this helps. We are running a Rails App on Passenger together with ...
-1
votes
1answer
19 views

Running Rails Application as root user on nginx [closed]

My application(running on nginx) is unable to ssh into a remote machine, reason being that the client has has given ssh rights only to the root user on their server. While debugging this issue, I ran ...
3
votes
4answers
298 views

Excessive hosting costs

A client of mine is getting billed around ~$1400 per month for hosting. However the site is only averaging roughly 200 hits per day and it serves no large files nor videos. It's hosted with ...
0
votes
1answer
117 views

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 ...
1
vote
0answers
77 views

Unicorn restarts with same PID on USR2

Having recently migrated our Rails app to MRI 2.2.0 (which may or may not be related), we’re experiencing problems with our Unicorn zero-downtime restarts. When I send the USR2 signal to the master ...
0
votes
0answers
214 views

Apache 2.4 & Phusion Passenger generating 403 Error

I'm trying to setup a Rails application (Project Fedena) on the following Server configuration. I am using the virtual host configuration below. I get a 403 when I visit the IP/Domain. There's only ...
0
votes
0answers
36 views

nginx/passenger returns 503 on long running request

I have a standard nginx / Passenger setup for a Rails 4 app. Sometimes there is a request that will take a lot of compute (30s+ to complete), nginx will return 503 after some short time. I already ...
0
votes
0answers
61 views

Request with large header failing

I have rails app running on Nginx/Unicorn/Ubuntu. Nginx is setup with Unicorn as an upstream as follows: upstream unicorn { server unix:/path/to/sockets/unicorn.sock fail_timeout=0; } and ...
0
votes
1answer
238 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 ...
1
vote
0answers
553 views

Installing a Ruby On Rails Application (fedena) on an ISPCONFIG 3 site [closed]

I have a debian squeeze box running ispconfig 3. I am trying to install an application made in ruby on rails Project Fedena Install. According to that installation, it looks like it will only work if ...
0
votes
1answer
26 views

Nginx location redirecting improperly

My nginx.conf: http { include mime.types; default_type application/octet-stream; # click tracking! access_log /var/log/nginx/nginx.access.log combined; sendfile on; tcp_nopush on; # ...
0
votes
2answers
363 views

Cannot install rmagick after server update

I'm running a debian server and upgraded all packages after quite a while (apt-get update, apt-get upgrade, apt-get distro-upgrade). Then rmagick didn't work anymore becuase imagemagick was updated. ...
0
votes
0answers
26 views

passenger-memory-stats doesn't show Private memory consumption

I get ? marks in Private section. What can be the reason? # passenger-memory-stats Version: 4.0.48 Date : 2015-02-21 04:38:29 +0700 ---------- Apache processes ---------- PID PPID VMSize ...
4
votes
1answer
249 views

How do I increase the logging level for Puma?

Currently I am only getting ActiveRecord and view-rendering output in my Rails application log file, since I switched to Puma from WEBrick. I haven't been able to find where I can modify the output ...
1
vote
0answers
59 views

Access denied for creating user on LDAP

I have a web application that needs to be able to create users on a LDAP. I have created a cn=intranet,dc=example,dc=com and I need it to be able to add users unside ou=People,dc=example,dc=com. So I ...
2
votes
1answer
834 views

Reverse Proxy (mod_rewrite) and Rails (absolute paths)

I have front end rails app, that reverse proxies to any of a number of backend rails apps depending on URL, for example http://www.my_host.com/app_one reverse proxies to ...
0
votes
1answer
77 views

VPS policy states CPU usage limitations

I have found a cheap vps solution to cover my needs. Reading through the policies of the vps service, I found that they state "CPU usage should not exceed 70%". Is there a way to prevent this? I plan ...
1
vote
1answer
64 views

ProxyPass in nginx

I am trying to proxy_pass in nginx with the following configuration: location /abc_service { proxy_pass http://127.0.0.1:3030; proxy_set_header Host $host; proxy_set_header ...
3
votes
1answer
297 views

NGINX Unicorn 504 Gateway Time-out

I try all what I found in the Google by this question, but - nothing. It doesn't work anyway. My NGINX default: upstream app { server unix:/tmp/unicorn.rails.sock fail_timeout=0; } server { ...
0
votes
1answer
77 views

mina deploy failed from Vagrant Ubuntu/trusty32

I'm new to rails. Have spent this whole morning trying to debug this strange problem. I am trying to deploy my rails application using mina to a staging server. My server is Ubuntu/trusty32 14.04 ...