Ruby is a general-purpose object-oriented open-source scripting language. It sees a high degree of use in the configuration management space, and is popular for web development due to the high adoption of Ruby On Rails

learn more… | top users | synonyms

1
vote
1answer
378 views

Installing Phusion Passenger with Ruby 2.1.0

I'm following the guide for installing Passenger on Ubuntu, but when running sudo apt-get install libapache2-mod-passenger it tries to install Ruby 1.9.1. I already have Ruby 2.1.0 (installed via ...
1
vote
3answers
4k views

Ruby Install on CentOS

I’m trying to install Ruby on Centos-6.4 64-bit as following: mkdir /tmp/ruby && cd /tmp/ruby curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | tar xz cd ...
1
vote
1answer
274 views

Bootstrap Chef on Vagrant Box

I'm trying to bootstrap a Vagrant box using hosted chef server. knife bootstrap testbed001.me --sudo -x root -N "testbed001" However, the command throws an error: Bootstrapping Chef on ...
1
vote
1answer
406 views

Continue Bundler Installation

I'm trying to install Gitorious on Debian Wheezy. gitorious uses bundler for automated installation. When I run "bundle install" (not only when installing gitorious, also redmine for example) I ...
0
votes
0answers
162 views

Tips on reducing 500 Internal Server Errors between Apache & a thin cluster on a separate machine

I'm running a Ruby on Rails web service on multiple machines. The Apache web server is on one virtual machine and the thin application servers are on a second, the Postgres database is on a third. I ...
1
vote
1answer
60 views

Why can't I run wbadmin from a Ruby script

I can run wbadmin from the command line like this: $ c:\windows\system32\wbadmin.exe -? And it works (I get a proper help message, ellided here). However, when I try it in Ruby (as in this IRB ...
0
votes
0answers
205 views

redmine in subfolder issue (Apache, mod_passenger, Ruby + Drupal site in main folder)

I have Redmine in subfolder /var/www/redmine and Drupal in folder /var/www/ When I go to URL mysite.com/redmine, Redmine shows ok, but mysite.com/redmine/login is (over)handled by Drupal. Apache ...
1
vote
0answers
750 views

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 ...
0
votes
1answer
688 views

Nginx, Passenger, Rails serving static files but not running app

I've seen other similar questions but none with satisfactory answers, so here goes. I've installed Ruby, Rails, Nginx and Passenger and tried to configure it to all work together. Here is the ...
2
votes
1answer
885 views

A chef recipe to install ruby 1.9.3 system wide without rvm nor rbenv

I'm looking for an Opscode Chef cookbook that installs system-wide Ruby version 1.9.3, patch-level latest at the time of the run_list execution. Have done some research and there is a Brightbox PPA ...
0
votes
0answers
34 views

Using Ruby on share web hosts

We are developing a Wordpress theme and we are going to publish it on themeforest.com. We are using Sass(scss Syntax) as our CSS Preprocessor and we need to compile it on server side. We have two ...
0
votes
1answer
49 views

Why is cron using a different Ruby than my user and how to fix it?

I have a cron job that is a Ruby script. The problem is that the ruby executable is different than expected. Ruby was installed from source so it should be the new global default. $ ssh ...
0
votes
1answer
1k views

Organize code in Chef: libraries, classes and resources

I am new to both Chef and Ruby and I am implementing some scripts to learn them. Now I am facing the problem of how to organize my code: I have created a class in the library directory and I have used ...
0
votes
1answer
1k views

Could not find rake-10.1.0 in any of the sources

I've got a ruby on rails application (gitlab) which is installed via puppet. Everything on the test system runs fine, but production generates an error about rake Running ...
2
votes
1answer
141 views

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 ...
0
votes
1answer
707 views

Starting command on boot with correct user env vars

I am attempting to create a start-up script that will run this command on boot for my ubuntu 12.04 server: bundle exec thin -R config.ru start -p 3030 When I run it as a regular user it works just ...
-2
votes
3answers
213 views

Can I safely uninstall Ruby?

I wish to remove non-critical packages to limit exposure to potential security vulnerabilities. I never use Ruby. Does removing Ruby will increase security or break other parts of the system ?
0
votes
1answer
152 views

Cannot run grack, passenger occurs error: uninitialized constant GitHttp (NameError)"

I trying to setup web server for publish git repositories on successfully installed and worked redmine server. Passenger occurs error: Web application could not be started uninitialized constant ...
0
votes
1answer
110 views

VPS apache config - Invalid command 'PassengerDefaultRuby' after adding latest passenger gem

used to have this list of rubies in my vps: ruby-1.9.2-p320 [ i686 ] =* ruby-1.9.3-p194 [ i686 ] ruby-1.9.3-p374 [ i686 ] ruby-1.9.3-p392 [ i686 ] today I installed a new app on this vps ...
0
votes
1answer
371 views

Creating an EC2 instance with Ruby SDK without ephemeral storage

I use the Ruby AWS-SDK to create EC2 instances like this : instance = ec2.instances.create({ :image_id => WORKER_AMI, :instance_type => instance_type, :key_name => ...
1
vote
3answers
1k views

Can you install puppet without ruby 1.8?

I need to install puppet 3.2.0 or greater along with ruby 2.0.0-p247 on an ubuntu 12.04 server. Is there no way to install puppet without ruby 1.8? Most my experience comes from CentOS so I may ...
0
votes
1answer
408 views

Chef 11 node attributes available and ordering

In Chef 10 I have a number of roles which set custom node attributes like "appname": "my_rails_app" The attribute is then used to load app specific variables in a wrapper cookbook. There are ...
2
votes
1answer
226 views

Most appropriate place for custom Puppet facts - RHEL

I'm not much of a Ruby guy, but found how to list the Ruby load path. Here's what it looks like for me $ ruby -e 'puts $:' /usr/lib/ruby/site_ruby/1.8 /usr/lib64/ruby/site_ruby/1.8 ...
1
vote
0answers
82 views

Install gems of ruby 1.9 bins without suffix in openSuSE

I got issue on my openSuSE instances. By default in openSuSE after installation by gem utility (gem install some_app) you will got something like that: # some_app1.9 # chef-solo1.9 etc. That a ...
3
votes
1answer
188 views

Who should own the god process?

I have a stack running on ubuntu consisting of a Rack application written in Sinatra and GrapeAPI. The application stack includes Redis, Postgres, Nginx and unicorn. I want to use god to handle ...
0
votes
1answer
159 views

When should Passenger, Unicorn, and Rack be used? [closed]

Reading about Puppet often Passenger, Unicorn, and Rack are mentioned, but I can't figure out what the purpose of these are. The website for Passenger says: Phusion Passenger is a web server and ...
3
votes
1answer
185 views

swap space when installing phusion passenger

I tried to install Phusion Passenger and since I had less than 1GB free memory it recommended temporarily adding swap space with there commands: sudo dd if=/dev/zero of=/swap bs=1M count=1024 sudo ...
1
vote
2answers
131 views

Redirect output from cron in real time, not after program has finished?

I have a ruby script that writes to STDOUT and sometimes STDERR. I am running this script every 5 minutes via a crontab: */5 * * * * /root/myscript.rb >> /var/log/myscript.log 2>&1 What ...
1
vote
1answer
98 views

Easier way to apply one condition to a set of Chef resources

In this part of a Chef recipe, there are 4 execute resources. They should only run when a file does not exists. This is added as a condition to the first resource, which then triggers the entire chain ...
1
vote
1answer
561 views

Yum install libyaml has depsolving problems

Trying to get ruby up and running on a centos 5 box. yum install libyaml-devel Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed ...
1
vote
2answers
2k views

Activesupport gem complains that it needs ruby 1.9.3 while it is already installed

I have problem installing paperclip gem in Ubuntu 12.04.2 LTS. Activesupport complains that it needs ruby 1.9.3 but I have it already installed. root@Ubuntu-1204-precise-32-minimal ...
1
vote
1answer
789 views

Execute gitlab sidekiq (rake task) with upstart

I'm trying start the gitlab sidekiq daemon through upstart. But unfortunately it seems that the sidekiq worker is respawned since sidekiq start deamonizes itself: Jul 12 17:26:42 git kernel: ...
0
votes
1answer
109 views

Ruby: hide WEBrick httpd version

I using OpenVZ Web Panel to manage my VPS servers and when I scanned my server with nmap I saw: PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 6.0p1 Debian 4 (protocol 2.0) 135/tcp filtered msrpc ...
1
vote
2answers
2k views

GitLab & nginx: 502

I've installed GitLab, following the given official instruction, but I'm getting 502 error when trying to use it. Nginx log entry: *30 upstream prematurely closed connection while reading response ...
0
votes
1answer
79 views

How to use a common library of environment variables among different languages?

We have three main languages with which we perform system tasks: Bash, Ruby, and PHP, and Perl. Four, four main languages. We use managed environment variables to provide authorization info that ...
0
votes
1answer
568 views

Bringing up EC2 instances with vagrant-aws errors

I'm trying to automate acceptance testing by using vagrant to bring up machines with amazon's EC2 service, so I added the dummy box and copied the Vagrantfile off Github, but when I try to run vagrant ...
0
votes
1answer
1k views

Passenger 4 preloader hangs

I set as usual a VM with a standard configuration of Apache + Passenger hosting a Rails 3.2 app. The app is working with Sphinxsearch 2.0.4 via the thinking sphinx gem. After the deploy, at first ...
0
votes
0answers
228 views

How to fix rubygems.rb:1070:in `require': closed stream (IOError)?

I deployed a Rails app to a Red Hat server. It worked fine for over a week and then the server was automatically restarted during the weekend and now the app won't work. I was getting this error: ...
0
votes
1answer
634 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
33 views

RVM autolibs for rubies in production environments

In production, once I was used to add some utility packages (like curl, ssl etc.) to the RVM distribution before installing rubies, just to be sure that no missing libs requirements warning or errors ...
1
vote
1answer
134 views

require a gem in a ruby script fails at boot time

I am booting using a machine using chef. I need it to install a init.d script which it does and when the script is invoked at the end of chef run the script fails on the require 'daemons' line (shown ...
0
votes
1answer
165 views

RVM Not Finding Library

I am running CentOS 5.9 and installed RVM on it. However, whenever I run rvm requirements or rvm install 1.9.3, I get: --> Processing Dependency: libyaml-0.so.1()(64bit) for package: libyaml-devel ...
1
vote
1answer
814 views

Best practice for setting up RVM, Passenger/Apache with multiple Rubies and running as specific users?

My goal is to run ruby applications under different server users with potentially different versions of ruby. So i would have users that serve as the "hosting account" essentially. Document ...
3
votes
2answers
921 views

How to make Chef-Server use Ruby 1.9 on Ubuntu?

I've installed Chef Server on Ubuntu 12.04 using the official instructions, which uses the "omnibus installer" that has embedded ruby 1.8.7. I'm trying to install knife-windows, but when I run gem ...
0
votes
1answer
247 views

RubyGem installation can't find header files

I'm running Ruby 1.9.3 on CentOS 5.3. I installed it by compiling Ruby 1.9.3 from source, along with libyaml. I'm also using rbenv to manage versions, so I placed the compiled installation in ...
1
vote
1answer
210 views

Postfix piping to a ruby script. Is a new ruby process created for each email?

I'm writing a ruby script to process incoming email for a specific email address using a transport. Postfix transport table me@example.com ruby-script Postfix master file ruby-script unix - ...
1
vote
0answers
98 views

Best way to profile Unicorn workers?

I'm trying to get a better picture of what my Unicorn workers are doing. Are they blocked on calls to other services for a significant portion of their cycles? Are they free most of the time? The ...
1
vote
1answer
110 views

VPS setup for hosting more than one app (via VMs?)

First of all, I’m not an admin, so excuse me if my questions are kinda obvious/lame – I’m just a ruby programmer, which would like to host few apps on his server;) Lets say, that I’ve got 3 ...
0
votes
1answer
28 views

How do I manage Ruby installations on production machines with sparse resources?

I have a virtual Debian host with about 256MB RAM running a little Rails application that won't need more. As Ruby 2.0 is coming along, it should be upgraded in the near future. The last time I ...
0
votes
2answers
298 views

mysql gem broken in debian testing?

I've been trying all night, and so far have been unable to compile the mysql gem for ruby on my Debian Testing 64Bit system. I believe it is because I have the openssl v1.0.0 library installed. Here ...