Ruby is a programming language that is mostly used nowadays as part of Ruby On Rails

learn more… | top users | synonyms

3
votes
1answer
296 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
192 views

Parsing XML with ruby to display on webpage

I have an XML feed (AppDynamics API) which has an auth method (so username@customer:password format) which I want to access. I would like the XML to be parsed, preferably in XML, to extract / 'grep' ...
2
votes
1answer
250 views

Installing resque on amazon ec2 instances

My problem is to process images through ec2 instances. Based this similar question: Separate server for Resque workers And in this article: ...
2
votes
1answer
223 views

Unable to set nginx to serve my staging website

I'm having some troubles setting up nginx to serve my staging website. What I did is change the server_name but for some reasons it just doesn't work. The url scheme is "domain.foo" is production, ...
1
vote
1answer
19 views

Deploying Ruby Applications In Air Gap (No Internet Access) Network

The current network setup at my job has made it difficult to deploy Ruby web applications. We are running our production RHEL servers in an air gap network with no access to the public internet. My ...
1
vote
1answer
187 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
1answer
37 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 ...
1
vote
1answer
743 views

Configuring Nginx, Thin and Rails. Can access static pages but not dynamic

I have set up nginx (nginx.conf below) and thin. Both nginx and thin (2 servers) are running (I have checked they are running). I can access a static page in the rails public directory such as ...
1
vote
1answer
254 views

Missing library when bootstraping Ubuntu 12.04 with Ruby 1.9.3 from source

Apologies for any incorrect terminology. I'm using Chef to automate server deployment. I've built an AMI that has Ruby 1.9.3 compiled from source and then chef takes over from that point. When ruby ...
1
vote
1answer
256 views

How do I install Rake (Ruby on Rails)?

I want to install Ruby on Rails (I'm running a FreeBSD but don't want to use Ports for RoR) so this is a more generic unix/RoR question. Simply what is the best way to install Rake. ...
1
vote
1answer
50 views

When you have a server and don't use RVM, do you sudo gem install or just gem install?

When you set up a Linux server with Ruby on Rails on it, and you're not using RVM, is the best practice to sudo gem install [gem] or gem install [gem]. I'm using the second approach, and storing my ...
1
vote
1answer
139 views

Compiling native c extensions in Ruby when Ruby is installed in home directory

I have no root on the machine I'm working on, so I've had to install ruby in my home directory. Everything works fine, except that I am not able to compile any native ruby extensions because it cannot ...
1
vote
1answer
152 views

How best to automatically deal with multiple site_ruby locations?

Is there a way to automatically append to $: variable in ruby to account for additional site_ruby locations? Ruby is installed in /usr/local/ and using gem_install will properly install the new ruby ...
0
votes
1answer
61 views

rvm ruby install failing setting paths

I've never used Ruby before so this and the surrounding terminology is new to me; I'm only doing the install so I have a base to run a specific application. I need Ruby 1.9.3, as I understand it I ...
0
votes
1answer
747 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 ...
0
votes
1answer
282 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
240 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
0answers
70 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. ...
1
vote
0answers
14 views

Can't deploy Ruby 2, Rails 4 app to Linode

I have a Rails 4 app and I want to deploy it to my Linode and I'm struggling a lot to get this working. I followed all the basic instructions from the Linode guides, also, installed all the ...
1
vote
0answers
256 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 ...
1
vote
0answers
30 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 ...
1
vote
0answers
53 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
0answers
287 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 ...
1
vote
0answers
406 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 ...
1
vote
0answers
187 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
0answers
226 views

Why does my long-running nohup process quietly stop processing on Mac OSX?

I have a Ruby rake process that does a whole lot of intensive data loading and manipulation. When run a against a particularly large file, the process will run for several hours (which is fine), but ...
1
vote
0answers
475 views

How do I get supervisord to use a user's rbenv environment?

I've daemon owned that I'd like to have system supervisor manage. The daemon has its own user and, being done up in ruby, it's own rbenv environment. The supervisord conf for the daemon: ...
1
vote
0answers
431 views

How are these AB Benchmarks for a ruby/unicorn/nginx/ app running on ec2?

I am preparing to go live with an app, and was wondering if someone can give me some insight on my benchmarks. How do they compare, what system level tweaks can I make to improve them etc. My setup ...
1
vote
0answers
111 views

Rails could not find gem

So if I try to start my server I get the error Could not find abstract-1.0.0 in any of the sources Try running bundle install. I run that and I get Using abstract (1.0.0) I also have the gem ...
1
vote
0answers
202 views

Ruby On Plesk 10

I am trying to run a Ruby (not Ruby On Rails) hello world page 'helloworld.rb' on my plesk server but am unable to get it to work (it just outputs the code). I know that ruby is installed on the ...
1
vote
0answers
190 views

gem mirror segfaulting

I'm trying to create rubygems mirror on my VDS doing the following: $ gem mirror $ gem generate_index -d /home/rubygems/mirror The problem that each time I run first command ruby segfaults with ...
0
votes
0answers
64 views

Force execution of a chef script before the first one finishes

Following is section of code that is creating the problem for me. Everything works fine but then in order to upgrade percona, I need to run the 'mysql_upgrade' step while the 'mysql_safe' step is ...
0
votes
0answers
8 views

Gem generating different output on different machines with same configuration

I'm using the premailer gem to generate inline CSS for a project I work. That project is also cloned on a CI server. The wierd stuff that is happening is that from some time now, it started failing ...
0
votes
0answers
46 views

Chef gem_package not using the binary path

I'm trying to install the gems "sensu_plugin" and "mixlib-shellout", on a windows server 2008r2, from a recipe. In this last one, I have the following code : %w{ sensu-plugin mixlib-shellout }.each ...
0
votes
0answers
64 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 ...
0
votes
0answers
79 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 ...
0
votes
0answers
32 views

Installation of JavaScript runtime on old Red Hat server

I've been tasked with some infrastructure updates related to upgrading to Rails 3 on our development server, which is running: Red Hat Enterprise Linux AS release 4 (Nahant Update 5) RPM version ...
0
votes
0answers
86 views

Gitlab OpenID authentication with simpleID does not work?

I setup gitlab 6.3.0 to authenticate users based on OpenID. I successfully tested with Google logins with these hacks: in this file: gitlab/config/gitlab.yml The relevant section is: ## OmniAuth ...
0
votes
0answers
33 views

rails 3 ruby 1.8.7 app slow startup on the web

I've been working with rails 3 and ruby 1.8.7 and ALWAYS (in all my apps), I have problems with the STARTUP time delay. It sometimes loads OK, and sometimes takes more than 12 seconds just to start ...
0
votes
0answers
23 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
0answers
20 views

Mac Server & Ruby SSL help needed

I need some advice on a potential problem i face, relating to a Mac server & Ruby on Rails. We have a mac server (xserve running tiger) running Ruby, Apache (httpd?) and mongrel to provide a ...
0
votes
0answers
176 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
0answers
21 views

Monit is not stoping/starting a ruby process

I am trying to start/stop a ruby process with monit but it does not work on centos-5.9 as expected. Better to say it does nothing but I am amazed when I saw same monit works fine on Centos-5.5. Below ...
0
votes
0answers
553 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 ...
0
votes
0answers
76 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 ...
0
votes
0answers
433 views

Variable / Attribute scope within Chef recipes and execution order

I'm trying to get the rvm_passeneger recipe to work, I seem to having problems with the order of execution and variable/attribute scope. ...
0
votes
0answers
220 views

Rails app running on JRuby & Trinidad / Tomcat hangs on first request after being idle

We have a RoR 3.2 app running on JRuby 1.6.6 hosted inside Tomcat via Trinidad. I've been trying to figure out for the last couple of days why every so often we would get complaints of it hanging. ...
0
votes
0answers
346 views

Own simple nrpe plugin: NRPE: Unable to read output

I have written an ruby plugin for nrpe but it's not working properly. I have written this plugin to check some backup files on a remote ftp server. When I try to execute the plugin from my nagios ...
0
votes
0answers
256 views

RubyGems picking up wrong Ruby version

Trying to update gem [root@nuuk ~]# ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] but when I do gem update --system I get [root@nuuk ruby-1.9.3-p0]# gem update --system Updating ...
0
votes
0answers
263 views

Passenger Defunct Processes on Apache2 restart/ Instance reboot

I've install apache from apache2-mpm-prefork package on EC2 micro instance and compiled passenger from source code present at following link: ...