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
0answers
9 views

Using Monit to reload (without changing PID)

I'm able to start and stop a process configured with monit (through Upstart) with no issue. However, restarts/reloads of this process should be gentle, with no downtime/PID changes. The process ...
0
votes
1answer
16 views

How can I use a rubygem in a puppet provider on debian stable?

I'm trying to use a puppet provider which requires a ruby gem. It's being run on Debian stable (wheezy), but I get the following error: err: Could not run Puppet configuration client: no such file ...
0
votes
0answers
9 views

`rvm list remote` not showing binaries for Ubuntu 14.04 box [migrated]

I'm trying to provision a dev box with rvm on Ubuntu 14.04 (via Vagrant and Ansible). I've installed rvm: gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 \curl -sSL https://get.rvm.io | ...
0
votes
0answers
31 views

Gem installation on vanilla ubuntu fails - EACCESS

I'm trying to install the Middleman gem on a completely generic installation of Ubuntu Trusty (i386). Here's my console input/output: vagrant@vagrant-ubuntu-trusty-32:~/rj$ which ruby /usr/bin/ruby ...
0
votes
2answers
41 views

Running startup shell script for ruby application as other user (not root)

I have installed RVM using 'user01' on Ubuntu 14.04 and user01 can start my rails application as expected. I, however, want to start this application following system start-up. I am trying to use the ...
0
votes
0answers
4 views

How to make AppArmor profile for Ruby script

i created apparmor profile by following way: aa-genprof test.rb above command successfully created apparmor profile for that test.rb, Now i wants that this test.rb file should not create anything ...
0
votes
2answers
95 views

How to handle Docker memory management?

Update: Rather than spinning up my resque worker through the docker command (to test), I instead killed all my containers with fig kill, added it to the fig configuration, and ran fig up. This worked ...
1
vote
1answer
23 views

Puppet and windowsfeature - Boolean Error

I'm new to Puppet Enterprise, but trying to learn how to deploy custom class files to Windows servers. I am attempting to use the opentable/windowsfeature module, but I'm getting an error when my ...
0
votes
0answers
26 views

Benchmark network (internet) connection on server

I have a dedicated ubuntu server I rentet. Now I'm running a lot of ruby background processing on that server, that - among other things - does a lot of get requests to very small images (about 10kb) ...
1
vote
1answer
173 views

Chef/Ruby: use “each do” block variable with node attribute

Chef 11.10.4 environment running in AWS Opsworks. I can't figure out how to pass the value of the "each do" block variable, "lyr," below, with the node attribute node['aws-tag'][#{lyr}]? The code ...
0
votes
0answers
38 views

EC2 Bad Gateway with torquebox and nginx

I set up an EC2 instance with torquebox and nginx. Torquebox starts without any errors, but I cannot access it at port 8080. Not even if I add a VPC rule to open that port. I get Gateway timed out if ...
0
votes
1answer
124 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
66 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
21 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
45 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
118 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
55 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
67 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
66 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
184 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
416 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
123 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
109 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
87 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
588 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
518 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
147 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
92 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
126 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
42 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
294 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
1k 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
265 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
16 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
154 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
250 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
56 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
117 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
34 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
740 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
8k 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
150 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
209 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
123 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
545 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
343 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
24 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
194 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
174 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
385 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 ...