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
2
votes
2 answers

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 with SELinux disabled. Following is the out of df…
Saad Masood
  • 179
  • 3
  • 10
2
votes
2 answers

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 df -h this is what appeared: Filesystem …
Sarah cartenz
  • 123
  • 1
  • 4
2
votes
1 answer

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 Rails application using Elastic Beanstalk to work…
2
votes
0 answers

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 one user on this server, root. Google Cloud -…
Ralph
  • 862
  • 11
  • 26
2
votes
1 answer

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

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: https://www.ruby-lang.org/en/installation/#building-from-source Here what i am…
Pradeep Gupta
  • 387
  • 2
  • 5
  • 18
2
votes
1 answer

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 the /home/mint/rbenv/ directory. When switching to admin,…
csi
  • 1,555
  • 7
  • 23
  • 42
2
votes
1 answer

Redmine won't start after move

I met trouble with redmine(or ruby configuration) when move from one server to another redmine@dirty:~/www$ ruby script/rails server webrick -e production /usr/local/rvm/gems/ruby-2.0.0-p353/gems/mysql2-0.3.14/lib/mysql2.rb:8:in `require': Incorrect…
ruX
  • 71
  • 5
2
votes
1 answer

Installing Phusion Passenger with Ruby 2.1.0

I'm following the guide for installing Passenger on Ubuntu, but when running sudo apt-get install libapache2-mod-passenger it tries to install Ruby 1.9.1. I already have Ruby 2.1.0 (installed via RVM). How can I make Passenger use the existing Ruby…
2
votes
1 answer

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 => 'cloud', :security_groups => 'worker', :user_data =>…
aurels
  • 273
  • 2
  • 6
2
votes
1 answer

Easier way to apply one condition to a set of Chef resources

In this part of a Chef recipe, there are 4 execute resources. They should only run when a file does not exists. This is added as a condition to the first resource, which then triggers the entire chain to be run. # Set up default SSL cert execute…
Bart van Heukelom
  • 1,199
  • 6
  • 21
  • 41
2
votes
1 answer

Execute gitlab sidekiq (rake task) with upstart

I'm trying start the gitlab sidekiq daemon through upstart. But unfortunately it seems that the sidekiq worker is respawned since sidekiq start deamonizes itself: Jul 12 17:26:42 git kernel: [370722.042968] init: gitlab-sidekiq main process (28251)…
Pascal
  • 320
  • 2
  • 12
2
votes
2 answers

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 header from upstream, client: 95.27.118.xx, server:…
artem
  • 596
  • 2
  • 10
  • 28
2
votes
1 answer

Best practice for setting up RVM, Passenger/Apache with multiple Rubies and running as specific users?

My goal is to run ruby applications under different server users with potentially different versions of ruby. So i would have users that serve as the "hosting account" essentially. Document root/application files will live in their home directory…
prodigitalson
  • 213
  • 3
  • 9
2
votes
2 answers

How do I completely remove all Ruby gems?

I am trying to completely remove my Ruby and Rails installation. After uninstalling Ruby with apt-get remove ruby1.9.1 I see that all the Ruby stuff like ruby, rake and irb from "/usr/bin" was removed but the gems remain…
Slinky
  • 1,027
  • 3
  • 15
  • 26
2
votes
1 answer

Chef / ruby / erb files - How does this example code work?

I am working on a custom bootstrap template, based on a sample template. I am looking at the example of getting the validation key from the workstation to the brand new server, and from what I can tell is the key path is specified in knife.rb in…
Jeff V
  • 229
  • 3
  • 11