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
7 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. ...
0
votes
1answer
54 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 ...
0
votes
0answers
77 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 ...
1
vote
1answer
44 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 ...
0
votes
0answers
13 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 ...
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
92 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
16 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 ...
1
vote
0answers
61 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
165 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
29 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 ...
2
votes
2answers
85 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
38 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 ...
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 ...
0
votes
1answer
179 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
1answer
24 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
0answers
23 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 ...
1
vote
0answers
40 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 ...
0
votes
1answer
64 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
50 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
254 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
71 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 ...
0
votes
1answer
124 views

MySQL replication or MySQL cluster?

Currently i'm running Rails 3 web application with MySQL on one first server and Rails API application on second server that connects to the MySQL database from first server. I'm not happy that API ...
0
votes
2answers
287 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
1answer
186 views

CSS & JS & images = 404 for WordPress blog in Rails + Nginx environment

I'm pulling out my hair on this one. You can see yourself here - http://starterpad.com/blog/ - that all the images, CSS, and JS files are 404 errors. The main StarterPad site (http://starterpad.com) ...
2
votes
1answer
798 views

(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 ...
0
votes
0answers
56 views

How do I configure Nginx/Apache for a single web application split between Rails and PHP?

Questions like this have been asked before, but I have yet to find one meeting my specific needs. We currently have hosting with Media Temple running CentOS 6.6. We have what's currently a PHP ...
0
votes
0answers
109 views

Gitlab 500 Error/ Error compiling CSS asset

I have a problem with my gitlab installation. When I go on my site it gives me a error 500, but when I go from a computer on my gitlab installation I get this error: Error compiling CSS asset ...
2
votes
1answer
43 views

Strange request every 2 seconds from local IP (127.6.205.1), which overflows logs (OpenShift)

I get a strange request every 2 seconds from 127.6.205.1. My production.log (Ruby on Rails) file looks like so: > ... I, [2015-01-16T15:05:23.491062 #79682] INFO -- : Started GET "/" for ...
0
votes
1answer
164 views

NGINX Permissions: 'sudo nginx' vs 'sudo service nginx start'

I'm doing a capistrano Setup here with nginx 1.6.2 and Unicorn. But Under my current setup nginx doesn't create the server i have written in con file. Im sure its a permission error for my user's ...
0
votes
0answers
161 views

Can't call the running rails app docker with boot2docker IP

I have been trying to test the Fig + Docker + Rails stack on my local machine which run MacOSX. All of my setups ( Dockerfile, Fig.yml ) and steps are exactly the same as demonstrated fig's official ...
1
vote
1answer
75 views

Apache server running Passenger can't display Rails app

I have a project that was pulled from github into my /home partition, and made symbolic links to the /var partition as per convention. How it looks : /home/vagrant/github/whois-dreyfus --> repo of ...
1
vote
1answer
145 views

Unicorn workers timing out intermittently

I'm getting intermittent timeouts from unicorn workers for seemingly no reason, and I'd like some help to debug the actual problem. It's worse because it works about 10 - 20 requests then 1 will ...
1
vote
0answers
117 views

Why does nginx+passenger not find some gems?

Why does nginx+passenger fail to start and print this into error.log? Could not find addressable-2.3.6 in any of the sources (Bundler::GemNotFound) ...
0
votes
0answers
215 views

Rails Passenger 403 forbidden

Unable to run my rails app. Have configured it using official documents. Have tried placing an index file in public folder. It works. Have tried to run rails app in production machine under ...
0
votes
1answer
131 views

Passenger Nginx Rails in debian 7 not working

I have installed Phusion passenger following official document : https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html#install_on_debian_ubuntu Following Steps are performed: ...
1
vote
2answers
37 views

Does a server use bandwidth when connecting to itself?

I have a dedicated server (CentOS 7) with Storm on Demand. I have a rails application running on the server served by nginx and unicorn. I'm using MariaDB on the same server. The rails app handles ...
0
votes
0answers
34 views

Run other applications alongside rails passenger app?

I recently created a rails app for my portfolio on an nginx server, I had to reinstall nginx to work with passenger. My portfolio works fine, but I can't seem to get another app to run alongside it ...
1
vote
1answer
309 views

Request timeout issue with nginx, unicorn and rails

I have an application in rails and it runs unicorn in production. There are some requests that take too long to process. I have configured the server to increase the timeout, so these request work ...
0
votes
0answers
88 views

JRuby on rails with sidekiq deploy on Java production server

I'm a RoR guy and for some time I've been stumbling with some clients who just won't install ruby (or rails) on their machine. For this I turned to jruby. I used warbler to make a .war file and ...
0
votes
2answers
2k views

403 Forbidden response on a ubuntu + nginx + passenger server

I'm trying to deploy my Rails app on my Digital Ocean VPS but I'm getting a 403 when I visit the IP adres. This is the output of my errorlog: [ 2014-11-02 04:18:12.0511 23504/7f64e6a36780 ...
0
votes
2answers
533 views

SSL/HTTPS issue (no padlock icon) on Safari when using ngixn+unicorn

I have an application that runs on nginx+unicorn. This is how my server block looks like upstream rtdev{ # fail_timeout=0 means we always retry an upstream even if it failed # to return a good HTTP ...
0
votes
2answers
159 views

nginx load balancing images not loading

Below is my load balancing configuration.my other servers contain nginx unicorn based application setup. When i tried above configuration the images are not loading. I have total three servers 1 ...
1
vote
0answers
75 views

EC2 Bad Gateway with torquebox and nginx

I set up an EC2 instance with torquebox and nginx. Torquebox starts without any errors, but I cannot access it at port 8080. Not even if I add a VPC rule to open that port. I get Gateway timed out if ...
0
votes
0answers
252 views

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

I installed Ruby 2.1.2 using RVM, and changed the nginx.conf file with the appropriate passenger_ruby and passenger_root paths, but my Rails application is still running on Ruby 1.9.3. Why is my Rails ...
0
votes
1answer
521 views

Does rails 4 asset_path helper uses asset.prefix?

I configured my rails app to use a different asset prefix, by editing the file conf/application.rb. +config.assets.prefix = '/wrapper/thing' It works for asset pipeline but when I try to use it on ...
0
votes
1answer
84 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 ...
0
votes
0answers
100 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 ...
0
votes
0answers
157 views

I Cannot Connect to PostgreSQL After Installing the Server App (OSX Mavericks)

(This is also posted in Ask Different.) I am running the latest version of Mavericks 10.9.5 on my Mac Mini Server. Before the upgrade to the latest version of the Server App 3.2.1 I was able to ...
0
votes
1answer
99 views

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...