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
163 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
111 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
350 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 ...
1
vote
1answer
503 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
175 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
45 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
439 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
291 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 ...
1
vote
1answer
266 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
164 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
186 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
358 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
118 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
422 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
244 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 ...
0
votes
0answers
865 views

vagrant - Could not find chef

New ubuntu 10.04 vagrant setup, and trying to run vagrant up $ vagrant up [default] VM already created. Booting if it's not already running... [default] Clearing any previously set forwarded ...
1
vote
1answer
316 views

Bundler (or Ruby) mangling require paths

About 50% of the time, when I run bundle (or bundle exec foo) I get an error like the following: > bundle ...
0
votes
2answers
190 views

Install Ruby and Rails on Debian Squeeze

We have a Linux (Debian Squeeze) server in production, currently running apps on a LAMP stack. I now need to bring over an existing RoR app from a different server onto this new server and get it ...
1
vote
1answer
396 views

Puppet - Call custom function (which contains case/when) from manifest

I am working on puppetizing my httpd and nginx vhost confs. Right now I have 5 servers which each have their own port and are run on server1, while nginx is running on server2. Obviously I need to ...
3
votes
1answer
507 views

SSH 'connection reset' when attempting multiple simultaneous outbound connections to the same host

I have a script that executes a Rake remote task which executes once for each of two roles. Both roles are users on the same Vagrant instance. So essentially the task is opening two SSH connections ...
0
votes
1answer
2k views

Chef / ruby / erb files - How does this example code work?

I am working on a custom bootstrap template, based on a sample template. I am looking at the example of getting the validation key from the workstation to the brand new server, and from what I can ...
-2
votes
1answer
523 views

shift a localhost site from webrick localhost:3000 to apache2 passenger localhost/redmine or redmine.localhost [closed]

I have installed application called REDMINE on my localhost, using ruby on rails. It is accessible webrick script through localhost:3000, on my PC. Now I want to shift to apache2 passenger, I tried ...
1
vote
3answers
1k views

How should secret files be pushed to an EC2 (on AWS) Ruby on Rails application?

How should secret files be pushed to an EC2 Ruby on Rails application using amazon web services with their elastic beanstalk? I add the files to a git repository, and I push to github, but I want to ...
1
vote
2answers
731 views

Linux: find thin server running on port 80 and kill it

On my Linux server I ran: sudo thin start -p 80 -d Now I'd like to restart the sever. The trouble is, I can't seem to get the old process to kill it. I tried: netstat -anp But what I see on port ...
-1
votes
2answers
283 views

rvm doesn't install in centos without root privileges [closed]

I trying to install RVM using deployer user that doesn't had root privileges ant I getting this error: bash: line 439: ./scripts/install: Permission denied Any help? Thank you!
2
votes
2answers
664 views

Puppet and Vim fighting over Ruby version

I have installed puppet 3.0.1 from the .dmg from puppetlabs. If I remove ruby 1.9.3, puppet works, but other things like my vim install (dependant plugins) do not. According to ...
1
vote
0answers
338 views

nginx proxy_pass to different backends based on location / passing rewrited url

What the quickest and cleanest solution if you want to proxy URL request to two different backends via proxypass based on location. location /app1/ { alias /var/www/ruby/public; ...
1
vote
1answer
691 views

segfault in timeout.rb using gem with ruby enterprise edition (ree-1.8.7) [closed]

I'm attempting to install a gem on my new Ubuntu 12.10 (GNU/Linux 3.6.5-x86_64-linode28 x86_64) server, and I'm getting a segfault in timeout.rb . I've installed rvm, and ree, and getting this error ...
0
votes
1answer
90 views

Fixed ruby/mysql connection with new libmysql.dll, and broke Apache in the process

Ok so bit of background - all my development has been on a local Windows 7 machine. I had Apache with PHP/MySQL running with no issues. Been using ruby (1.9.3 and latest rails release 3.2.9) with ...
1
vote
2answers
512 views

How do you configure rvmsudo using chef?

I am using the chef-rvm cookbook by fnichol to perform a system wide installation of Ruby via RVM with the rvm::system recipe. I.e. In my run list, I have (with no additional attributes set): ...
0
votes
1answer
198 views

How to stop basic Postfix after-queue script from BCC-ing sender?

I'm building a content filter for Postfix (2.9.3 package installed via apt on an Ubuntu 12.04 test VM) and I'm starting with a very basic Ruby (1.9.3) template and building up functionality. ...
0
votes
3answers
604 views

When to use Bash, when Python/Perl/Ruby? [closed]

What's your rationale for when to write a Bash script and when to use a more powerful scripting language (Python, Perl, Ruby, ...)? I'm finding that very simple scripts are nicer with Bash, but many ...
2
votes
1answer
288 views

How to use monit to make sure only one instance of process is running

I have ruby daemons running. Once in a while we'll accidentally start up a second instance of it, which causes race conditions. Can I use Monit to detect if multiple instances of 'my_ruby_daemon' is ...
3
votes
1answer
504 views

Amazon Elastic Beanstalk: How do you customize a Ruby AMI?

The following article explains detailed how to create a custom Tomcat based AMI for Beanstalk. The key is running the following commands before creating your AMI: sudo -s cd /etc/init.d ./httpd ...
5
votes
1answer
418 views

Ruby installed on Ubuntu 10.10 slow on one machine but not other

I have a machine that was provisioned several months ago. RVM was used to install ruby 1.9.3-p125 as well as 1.9.3-p125-perf. When I compared raw ruby performance to another identical machine the ...
4
votes
5answers
10k views

How to fix “ruby installation is missing psych (for YAML output).” on CentOS?

After rvm installation on CentOS 5.8: [rails@localhost ~]$ rvm -v rvm 1.16.17 [rails@localhost ~]$ which ruby ~/.rvm/rubies/ruby-1.9.3-p286/bin/ruby [rails@localhost ~]$ ruby -v ruby 1.9.3p286 ...
2
votes
0answers
91 views

Apache2 + mod_ruby - how to handle all requests with one script?

I was about writing my own HTTP Server. Well I did, but conerning security issues it was too time expensive doing it on and I drove back having a unique solution with Apache2 and Mod_Ruby in-between. ...
0
votes
1answer
900 views

Error installing new rails version. Failed to build gem native extension

I am trying to build my first ruby on rails app using the following guide (http://ruby.railstutorial.org/chapters/a-demo-app#code-demo_gemfile_sqlite_version_redux) and have run into a few obstacles. ...
0
votes
1answer
229 views

Error Installing ruby with RVM Single User mode on Arch Linux

I've just installed RVM on ArchLinux x64 in single user mode via the recommended install script curl -L https://get.rvm.io | bash -s stable I've also installed all the requirements listed in rvm ...
1
vote
0answers
87 views

Why doesn't Chef use my default attributes in my development environment?

I inherited our company's Chef repository and I'm learning as I go. One issue that I've found a workaround for (but would like to understand or avoid if possible) is that attribute defaults specified ...
1
vote
2answers
8k views

Copy a whole directory structure in Chef

I have a directory structure (sample data) that I want to copy from within a Chef recipe. It seems the only way to do this is to explicitly create each individual directory and file: directory ...
-1
votes
1answer
474 views

RVM Mixed Mode - Local Gem Installation

This thing is driving me nuts. I've installed RVM on a CentOS server; I followed the mixed mode instructions perfectly. https://rvm.io/rvm/install/ When I try to do a "gem install" from a user ...
1
vote
2answers
296 views

Monit and Thin and Unfound Gems

I've been using Monit to monitor my Thin server and everything was working until I upgraded my Rails version from 2.3.4 to 2.3.14. Now when I try and start Thin using monit it gives me an unfound gem ...
1
vote
2answers
136 views

Ruby Application Webroot Location

I have inherited a ruby application at work and I am fairly new to ruby hosting environments. The application is hosted on a linux server but I am unable to find where the webroot is. I have looked ...
3
votes
1answer
461 views

omnibus installed chef and rvm issues

I'm trying to figure out one thing and would like someone's else view on this. I installed chef on my Ubuntu server (11.10) via the awesome omnibus install. It worked perfectly fine. I was able to run ...
2
votes
1answer
1k views

Why does my namespace and class name conflict?

I have a puppet module installed that is called ntp. A node do I define by node testip { include myconfig::ntpp } and in /etc/puppet/modules/myconfig/manifests/init.pp have I class myconfig::ntpp ...
2
votes
1answer
472 views

Why isn't the variable available?

Background I would like to apply this idea of having a common class that includes all the specific info about my setup. So I have created /etc/puppet/modules/common/manifests/init.pp with class ...
2
votes
1answer
549 views

How can I set up redis to run automatically on my Ubuntu machine the way it does on mac

On my (new) mac I can use spork and redis seems to be already running. However on my Ubuntu system (11.10) I get Connection refused - Unable to connect to Redis on localhost:6379 ...
0
votes
1answer
534 views

Host multiple Rack apps on one server with multiple ports (using Apache and Passenger)

I've search online and been reading documentation for Apache, Passenger, Rack, etc, but have yet to find a solution to my problem. I have several Rack (ruby)-based apps, located in ...