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
0
votes
1 answer

Unable to rhc setup to my openshift cluster

I am unable to setup my server with rhc setup. This is my output This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed. DEBUG: Running server_stage DEBUG:…
0
votes
2 answers

how can i figure out the max number of scripts i can run on my server?

I would like some tools or approaches to measure how much bandwith, cpu, memory is being used by each instances of ruby script (ex. a web spider). The goal here is trying to see the maximum number of ruby scripts that can run on my ubuntu web…
wgewweg
0
votes
1 answer

Rails app works in ElasticBeanstalk but not in Docker Passenger container

I have a Rails app that works fine in ElasticBeanstalk. I am now trying to run in in the Docker Phusion Passenger Container. My Dockerfile is pretty simple: FROM phusion/passenger-ruby21:0.9.13 # Set correct environment variables. ENV HOME /root #…
Garreth McDaid
  • 3,449
  • 1
  • 27
  • 42
0
votes
2 answers

systemd command fails /bin/bash not found

Currently trying to get a new systemd script to work. The script has the following included: ExecStart=/bin/bash -lc 'bundle exec sidekiq -e production' However that seems not to work. The error I then get is: Failed at step CHDIR spawning…
Hendrik
  • 251
  • 2
  • 4
  • 11
0
votes
2 answers

Is there an easy way to install Ruby gems for the currently-installed Ruby version?

This seems like it should be obvious, but I haven't been able to find a way to do it. My basic problem is this: I've got Ruby 1.8.7 installed on a Scientific Linux 6 system (from the base repository). I'm trying to install some gems via gem…
asciiphil
  • 3,086
  • 3
  • 28
  • 53
0
votes
0 answers

Using AWS worker to delete old DB entries?

I have an app on AWS using Elastic Beanstalk/RDS/EC2/etc. The app has some database entries that need to be deleted after a certain time. I've tried to set up a cron task on the main server, but found that the web server cannot handle tasks like…
0
votes
1 answer

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 sphinxbase and its dependencies: sudo yum install…
DiegoSalazar
  • 111
  • 7
0
votes
1 answer

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 dependency. My packages.config looks like…
0
votes
0 answers

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 from a redis instance): [nagios@mon1 scripts]$…
Ethan Shrago
  • 101
  • 1
  • 8
0
votes
2 answers

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 can I find such file to work with? Can someone…
mlwrm
  • 11
  • 1
  • 3
0
votes
1 answer

Puppet iterate in template

In .pp file: replication => [ { name => 'local', url => xyz, push => ['refs/heads', 'refs/tags'], }, { name => 'github', url => abc, push => ['refs/heads', 'refs/tags'], }, ] How to define template to output the…
user1536782
  • 71
  • 1
  • 2
0
votes
1 answer

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 output log gives the following output showing a…
nulltek
  • 1,251
  • 3
  • 14
  • 22
0
votes
1 answer

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 achieve is to be able to shutdown the machine, waiting…
JonoB
  • 63
  • 7
0
votes
0 answers

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 my applications are affected. There is a gem…
user3145800
  • 151
  • 1
  • 2
0
votes
1 answer

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 chef-full.erb. Waiting for sshd access to become…
Pedro
  • 281
  • 2
  • 8