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

0
votes
1answer
110 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
65 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
233 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
549 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
236 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
103 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
36 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
134 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
132 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
111 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
89 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
57 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
307 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
519 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
74 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
1answer
1k 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
63 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
450 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
190 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
382 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
31 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
66 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
88 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 ...
0
votes
1answer
479 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
638 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
179 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
161 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
66 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
107 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
27 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
156 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 ...
1
vote
0answers
315 views

Mongrel failing to start after an OS update

So there's this installation on a virtual server, administered by Plesk, running CentOS. The OS has been automatically updated recently - this broke a custom ruby installation. I haven't set up the ...
0
votes
1answer
137 views

Vagrant - Unable to up instance due to “librarian” not found (even though it's installed)

Quite a strange problem I'm having, basically I type "vagrant up" and I'm immediately presented with: Gem "Librarian" was not found. Try running `vagrant gem install librarian --no-ri --no-rdoc` Of ...
0
votes
1answer
84 views

github push -> redmine issue duplicate comments

I've successfully connected github to redmine and whenever someone puts an issue reference in a commit message and pushes it to github, a comment is added to the redmine issue referring back to the ...
0
votes
1answer
275 views

Why do I get “Error 'configure:3485: error: C compiler cannot create executables'” when I install Ruby 1.9.3 on Fedora 12?

When trying to install Ruby 1.9.3 on Fedora 12, following "Complete Guide to install Ruby 1.9.3 on CentOS", I get the following error when running the command ./configure: $ ./configure checking ...
0
votes
1answer
338 views

Chef rbenv cookbook recipe user not found

I have a problem with Chef rbenv cookbook. Once I start to bootstrap a server it gives me a error: could not find user recipe for cookbook rbenv But the recipe is in the recipes folder. I can not ...
1
vote
1answer
141 views

Puppet: build DNS file from node config (or: how do I iterate over node variables globally)

I also use puppet for my nodes. I am also running a (BIND) dns server. Would it be possible to use the $aliases variable I have for each node in a template for the DNS module? My nodes look like ...
1
vote
1answer
2k views

Why can't I connect to my PostgreSQL database?

I'm trying to install tentd-admin. The install fails during this step: $ DATABASE_URL=postgres://localhost/tent_server bundle exec rake db:migrate I also tried this: $ ...
0
votes
1answer
39 views

Options for Executing Scheduled Scripts on a PHP Server

I have a server that I've setup running PHP. This serves JSON files and is running fine. I also have several scripts that reads data from an outside source, connects to my MySQL Database Server, and ...
1
vote
0answers
417 views

Ubuntu, ruby 2, rails 4

I'm trying to setup a server, which has Ubuntu 10.04 LTS, Ruby 2.0.0-p0 and Rails 4 beta1. I can get everything installed but rails 4 has a slight error and I'd like to get someones opinion. When I do ...
0
votes
1answer
232 views

Redmine (RoR rack app) on uWSGI forgets sessions when ran with more than one process

When I log into redmine it forgets that I was logged after first click on any link or immediately after the login redirect. After I refresh the page a few times, I am still logged in in some of this ...
0
votes
1answer
173 views

RPM Package a ruby project

I want to package a ruby program that I get from git into a RPM package. I have at my disposition a build server and a production server (Same OS / Same Arch). As most ruby project, mine does have ...
0
votes
1answer
116 views

Unicorn Shared Socket

Is it possible to have a unix socket across a network? Is it possible to have multiple application servers running unicorn use that same shared socket? The setup I'd like to achieve would look like: ...
0
votes
1answer
146 views

Gitorious - ActionController::UnknownHttpMethod when logging in?

I'm going to install Gitorious as a slave server for failover purpose follow this blog post. gitorious.conf NameVirtualHost *:81 <VirtualHost *:81> ServerName gitorious.domain.com ...
0
votes
1answer
279 views

Trouble installing Redmine on CentOS 6.2 - undefined method db for main:object

I am trying to install RedMine on CentOS 6.2 but I am running into difficulties when I try to access the site. Using this guide, I have configured the following in environment.rb: # Load the rails ...
0
votes
2answers
68 views

Running recipe name

In Chef, is possible to get the recipe name when this recipe is running? I want to add recipe name on logging/debugging. Something like: Chef:Log.info "#{recipe_name} xxxx"
1
vote
2answers
210 views

How do I completely remove all Ruby gems?

I am trying to completely remove my Ruby and Rails installation. After uninstalling Ruby with apt-get remove ruby1.9.1 I see that all the Ruby stuff like ruby, rake and irb from "/usr/bin" was ...
1
vote
1answer
204 views

configuring Munin for Nginx 1.2.4 on ubuntu 10.04 ubuntu ec2 instances

I am running my ruby on rails app ubuntu 10.04 ec2 instance and I am using nginx 1.2.4. I am trying to configure munin to get stats fron nginx, I have recompiled nginx and its working fine but I am ...