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

3
votes
1answer
619 views

omnibus installed chef and rvm issues

I'm trying to figure out one thing and would like someone's else view on this. I installed chef on my Ubuntu server (11.10) via the awesome omnibus install. It worked perfectly fine. I was able to run ...
3
votes
1answer
502 views

Installing resque on amazon ec2 instances

My problem is to process images through ec2 instances. Based this similar question: Separate server for Resque workers And in this article: ...
2
votes
1answer
2k views

bundler: command not found: unicorn_rails

While restarting gitlab I get this: Starting both the GitLab Unicorn and Sidekiqbundler: command not found: unicorn_rails Install missing gem executables with `bundle install I installed gitlab ...
2
votes
1answer
468 views

Unable to set nginx to serve my staging website

I'm having some troubles setting up nginx to serve my staging website. What I did is change the server_name but for some reasons it just doesn't work. The url scheme is "domain.foo" is production, ...
2
votes
1answer
857 views

How do I get supervisord to use a user's rbenv environment?

I've daemon owned that I'd like to have system supervisor manage. The daemon has its own user and, being done up in ruby, it's own rbenv environment. The supervisord conf for the daemon: ...
1
vote
1answer
23 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 ...
1
vote
1answer
180 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 ]: ...
1
vote
1answer
122 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 ...
1
vote
1answer
111 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
1answer
208 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 ...
1
vote
1answer
203 views

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 ...
3
votes
0answers
58 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 ...
2
votes
0answers
274 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 ...
2
votes
0answers
100 views

Apache2 + mod_ruby - how to handle all requests with one script?

I was about writing my own HTTP Server. Well I did, but conerning security issues it was too time expensive doing it on and I drove back having a unique solution with Apache2 and Mod_Ruby in-between. ...
1
vote
0answers
32 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
21 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, ...
1
vote
0answers
267 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
0answers
33 views

ubuntu 12.04 ruby1.8 depends on libreadline5 which does not exist any more?

I just built a new 12.04 ubuntu box and tried to install puppet package. This failed because it could not load ruby1.8. After some fiddling around I tracked the issue down to the fact that the ...
1
vote
0answers
110 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 ...
1
vote
0answers
203 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 ...
1
vote
0answers
763 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
0answers
36 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 \ ...
1
vote
0answers
254 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 ...
1
vote
0answers
310 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
0answers
658 views

Mongrel failing to start after an OS update

So there's this installation on a virtual server, administered by Plesk, running CentOS. The OS has been automatically updated recently - this broke a custom ruby installation. I haven't set up the ...
1
vote
0answers
490 views

Ubuntu, ruby 2, rails 4

I'm trying to setup a server, which has Ubuntu 10.04 LTS, Ruby 2.0.0-p0 and Rails 4 beta1. I can get everything installed but rails 4 has a slight error and I'd like to get someones opinion. When I do ...
1
vote
0answers
493 views

nginx proxy_pass to different backends based on location / passing rewrited url

What the quickest and cleanest solution if you want to proxy URL request to two different backends via proxypass based on location. location /app1/ { alias /var/www/ruby/public; ...
1
vote
0answers
108 views

Why doesn't Chef use my default attributes in my development environment?

I inherited our company's Chef repository and I'm learning as I go. One issue that I've found a workaround for (but would like to understand or avoid if possible) is that attribute defaults specified ...
1
vote
0answers
398 views

Why does my long-running nohup process quietly stop processing on Mac OSX?

I have a Ruby rake process that does a whole lot of intensive data loading and manipulation. When run a against a particularly large file, the process will run for several hours (which is fine), but ...
1
vote
0answers
522 views

How are these AB Benchmarks for a ruby/unicorn/nginx/ app running on ec2?

I am preparing to go live with an app, and was wondering if someone can give me some insight on my benchmarks. How do they compare, what system level tweaks can I make to improve them etc. My setup ...
1
vote
0answers
124 views

Rails could not find gem

So if I try to start my server I get the error Could not find abstract-1.0.0 in any of the sources Try running bundle install. I run that and I get Using abstract (1.0.0) I also have the gem ...
1
vote
0answers
206 views

gem mirror segfaulting

I'm trying to create rubygems mirror on my VDS doing the following: $ gem mirror $ gem generate_index -d /home/rubygems/mirror The problem that each time I run first command ruby segfaults with ...
0
votes
0answers
14 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 ...
0
votes
0answers
53 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 ...
0
votes
0answers
57 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; ...
0
votes
0answers
43 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 ...
0
votes
0answers
23 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
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") ...
0
votes
0answers
57 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
0answers
88 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 : ...
0
votes
0answers
108 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 ...
0
votes
0answers
71 views

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 ...
0
votes
0answers
1k views

Apache 2.4 & Phusion Passenger generating 403 Error

I'm trying to setup a Rails application (Project Fedena) on the following Server configuration. I am using the virtual host configuration below. I get a 403 when I visit the IP/Domain. There's only ...
0
votes
0answers
378 views

Installed Ruby gems not in path on CentOS 7

After installing a gem via gem install --no-ri --no-rdoc gemname while sudo'ed via sudo -s it is not showing up in my path. If I drop privledges and go back to my user or if I sudo su - it shows up ...
0
votes
0answers
89 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
0answers
361 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
0answers
165 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
0answers
563 views

redmine in subfolder issue (Apache, mod_passenger, Ruby + Drupal site in main folder)

I have Redmine in subfolder /var/www/redmine and Drupal in folder /var/www/ When I go to URL mysite.com/redmine, Redmine shows ok, but mysite.com/redmine/login is (over)handled by Drupal. Apache ...
0
votes
0answers
39 views

Using Ruby on share web hosts

We are developing a Wordpress theme and we are going to publish it on themeforest.com. We are using Sass(scss Syntax) as our CSS Preprocessor and we need to compile it on server side. We have two ...