Questions tagged [ruby]

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

Ruby is an object oriented programming language that has programmer productivity as one of its design goals. Most people are familiar with it these days as part of Ruby On Rails, a web application framework.

498 questions
1
vote
0 answers

What could cause Ruby's free heap slots to rapidly increase?

I'm diagnosing why our Rails servers seem to leak memory. In looking at New Relic today, I noticed that "Free heap slots" of our Ruby VMs seems to jump from almost nothing up to the baseline level of "Live objects" at seemingly random intervals. My…
Ross
  • 131
  • 5
1
vote
1 answer

Installing rubygems after manually installing ruby 1.8

I have successfully installed Ruby 1.8.7 on Ubuntu 14.04 by downloading the package, building locally and installing. The command ruby -v, outputs Ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-Linux] as expected, this is the same output on another…
Ralph
  • 862
  • 11
  • 26
1
vote
1 answer

Can I use serverspec on a remote system without requiring root or sudo access on that system?

Main thing I am trying to do is to run the tests from an unprivileged user (a gui runs these tests) without giving away the keys to the castle if this user gets compromised. Most of the tests shouldn't need root access and it should be best practice…
DarkFlib
  • 46
  • 4
1
vote
1 answer

mcollective - different ruby path/environment

How do I tell the mcollective server to use a different ruby path, or otherwise control the ruby environment? I'm running on Centos 6.5, and have installed the ruby193 collection onto the servers and client. I'm trying to use the puppetlabs 'shell'…
shearn89
  • 3,403
  • 2
  • 15
  • 39
1
vote
1 answer

Why won't ruby recognize Haml under ubuntu64 while using jekyll static blog generator?

I have been trying, quite unsuccessfully, to run henrik's fork of the jekyll static blog generator on Ubuntu 64-bit. I just can't seem to figure this out and I've tried a bunch of different things. Originally I posted this over at stackoverflow,…
user20018
1
vote
2 answers

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 and all my containers were able to run in…
Thomas V.
  • 2,071
  • 2
  • 17
  • 13
1
vote
1 answer

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 class attempts to run on a node. It looks like it's…
Jeff Coe
  • 187
  • 2
  • 6
1
vote
1 answer

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 block below works from lines 02-06 but NOT from…
Peter M
  • 973
  • 2
  • 15
  • 27
1
vote
0 answers

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 I go diectly to myip:8080 and Bad gateway if I…
Allanon
  • 111
  • 1
  • 5
1
vote
0 answers

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 take quite long and i can't figure out where the…
1
vote
0 answers

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 that patching libxml2 2.8.0 returned an…
1
vote
1 answer

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 enable ufw, webrick can´t be accessed anymore. of course…
Anatol
  • 349
  • 2
  • 6
  • 19
1
vote
3 answers

cron not running on centos 5.2

Sorry if this is a dupe - after I merged my Stackoverflow and serverfault accounts, my question seemingly was erased... Using CentOS 5.2 and this cron is not running at all (/var/log/cron is not showing any activity, and feat.log is empty). 5 0 * *…
Kyle
  • 141
  • 1
  • 7
1
vote
0 answers

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 \ libreadline6 \ libreadline6-dev \ zlib1g \ …
Dane O'Connor
  • 1,269
  • 2
  • 15
  • 20
1
vote
1 answer

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 workstation is obviously able to transfer packages…