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

-2
votes
2answers
29 views

Clone ec2 instance with all things installed

I received a amazon email saying that i have to terminate my instance because of attacks but worked really hard to install and setup everything on the instance. So how can i create another ...
0
votes
1answer
10 views

Puppet iterate in template

In .pp file: replication => [ { name => 'local', url => xyz, push => ['refs/heads', 'refs/tags'], }, { name => 'github', url => abc, push => ...
1
vote
2answers
17 views

How to puppetize gem install specific to puppet's ruby?

The Puppet Azure module requires specific gems to be installed. The directions https://github.com/puppetlabs/puppetlabs-azure show the following example: /opt/puppetlabs/puppet/bin/gem install azure ...
0
votes
1answer
27 views

installing ruby 1.9.3-p194 using rbenv on centos 6.7

I'm moving a Ruby/Rails app to a Centos 6.7 server (from Ubuntu) and am installing ruby via rbenv. I run rbenv install -v 1.9.3-p194 and it will start to compile but the build fails. The build ...
1
vote
0answers
25 views

Unable to deploy a rails application using eb cli

I recently updated my environments configuration to :64bit Amazon Linux 2015.03 v1.4.6 running Ruby 2.2 (Passenger Standalone). After deploying my application using eb deploy i now get an error in my ...
0
votes
1answer
50 views

Graceful shutdown of ruby process during windows shutdown

I have a windows 2012 r2 machine with a scheduled ruby process which runs every minute - sometimes exiting after only a few seconds, other times, running for 5 minutes or so. What I am trying to ...
0
votes
0answers
34 views

CVE-2015-7551: Unsafe tainted string usage in Fiddle and DL

I saw this security announcement: https://www.ruby-lang.org/en/news/2015/12/16/unsafe-tainted-string-usage-in-fiddle-and-dl-cve-2015-7551/ But I could not figure out what is this "Fiddle" and whether ...
3
votes
2answers
150 views

How do I write a local test with serverspec?

So far serverspec is working out great, I'm testing my servers, everything looks good. Let's say I want to test my ldap cluster via running a few ldap commands from my local workstation, say ...
0
votes
0answers
15 views

Errors running Chef to provision Vagrant

I'm running Chefdk, chef-provision, and chef-provision-vagrant, and I've set up a recipe to create the VM, and another to provision. I'd like to point out that I am new to Chef (I'm more of a Puppet ...
0
votes
0answers
9 views

Deploy forked ruby gem to production servers

I have done some fixes to Spaceship to submit builds for external testing via iTunes Connect. https://github.com/fastlane/spaceship/pull/201 What is the best way to deploy the gem with my own changes ...
0
votes
1answer
16 views

Fixed: Knife create instance failing - ERROR: uninitialized constant Chef::Mixin::Command

I'm wondering if any of you guys have a clue on what is the problem here. I'm using Chef Knife EC2 plugin to create a new instance. After completing the ssh connection step, it seems to break on ...
1
vote
0answers
27 views

Puppet device wildcard names for nodes?

I'm using Puppet's device management to mange some Cisco devices. Right now my device.conf looks like this: [someCity] type cisco url telnet://puppet:123456@10.123.1.1/ [someOtherCity] type cisco ...
1
vote
0answers
19 views

Ruby on Rails Debian best practice

I've seen in various places people using Ruby compiled from source through a cloned rbenv git repository, and then installing Rails through RubyGems to get the latest version. But, from what I know, ...
0
votes
1answer
11 views

Docker Compose - Adding wrong folder

I have a project folder containing my docker compose file. This references a child folder as a sub project. When running docker compose an ADD adds the docker-compose location and not the sub ...
2
votes
2answers
64 views

DNS lookups eventually become consistently slow in long lived ruby process

I have a Ruby application running on an Ubuntu server, and this application frequently has to make HTTP requests to other services. Some of those services are on an internal domain, some are ...
-7
votes
1answer
49 views

Why wont my server start

I'm having real difficulty with a server on our load balance cluster and cant understand why. In the catalina log the following appears. It had been another site before and I removed it to see if that ...
0
votes
1answer
16 views

How to implement PushMon on Ruby site

I am looking to implement PushMon on a number of sites using Ruby Padrino. I have the following piece of code from the PushMon site. Where would I place said code. I was thinking of adding it to the ...
2
votes
0answers
70 views

Logstash event @timestamp adjustment

I have standard Windows IIS log files with event date/time stamp information and timetaken (in milliseconds). I would like to be able to adjust the event time (@timestamp) by subtracting the ...
1
vote
1answer
71 views

Dashing/shopify dashboard Ruby gems error [closed]

I am trying to build a small dashboard using Dashing. This dashboard is supposed to get the data from a SQL database. This is my code require 'rubygems' require 'mysql2' SCHEDULER.every '15m', ...
1
vote
1answer
31 views

Use Ruby in place of PHP in Apache2

So I know this is a possibility and I have found tutorials that work with older versions of Apache, but I can't find any updated ones. All I want to do is use .rb and .erb files just like you can ...
0
votes
1answer
31 views

AWS-EC2 - Rails Passenger Page under heavy load

I have an rails app on an aws ec2 (elastic beanstalk) instance. The problem is, when i run blitz.io to test the page load, the page goes into "page under heavy load" at around 100 users. In the past i ...
4
votes
1answer
222 views

Apache+Passenger not serving the root of the Sinatra application

Since the last Fusion Passenger update, all my Sinatra applications have stopped working on the following env: Apache (2.4.17), Phusion Passenger (5.0.21). Everything was working as expected before ...
1
vote
1answer
117 views

Switching ruby versions with Passenger, getting error

I switched from 2.2.5 to 2.1.5 recently and noticed that I get an attempt to compile and download the interpreter as such: [ 2015-10-25 11:15:15.3328 8841/b6ad5b40 age/Cor/CoreMain.cpp:793 ]: ...
-2
votes
1answer
70 views

How do I SSH through a jump server into a Rails console?

I'd like to have a one-liner for this. When I use the following command: ssh -o ProxyCommand='ssh -W %h:%p user@<jump server>' -t user@<rails server> 'sudo su another_user ; cd /some/dir ...
0
votes
2answers
167 views

Chef 12.5 Custom Resources - Accessing Resources in Recipes

I am writing a cookbook that uses the Custom Resources present in Chef 12.5. I have a custom resource that uses a template resource and as such has a notifies that reloads the associated service. ...
0
votes
1answer
156 views

chef: How do I increase the CommandTimout for Mixlib::ShellOut in a ruby block?

I'm trying to perform a database data load in a chef recipe on an Ubuntu 14.04 system with a Chef 11.10.4 based client. I'm doing the data load in a ruby block and here are the relevant portions of ...
1
vote
1answer
58 views

Puppet - Custom Function - Statement - Error - “Must be the value of a statement…”

Seems simple enough... # /path/to/puppet/modules/custom/lib/puppet/parser/functions module Puppet::Parser::Functions newfunction(:release_check) do |args| raise(Puppet::ParseError, ...
2
votes
1answer
79 views

Is it really recommended to build Ruby from source on production servers?

I've seen all over the place people using RVM/rbenv to install the most updated version of Ruby on Linux. On development, I understand that it may be OK to do this, but I can't understand why would I ...
0
votes
0answers
10 views

Cloudformation AllowPattern showing validation error

I have a CloudFormation script that provisions an instance with windows features installed. Parameter("Roles") do Type("String") Default("None") ...
0
votes
1answer
38 views

Nginx passenger rails

On a EC2 with ubuntu 14.04 with nginx/passenger/rails came with this log on nginx: App 31063 stderr: * ERROR *: Cannot execute /usr/local/lib/ruby: Permission denied (13) App 31065 stderr: ...
0
votes
0answers
47 views

Requesting HTTP API from Elastic Beanstalk causes 503 timeout on Heroku

Got a weird problem on our hands. We're calling a third party HTTP API hosted on Heroku. If we make the request through cURL locally, or we SSH into our Docker container on Elastic Beanstalk and cURL ...
0
votes
1answer
245 views

How to start passenger nginx, error : Signal received. Gracefully shutting down… (send signal 2 more time(s) to force shutdown)

Application is broken in production mode and getting below error while restarting passenger and nginx. [ agents/LoggingAgent/Main.cpp:338 ]: Signal received. Gracefully shutting down... (send signal ...
1
vote
1answer
79 views

Puppet does not work with augeas in a multiple ruby versions environment

I am trying to make puppet work with augeas but it complains there is no augeas provider. Some googling suggested to sudo yum install augeas augtool ls /files/etc/php.ini # test it works as expected ...
1
vote
1answer
539 views

Which way is the correct way to pass variables to chef templates?

Looking at this official documentation: https://docs.chef.io/resource_template.html I see examples of passing variables to the Template resource that use either "{", "({" or "(" to scope the ...
2
votes
2answers
67 views

Setting a MAC address from file for a VM

I'm not sure if this is entirely possible so thought it was worth asking. I would like to use Vagrant to allow users to spin up a VM when needed. However, on our network devices must be registered via ...
1
vote
1answer
83 views

Compilie ruby 1.8.6 with openssl 0.9.8

I'm trying to install ruby 1.8.6 on CentOS7 and successfully finished, but ruby cannot load openssl. My install steps are below. Install openssl 0.9.8 from source. wget ...
2
votes
1answer
103 views

Apache passenger setup - Multiple projects under same domain

I want to setup different projects under same domain with different ruby version for each app. Eg: example1.com is a main app which runs on Ruby 1.8.7 example1.com/tasks is another app which runs ...
0
votes
0answers
73 views

mailjet with brimir (open source Ruby project) on debian doesn't send mail

I tired of searching a tip to be able to send mails with mailjet on my debian. I configured a dashboard for tickets (Brimir, Ruby open source plateform) Here is the link : ...
1
vote
1answer
72 views

Create chef recipe by passing values dynamically, from properties file

I created a chef recipe which has the installation of a specific rpm mentioned in it. This rpm has a version number which needs to be loaded dynamically from a properties file (which is itself created ...
1
vote
2answers
531 views

Trouble Starting Snorby / Ruby dependency issue

I am trying to install Snorby on a CentOS 6.6 machine and keep getting an issue with ruby and my Gemfile. I believe I either have to edit my Gemfile or it has something to do with an installation ...
0
votes
1answer
53 views

How can I determine why a process is dying? [closed]

On a CentOS 6.5 server I am running a very simple HTTP listener with Sinatra that exists simply to accept POST requests and pass the payload content of the POST request to another service. I often ...
0
votes
0answers
85 views

Using serverspec to test an application running on rails on a remote machine

In the environment we login as user1 which has sudo access, we then sudo to user2 which does not have sudo access. All installation on the machine is done via user1. When I write test to verify ruby ...
1
vote
2answers
349 views

No Space left on device after Jenkins installation

Is there any reason i would get a 'No space left on device" error on mkdir. I have confirmed that i have enough space left. around 68% is free. and also i have 1% iNodes consumed. This is CentOS 7 ...
0
votes
1answer
170 views

ChefSpec - Coverage when testing for include_reciepe

I' am trying to write ChefSpec tests for some of our Cookbooks. One of those is including a lot of other cookbooks, to setup an Jenkins CI Enviroment. Iam wondering how other people are testing the ...
2
votes
2answers
168 views

error: no space left on device when saving file (but there is space)

I am implementing in ruby however when I want to save my work I get "Opening output file: no space left on device, /afs/edu/usr7/ael/p\ rivate/RUBY/inc.rb" When I checked if I got any space using ...
1
vote
0answers
219 views

Getting 403 Forbidden w. Referer on Nginx+Passenger

We're using Nginx 1.6.2 + Passenger 5.0.6 and have a vhost defined with PHP-FPM which serves a MODx installation. Only one location /sinatraapp serves a Sinatra App using Ruby 2.1.1. The setup is ...
1
vote
1answer
171 views

How do I get puppet master to listen on IPv6?

So I have a RHEL 7 server on an internal network with IPv6, and I am able to SSH into it via IPv6 and it is also serving DNS to other hosts over IPv6. I have noticed that puppet master bind to IPv4 ...
1
vote
1answer
855 views

EC2 Public DNS not working with HTTPS - Elastic Beanstalk URL is working

I have completely ran out of ideas to fix this issue. I've gone through just about every given solution to similar issues and nothing has worked successfully. I've successfully set up my Ruby on ...
1
vote
1answer
114 views

How to configure Monit for use with Puma Ruby Web Server?

I am getting started with Monit and don't have a lot of systems knowledge. I have a Ruby app running on Puma. I want to use Monit to automatically restart Puma if it ever dies. I'm currently using the ...
0
votes
1answer
264 views

Unicorn displaying Rack errors uninitialized constant Rack::Lint::REQUEST_METHOD

I've attempted to install Unicorn + Nginx on Ubuntu 14.04. Whenever the site gets accessed (via localhost:8080 or via Nginx) it just returns a blank 500 error. The error log gives me the following: ...