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
2answers
23 views

Running startup shell script for ruby application as other user (not root)

I have installed RVM using 'user01' on Ubuntu 14.04 and user01 can start my rails application as expected. I, however, want to start this application following system start-up. I am trying to use the ...
0
votes
1answer
38 views

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

How to make AppArmor profile for Ruby script

i created apparmor profile by following way: aa-genprof test.rb above command successfully created apparmor profile for that test.rb, Now i wants that this test.rb file should not create anything ...
1
vote
1answer
14 views

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

How to get á,ű,ú characters instead of ?? using JRuby IRB? [migrated]

I need to use the Hungarian chars mentioned in the title, but somehow JRuby doesn't seem to accept those, and shows ?? instead of them. The OS is Centos 7, but the same thing happens on 6.5. The ...
0
votes
0answers
23 views

Benchmark network (internet) connection on server

I have a dedicated ubuntu server I rentet. Now I'm running a lot of ruby background processing on that server, that - among other things - does a lot of get requests to very small images (about 10kb) ...
1
vote
1answer
111 views

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 ...
0
votes
0answers
22 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
1answer
140 views

Ruby gems issue on Openshift origin on fedora 20

I meet some problem when checking bundle dependency on cd /var/www/openshift/broker bundle --local This is the error message, Bundler could not find compatible versions for gem "activesupport": ...
1
vote
0answers
103 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 ...
0
votes
1answer
93 views

How to resolve the chef error “can not find a plugin for dependency linux::network”?

There are no google hits for this error message. I am attempting to run chef-client on a server that has run it successfully in the past. I do not know what changed to produce this error. Here is the ...
1
vote
0answers
185 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 ...
0
votes
1answer
49 views

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...
0
votes
1answer
19 views

Why is the ruby install so slow

The recommended way to install ruby is through rvm and rbenv. Why are these methods so slow? I have seen packages 10x times larger installing in much quicker time.
0
votes
0answers
35 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
1answer
85 views

PHP/Ruby captive portal first domain seems cached

I have created a captive portal with iptables I use what many people seem to use : Users can request DNS, packet marked as 99. 99 means no internet else the user does have access. When a user ...
2
votes
1answer
979 views

Configuring Nginx, Thin and Rails. Can access static pages but not dynamic

I have set up nginx (nginx.conf below) and thin. Both nginx and thin (2 servers) are running (I have checked they are running). I can access a static page in the rails public directory such as ...
0
votes
0answers
157 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
1answer
352 views

Creating an EC2 instance with Ruby SDK without ephemeral storage

I use the Ruby AWS-SDK to create EC2 instances like this : instance = ec2.instances.create({ :image_id => WORKER_AMI, :instance_type => instance_type, :key_name => ...
0
votes
1answer
40 views

Use 'commands' ruby puppet function outside of puppet provider

to allow me to easier debug my providers, I sometimes wanna use 'command' in my own ruby code. Trying to figure out how is problem. This is how I use it inside a provider: commands :wget => ...
0
votes
3answers
530 views

Foreman installation on amazon ec2 instance

Hi there and thank you for reading, I am currently in the process of setting up a puppet service for our ec2 instances and decided to give foreman a try (node certificate management and automatic ...
0
votes
1answer
1k views

Organize code in Chef: libraries, classes and resources

I am new to both Chef and Ruby and I am implementing some scripts to learn them. Now I am facing the problem of how to organize my code: I have created a class in the library directory and I have used ...
0
votes
1answer
55 views

Puppet master receiving a YAML error after upgrade to 2.7.25-2

Our puppetmaster server was upgraded to the latest available on RHEL6 (puppet-2.7.25-2.el6.noarch). We are now receiving errors such as this on the master: Aug 26 11:36:59 master1 ...
1
vote
0answers
54 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 ...
0
votes
2answers
331 views

Puppet template erb if variable is not defined keep default

I am trying to learn puppet and I can not understand how I can setup template erb to choose default value if variable is not defined in common.yaml or in node.yaml. This is what I have tried: 1) # we ...
0
votes
1answer
98 views

Configure server for gitlab [closed]

I have a server where VestaCP installed (apache2 is back-end, nginx is front-end). Also, I successfully installed ruby, gitlab shell and gitlab. When I type sudo -u git -H bundle exec rake ...
0
votes
2answers
746 views

Unicorn installation error on Debian 5

I am running ruby1.9 on Debian 5, and did not manage to install 'unicorn' with rubygems. I got this error and do not really know how to solve it. Do you have any idea of the possible root cause ? ...
1
vote
2answers
2k views

GitLab & nginx: 502

I've installed GitLab, following the given official instruction, but I'm getting 502 error when trying to use it. Nginx log entry: *30 upstream prematurely closed connection while reading response ...
0
votes
0answers
99 views

Linux server backup to Amazon S3 using SSL

I have Linux box CentOS 6.5 and i want to backup daily files like SQL dumps and config files to Amazon S3 I have installed Ruby and S3Sync. But the problem when running the s3sync with these ...
1
vote
1answer
76 views

EC2 : How to assign multiple elastic IPs to a single network interface via SDK

Would anyone know how to associate multiple Elastic IPs to a single instance via the Amazon SDK ? In Ruby, I've tried to use both the aws-sdk and fog gems, which work fine for a single address, but ...
1
vote
0answers
494 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 ...
0
votes
1answer
83 views

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 ...
1
vote
0answers
112 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 ...
0
votes
2answers
137 views

How to debug Repository.fetch_changesets runned from ./script/rails runner

For some time I have been updating changesets manually on server with following command's: $ cd /custom/www-data/ $ source /custom/www-data/.rvm/scripts/rvm $ ./script/rails runner ...
0
votes
1answer
42 views

Why don't RedHat 5.x compiled Ruby-binaries work on Fedora 17?

I have compiled Ruby 2.0.0p247-binaries on a RedHat Enterprise Linux 5-system. When I require 'net/https' on this same system, everything is fine. The binaries have been installed on a common ...
-1
votes
2answers
700 views

Install ruby by rvm

I try to install ruby 2.1.1 by RVM and I receive following error: vmamaev@vmamaev:~$ rvm install ruby-2.1.1 ruby-2.1.1 - #removing src. Searching for binary rubies, this might take some time. No ...
1
vote
3answers
3k views

Ruby Install on CentOS

I’m trying to install Ruby on Centos-6.4 64-bit as following: mkdir /tmp/ruby && cd /tmp/ruby curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | tar xz cd ...
0
votes
1answer
267 views

chef remote_file is throwing Encoding::UndefinedConversionError

I have the following in a chef recipe: remote_file '/tmp/zint-2.4.2.zip' do source 'https://s3.amazonaws.com/mybucket/zint-2.4.2.zip' checksum ...
0
votes
1answer
893 views

Cannot set postgres user password

Trying to install PostgreSQL with Ruby on Rails with Nginx on CentOS 6.5 using the following guide: ...
0
votes
1answer
249 views

Trouble setting up Ruby with Nginx on CentOS 6.5

Following the instructions here: https://www.digitalocean.com/community/articles/how-to-deploy-rails-apps-using-passenger-with-nginx-on-centos-6-5 I get to the point of "Use vim /etc/init.d/nginx to ...
1
vote
0answers
15 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 \ ...
0
votes
1answer
224 views

Should I install ruby as root or user? [closed]

I'm not sure which option to take. I'm installing ruby on VPS. My options: Install ruby from ubuntu repository Install RVM Install RVM as user Install RVM as root I've 1 user VPS, that handles ...
1
vote
1answer
54 views

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 ...
4
votes
8answers
2k views

How can I get alerts when my site is down?

My blog is a custom ruby/rack application, and has been crashing randomly every couple of weeks. I sometimes don't notice for days, and I'd like to be notified immediately if it happens. What's the ...
0
votes
1answer
31 views

wants to provide password to tightvnc server by using script

I am installating tightvnc server on my ubuntu machine by using ruby script my script contain following: #!/usr/bin/ruby env `sudo apt-get --force-yes -y install tightvncserver` `printf ...
2
votes
1answer
133 views

Share Ruby Programs between Linux users

Our Linux (Mint) system has 2 admin users - mint & admin. What do we need to do for admin & mint to be able to share gems? Mint has chef, berkshelf & knife-ec2 installed via bundler in ...
0
votes
2answers
790 views

Compiling Error of Ruby 1.9.2 on CentOS

all. I downloaded the ruby source from the offical site http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz. But I got some compiling errors when I did as the README told me: tar -xzf ...
1
vote
1answer
7k views

configure: error: C compiler cannot create executables while build ruby from source [closed]

I've checked a number of similar questions on stackoverflow but haven't found an answer yet. I am trying to build Ruby from source as describe here: ...
1
vote
2answers
2k views

Activesupport gem complains that it needs ruby 1.9.3 while it is already installed

I have problem installing paperclip gem in Ubuntu 12.04.2 LTS. Activesupport complains that it needs ruby 1.9.3 but I have it already installed. root@Ubuntu-1204-precise-32-minimal ...
1
vote
3answers
991 views

How should secret files be pushed to an EC2 (on AWS) Ruby on Rails application?

How should secret files be pushed to an EC2 Ruby on Rails application using amazon web services with their elastic beanstalk? I add the files to a git repository, and I push to github, but I want to ...