Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
21 views

gitlab installation failing on debian 9.6

I'm having a issue on Debian 9.6. When installing gitlab an error is returned: Setting up gitlab (8.13.11+dfsg1-8+deb9u3) ... Creating/updating gitlab user account... Making gitlab owner of /var/lib/...
0
votes
0answers
32 views

MySQL server won't start - ERROR! The server quit without updating PID file

So I have a newer macOS - macOS Mojave 10.14.1. The mysql version I have installed is 5.6 - and I unfortunately cannot upgrade (trying to run our company app, and our files syntax is stuck in 5.6 and ...
0
votes
1answer
30 views

A systemd service won't run for an app

I want to create systemd for "RAILS_ENV=staging bundle exec rake jobs:work" I have this: $ sudo cat /etc/systemd/system/my_bg_jobs.service [Unit] Description=bg jobs After=syslog.target [Service] ...
0
votes
1answer
28 views

Pipe filenames onto Rubocop

I'm trying to pipe filnames into Rubocop as such: $ git diff --name-only | tr '\n' ' ' | rubocop However Rubocop still checks all project files. Is there something wrong on my piping? On Rubocop? ...
0
votes
1answer
80 views

EasyRedmine rake redmine:email:receive_imap doesn't work

I'm trying to use redmine:email:recive_imap rake task on my company's Easyredmine Server to fetch emails from our server mail's adress, but when I launch the command: rake redmine:email:receive_imap ...
1
vote
1answer
135 views

Failed building puma 3.11.0 on Ubuntu 17.10

Tried to install puma with the following command sudo gem install puma -v '3.11.0' Got the below message: Building native extensions. This could take a while... ERROR: Error installing puma: ...
0
votes
0answers
61 views

Segfault linux centos 6

Hello serverfault community, In the past few days i get the following errors on linux console: The problem is i don't understand which package / application cause it. What i tried so far: check ...
0
votes
0answers
158 views

Unable to load application: Bundler::GemRequireError: There was an error while trying to load the gem 'fog'

I have been trying to run a Ruby/Rails application with the bootstrap script for AWS EC2 instance but I am getting the following error. I have tried installing all gems with bundle install because ...
0
votes
1answer
197 views

Trace rails email logs with postfix logs for email deliver-ability

I have rails application running, which send emails using postfix as relay. Here is flow Rails -> Resque workers -> Postfix -> SES -> email out to clients my problem is i want to find relation ...
0
votes
1answer
503 views

AWS Elastic Beanstalk - Socket failure on Puma server when more than 300 connections at a given time

I've been dealing with an, arguably, strange issue on a AWS Elastic Beanstalk environment. I'm getting the following nginx error when there are more than 300 connections on a single instance at a ...
0
votes
0answers
34 views

RedisIO not configuring in Chef

I keep running into this stack trace when attempting to configure RedisIO via Chef: Recipe: redisio::configure * redisio_configure[redis-servers] action run ==================================...
1
vote
0answers
46 views

How can I debug Ruby Process that keeps climbing?

A few days ago all 4 of my app servers started having issues. It came after I deployed some code, but all I did was update a local database file that stores some IP Addresses, so I didn't make any ...
1
vote
1answer
358 views

Get array output in puppet ERB from hiera

I have a array defined in the following format in hiera. master_servers: - "stage-01.com" - "stage-02.com" I am trying to populate the config file with ERB in the following format discovery....
0
votes
0answers
205 views

Install Easy Gantt plugin on Redmine - your bundle is locked to redmine_extensions (0.2.7)

I am using Redmine with: Redmine version 3.3.0.stable Ruby version 2.2.8-p477 (2017-09-14) [x86_64-linux-gnu] Rails version 4.2.6 And plugins: redmine_agile 1.4.0 redmine_wiki_extensions 0....
0
votes
0answers
47 views

Google App Engine - Ruby slowly increasing memory on Python-based image?

Edit: The problem appears to be related to fluentd, a logging service used for Stackdriver, that has a memory leak issue. This seems to run on almost any image for the App Engine. See: this problem ...
0
votes
0answers
43 views

GitLab CE 10.2.4 - can't run any rake task due to segmentation fault issue

Starting from today we are unable to run any gitlab-rake task . They simply fail all the times as follow: gitlab-rake gitlab:backup:create --trace : [BUG] Segmentation fault at 0x0000000000000000 ...
0
votes
1answer
78 views

What exactly is the difference between node vs @node in chef template files

I am new to chef and not able to get a hang of the difference between node vs @node usage in template files. I am not able to find a good documentation around this particular thing. Any explanation or ...
0
votes
0answers
429 views

Rails + Nginx +Puma Connection Timeout

Okay, so I have a server with rails app that servers 10 domains. Sometimes (and sometimes very often) i get message from UptimeRobot Monitor is DOWN: app.com - Reason: Connection Timeout. And of ...
0
votes
1answer
68 views

Explanation needed for entry in gitlab.rb file

in a project I´m working I got the task of being responsible for our gitlab server. In the gitlab.rb of this existing service I found the following line: nginx['custom_gitlab_server_config'] = "...
0
votes
1answer
51 views

ruby: symlink doesnt exist yet trying the command says it does?

I've borked something up somehow. On one of my servers, if I type ruby, I get the error bash: /opt/rh/rh-ruby23/root/usr/bin/ruby: No such file or directory which ruby gives: /usr/local/bin/ruby ...
0
votes
1answer
159 views

Gitlab login page is unreachable

I've configured accidentally that every logged out user will be redirected to x domain, this was done by using the admin panel in the web interface. Now, I only can access things via SSH like ...
2
votes
1answer
344 views

Set environment variables from header for Ruby/Rails app hosted in Nginx/Passenger

I installed a server for Redmine, running with Nginx/Passenger. The server also hosts Gitlab and it goes well. I put some kind of SSO plugin for Redmine (which I found and installed) and it needs an ...
0
votes
1answer
437 views

Chef template: Lookup a hash key by another variable

I'm trying to build nginx files for different environments. My recipe has a hashmap like so: domain = { production: { public: 'example.com', internal: 'example.dev' }, staging: { ...
0
votes
0answers
39 views

Interpolation in PHP for chef automation

Hi I am using chef for deployment automation of a wordpress site where in I need to read database, host, username and password from my shared.yml for wp-config.php so I am trying below code in my ...
1
vote
2answers
85 views

Permanent way to execurte a command for root on system startup in Mac OS

On Mac OS my CI server's build agent runs as root. I have messed with the ruby version on by defaul ruby -v reports version 2.0, while after eval "$(rbenv init -)" is being executed, I get a desired 2....
0
votes
1answer
407 views

Chef recipe gives error as undefined method 'split'

Hi I am using below in code in my chef recipe and it works fine with all the other existing servers however it doesn't work well with my new server. user_array = node node['user']['...
1
vote
0answers
614 views

Remove Ruby 2.4 and make 2.3 as default

I have two ruby installations on my ubuntu 14.04. like this nifras@Nifras-pc:~$ ruby -v ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux] nifras@Nifras-pc:~$ ruby2.3 -v ruby 2.3.3p222 (2016-11-...
1
vote
1answer
601 views

bundle exec rake -t loadError cannot load such file — rspec/core

debian wheezy ruby 2.4.0 (also tried with ruby 2.2.0) # I also installed rspec and rspec-core with : gem install rspec gem install rspec-core Execution of 'bundle env' gives : Bundler 1.14.4 ...
2
votes
0answers
107 views

Make puppet run without overwriting my gems in RVM installation

I have a puppet setup containing a puppet master and couple of nodes - this works as intended. However - on the latest node I am working on I need to install rvm/ruby+nginx/passenger. This is done ...
0
votes
1answer
572 views

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 ...
1
vote
0answers
181 views

Amazon Elastic Beanstalk's latest platform version is outdated

When creating my Elastic Beanstalk application, I selected the latest platform version of Amazon Linux running Ruby (Puma). But, it has an outdated version (compared to the current stable version) of ...
1
vote
1answer
138 views

chef recipe: fix flow of installation of packages

I am using chef for provisioning a vpn-server in my infrastructure. Below is the code which is used to install few components of libreswan-ipsec vpn. %w( libnss3-dev libnspr4-dev pkg-config libpam0g-...
7
votes
4answers
12k views

Gitlab: Extremely high memory consumption by ruby “bundle” process

I have a problem with my Gitlab installation running on a small Ubuntu LTS 16.04. I have to point out that I don't have much experience with Linux or Gitlab. My Gitlab installation with a few ...
2
votes
2answers
331 views

App Engine Ruby flex environment app.yaml is ignoring env_variables RAILS_ENV

We are using GAE with Ruby flexible environment, and we're trying to deploy a rails app with staging configurations (i.e. RAILS_ENV=staging). According to https://cloud.google.com/appengine/docs/...
1
vote
2answers
299 views

r10k on CEntOS 6.7, has anyone achieved this feat?

Do you guys know how one might run r10k properly on a CEntOS 6.7 server with Puppet 3.6? Is that a contradiction in terms? I checked the r10k source code's list of requirements: https://github.com/...
0
votes
1answer
90 views

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

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

Advice wanted: Docker Infastructure for the newbie, Flynn, Dokku and Deis or just plain docker?

To give some background we are a development Agency, mostly using Ruby/Rails to develop complex data driven web applications. These applications usually make use of various services such as a database,...
0
votes
2answers
23 views

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)....
2
votes
0answers
167 views

Custom gems in Puppet Provider

I am running Puppet 3.7 and I have the following issue: Installed the nokogiri gem on the agents with pe_gem. Wrote a custom provider that does require 'nokogiri' at the top. The Puppet run "...
0
votes
0answers
23 views

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 ...
0
votes
1answer
123 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
171 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
626 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
219 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
211 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
2answers
463 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 ...
1
vote
2answers
9k 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
227 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
129 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 ...