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

AWS Opsworks: Restart Service after deploy

I'm using AWS Opsworks for a Rails Application, I have an Upstart Service to start/stop/restart Sidekiq ej: sudo service sidekiq restart So now after every deployment I want run sudo service sidekiq ...
0
votes
0answers
2 views

Rails: Heroku settings, not casting from int to string [closed]

This question is in reluctance to a critical error on a business app I'm operating. I really need help :( So today the DB space of my Heroku app filled up. I proceeded to re-provision my plan from "...
0
votes
0answers
5 views

chef-manage processes not working (redis, web and worker)

I was able to install chef-server 12 in a docker container. I was also able to access this via URL. However, to have a Management Console, it is stated that I should install chef-manage by executing ...
0
votes
1answer
18 views

Installing cmu-sphinxbase on AWS EC2 ubuntu instance

I've setup an app on EC2 using Elastic Beanstalk. It's a Ubuntu instance and I'm running a Rails app on it which depends on sphinxbase and pocketsphinx. I've ssh'd into the EC2 instance to install ...
0
votes
1answer
32 views

Elastic Beanstalk silently fails to install ruby gem

I'm trying to install the github-pages ruby gem in an AWS Elastic Beanstalk app. According to the docs, to do this you add an .ebextentions/somename.config file that declares the package as a ...
-2
votes
1answer
50 views

How BCC works in Postfix

I'm trying to use postfix feature content_filter like: my_script unix - n n - 10 pipe flags=Rq user=filter argv=/usr/local/bin/my_script.py -f ${sender} -- ${...
1
vote
1answer
16 views

Blank value in custom puppet fact

I know that the following custom fact matches the string I want, as if I add a 'puts' or 'print' ahead of the $1 it prints the correct string. But as show the fact returns nothing. A blank. Facter....
0
votes
0answers
37 views

Trouble with Passenger in multiuser RVM environment

I have Passenger 5.0.28 installed as a gem, and configured with NGiNX 1.9.15. In other environments where I didn't have to set up multi-user for RVM this works fine, but now I'm having trouble getting ...
0
votes
0answers
21 views

nagios custom script working locally, returns null in UI

I have a custom script that I've defined within my nagios command.cfg and service definitions. When run locally as nagios on the monitoring host, it returns the expected output (a large hash of stats ...
1
vote
1answer
41 views

Where can I get postfix log example?

I have to write parser for postfix log on ruby. It should find bounce, format it to JSON and send somewhere. I'm not system administrator and don't want to install postfix server on my laptop. Where ...
0
votes
1answer
336 views

How to fix conflict between diferent gem dependencies

Let's see if someone can help me with this, I have no idea what I'm doing. The server is a debian 8.4 , fully updated. And I also updated gems with 'gem update', all the posible errors and warnings ...
1
vote
1answer
52 views

How to get a static IP for an EC instance? Or, how to use

I am just setting our Rails app on Amazon AWS. We have 2 EC2 instances, one for the Rails app, the second one for Redis. And then Amazon RDS for MySQL. When I connect our Rails app with Redis, I need ...
1
vote
1answer
39 views

How do I run chef recipe from inside ruby code?

From the Rails app I need to provision, configure and manage servers on Amazon AWS. Some time ago I've been using chef-solo and knife to do that, but from the command line. Would that be possible to ...
0
votes
0answers
195 views

Nginx Using KiB of shared memory for push module in

I'm setup nginx with passenger on a ubuntu 14.04 and the nginx is throwing 403 Forbidden error I checked the permissions and it is all ok. I checked the nginx conf and it seems ok user root; ...
-2
votes
2answers
37 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
11 views

Puppet iterate in template

In .pp file: replication => [ { name => 'local', url => xyz, push => ['refs/heads', 'refs/tags'], }, { name => 'github', url => abc, push => ['refs/...
1
vote
2answers
121 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
90 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 ...
3
votes
1answer
101 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
84 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
44 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
213 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
45 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
20 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
33 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
22 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
19 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
105 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
78 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
20 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 ...
3
votes
1answer
238 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
159 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
37 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
78 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
511 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
208 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
157 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 ;...
1
vote
3answers
408 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
311 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
114 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
83 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
11 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") AllowedPattern("(((AD\\-Certificate)|(AD\\-...
0
votes
1answer
49 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
73 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
470 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
133 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 ...
2
votes
1answer
3k 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 variables....
2
votes
2answers
96 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
157 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 http://www.openssl.org/...