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
39 views

How to resolve the chef error “can not find a plugin for dependency linux::network”?

There are no google hits for this error message. I am attempting to run chef-client on a server that has run it successfully in the past. I do not know what changed to produce this error. Here is the ...
0
votes
1answer
21 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 ...
0
votes
1answer
19 views

Why is the ruby install so slow

The recommended way to install ruby is through rvm and rbenv. Why are these methods so slow? I have seen packages 10x times larger installing in much quicker time.
0
votes
0answers
26 views

Import existing git repositories into Gitorious

I am trying to find out how to import existing git repositories into Gitorious CE. I followed the instructions from http://getgitorious.com/install-gitorious to install the server on a CentOS 6.5 box. ...
0
votes
1answer
13 views

PHP/Ruby captive portal first domain seems cached

I have created a captive portal with iptables I use what many people seem to use : Users can request DNS, packet marked as 99. 99 means no internet else the user does have access. When a user ...
0
votes
1answer
32 views

Use 'commands' ruby puppet function outside of puppet provider

to allow me to easier debug my providers, I sometimes wanna use 'command' in my own ruby code. Trying to figure out how is problem. This is how I use it inside a provider: commands :wget => ...
1
vote
0answers
39 views

Rails json Request are slow

I am developing an angularjs Application with Rails as Backend. It is hosted by DigitalOccean the smallest Server. On my Production System its only me testing right now. The problem is the requests ...
0
votes
1answer
46 views

Puppet master receiving a YAML error after upgrade to 2.7.25-2

Our puppetmaster server was upgraded to the latest available on RHEL6 (puppet-2.7.25-2.el6.noarch). We are now receiving errors such as this on the master: Aug 26 11:36:59 master1 ...
0
votes
0answers
116 views

Open Source Chef Server can't upload cookbook

I just setup the open source chef server on an Ubuntu 12.04 EC2 instance, I've setup my webui and am able to get responses from my knife commands ie: knife node list, knife client list, knife user ...
0
votes
2answers
220 views

Puppet template erb if variable is not defined keep default

I am trying to learn puppet and I can not understand how I can setup template erb to choose default value if variable is not defined in common.yaml or in node.yaml. This is what I have tried: 1) # we ...
0
votes
1answer
70 views

Configure server for gitlab [closed]

I have a server where VestaCP installed (apache2 is back-end, nginx is front-end). Also, I successfully installed ruby, gitlab shell and gitlab. When I type sudo -u git -H bundle exec rake ...
0
votes
0answers
83 views

Linux server backup to Amazon S3 using SSL

I have Linux box CentOS 6.5 and i want to backup daily files like SQL dumps and config files to Amazon S3 I have installed Ruby and S3Sync. But the problem when running the s3sync with these ...
1
vote
1answer
67 views

EC2 : How to assign multiple elastic IPs to a single network interface via SDK

Would anyone know how to associate multiple Elastic IPs to a single instance via the Amazon SDK ? In Ruby, I've tried to use both the aws-sdk and fog gems, which work fine for a single address, but ...
0
votes
3answers
436 views

Foreman installation on amazon ec2 instance

Hi there and thank you for reading, I am currently in the process of setting up a puppet service for our ec2 instances and decided to give foreman a try (node certificate management and automatic ...
1
vote
0answers
447 views

Chef, installation of nokogiri with system libraries fails on Centos 6.5

I'm trying to fix a recipe that needs the gems nokogiri and savon on Centos 6.5. Since the simple chef_gem 'nokogiri' require 'nokogiri' chef_gem 'savon' require 'savon' does not work (chef says ...
1
vote
1answer
130 views

Ruby gems issue on Openshift origin on fedora 20

I meet some problem when checking bundle dependency on cd /var/www/openshift/broker bundle --local This is the error message, Bundler could not find compatible versions for gem "activesupport": ...
0
votes
1answer
74 views

UFW blocking webrick on port 3000

On a ubuntu 10.0.4 server runs redmine. starting webrick with: ./server webrick -e production -b lvps46-173-79-113.dedicated.hosteurope.de -d makes redmine available in browser. as soon as we ...
1
vote
0answers
100 views

Why isn't puma using all of its threads?

I'm using puma and nxinx, and as far as I can tell it is only ever using a single thread even when I start it with the default of 16 threads or more. I've set up a fresh rails app, then gone through ...
0
votes
1answer
40 views

Why don't RedHat 5.x compiled Ruby-binaries work on Fedora 17?

I have compiled Ruby 2.0.0p247-binaries on a RedHat Enterprise Linux 5-system. When I require 'net/https' on this same system, everything is fine. The binaries have been installed on a common ...
0
votes
1answer
213 views

chef remote_file is throwing Encoding::UndefinedConversionError

I have the following in a chef recipe: remote_file '/tmp/zint-2.4.2.zip' do source 'https://s3.amazonaws.com/mybucket/zint-2.4.2.zip' checksum ...
0
votes
1answer
696 views

Cannot set postgres user password

Trying to install PostgreSQL with Ruby on Rails with Nginx on CentOS 6.5 using the following guide: ...
0
votes
1answer
218 views

Trouble setting up Ruby with Nginx on CentOS 6.5

Following the instructions here: https://www.digitalocean.com/community/articles/how-to-deploy-rails-apps-using-passenger-with-nginx-on-centos-6-5 I get to the point of "Use vim /etc/init.d/nginx to ...
1
vote
0answers
14 views

Which dependencies are removable after building ruby?

I've successfully built ruby 2.1.1 on Ubuntu/Debian by installing the following dependencies: apt-get install \ autoconf \ bison \ build-essential \ libssl-dev \ libyaml-dev \ ...
0
votes
2answers
117 views

How to debug Repository.fetch_changesets runned from ./script/rails runner

For some time I have been updating changesets manually on server with following command's: $ cd /custom/www-data/ $ source /custom/www-data/.rvm/scripts/rvm $ ./script/rails runner ...
0
votes
1answer
177 views

Should I install ruby as root or user? [closed]

I'm not sure which option to take. I'm installing ruby on VPS. My options: Install ruby from ubuntu repository Install RVM Install RVM as user Install RVM as root I've 1 user VPS, that handles ...
1
vote
1answer
48 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
0answers
94 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 ...
0
votes
1answer
27 views

wants to provide password to tightvnc server by using script

I am installating tightvnc server on my ubuntu machine by using ruby script my script contain following: #!/usr/bin/ruby env `sudo apt-get --force-yes -y install tightvncserver` `printf ...
-1
votes
2answers
622 views

Install ruby by rvm

I try to install ruby 2.1.1 by RVM and I receive following error: vmamaev@vmamaev:~$ rvm install ruby-2.1.1 ruby-2.1.1 - #removing src. Searching for binary rubies, this might take some time. No ...
1
vote
1answer
5k views

configure: error: C compiler cannot create executables while build ruby from source [closed]

I've checked a number of similar questions on stackoverflow but haven't found an answer yet. I am trying to build Ruby from source as describe here: ...
2
votes
1answer
97 views

Share Ruby Programs between Linux users

Our Linux (Mint) system has 2 admin users - mint & admin. What do we need to do for admin & mint to be able to share gems? Mint has chef, berkshelf & knife-ec2 installed via bundler in ...
0
votes
1answer
142 views

gem install append CPPFLAGS / LDFLAGS [closed]

I can't seem to get gem install charlock_holmes -v 0.6.9.4 to work. I can hand edit the ./ext/charlock_holmes/extconf.rb and includ $INCFLAGS << " -I/usr/local/include " $LDFLAGS << " ...
0
votes
0answers
114 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
1answer
480 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 ...
2
votes
1answer
283 views

Redmine won't start after move

I met trouble with redmine(or ruby configuration) when move from one server to another redmine@dirty:~/www$ ruby script/rails server webrick -e production ...
0
votes
0answers
22 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 ...
1
vote
0answers
176 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 ...
1
vote
1answer
141 views

Reload Puppet gem provider source

So I've got Puppet Enterprise 2.7 on a "master" node, puppetentmaster. While working to craft new recipes for installing Ruby 2.0 on a "client" node, I noticed if I forced the client to begin using ...
1
vote
1answer
286 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 ...
2
votes
3answers
3k 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
249 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
367 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
157 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
57 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
168 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
50 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 ...
1
vote
0answers
642 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
490 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 ...
0
votes
0answers
40 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 ...
2
votes
1answer
702 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 ...