Stack Exchange Network

Stack Exchange network consists of 175 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
2answers
2k views

Apache Passenger displaying my Rails application contents?

I have installed mod_rails (phusion passenger) for Apache on Ubuntu 11.10. Ruby and Rails are running fine, and so does mod_rails. I have setup a site on dev.localhost, which is my ruby app. The app ...
2
votes
0answers
337 views

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

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
0answers
35 views

How to dynamically configure Nginx load balancer to send specific requests one server

For the purpose of debugging and testing, I am looking at ways to send requests pertaining a particular, say customer ID, from the Nginx load balancer to a specified machine. I am using Nginx on my ...
0
votes
1answer
2k 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 enable ...
0
votes
1answer
91 views

Puma with systemd and socket activation - Errno::EADDRINUSE

I have a Rails 5 app, running on puma 3.12.1, MRI 2.6.2, and Ubuntu 18.04. It used to run with pumactl and a custom control script but I want to configure it properly with systemd, using socket ...
0
votes
1answer
1k views

How to start passenger nginx, error : Signal received. Gracefully shutting down… (send signal 2 more time(s) to force shutdown)

Application is broken in production mode and getting below error while restarting passenger and nginx. [ agents/LoggingAgent/Main.cpp:338 ]: Signal received. Gracefully shutting down... (send signal ...
0
votes
1answer
1k views

ruby complains about a package being not installed which actually is installed

This question might be very unprofessional but I'm very not into Ruby and I have no clue where to start.. I used to run Jekyll which runs asciidoctor to render html pages. After a Fedora update ...
0
votes
1answer
639 views

TCP connections between docker containers timeout after ~10000 connections

I have 2 containers defined in a docker-compose.yml file, and am using them to run some rspec tests in a CI pipeline - the first container executes the tests, the second is an nginx container that is ...
2
votes
1answer
81 views

Puppet: Replacing create_resources() with hash iteration

We're migrating from Puppet 2 to 5. It seems the scoping is a little different. Before, when using create_resources() with a hiera_hash and a default hash, variables from within the calling script ...
0
votes
1answer
41 views

WP-DEPLOY : Cannot Push database

So I've been trying to set up Wp-Deploy for about 3 weeks now :( I have a digitalocean droplet that I am using for staging and was able to finally get my local environment to deploy the files to the ...
0
votes
1answer
1k views

Host multiple Rack apps on one server with multiple ports (using Apache and Passenger)

I've search online and been reading documentation for Apache, Passenger, Rack, etc, but have yet to find a solution to my problem. I have several Rack (ruby)-based apps, located in /home/web/sites/...
8
votes
5answers
14k 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 ...
1
vote
0answers
60 views

/home/webapp: No such file or directory elastic beanstalk

When I deploy my ruby app on aws using elastic beanstalk. Following error occur. pass log App 20278 stdout: intializing git App 20278 stderr: error: could not lock config file /home/webapp/.gitconfig:...
4
votes
1answer
614 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
0answers
40 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
1answer
474 views

Ruby: hide WEBrick httpd version

I using OpenVZ Web Panel to manage my VPS servers and when I scanned my server with nmap I saw: PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 6.0p1 Debian 4 (protocol 2.0) 135/tcp filtered msrpc ...
0
votes
1answer
65 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] ...
1
vote
1answer
713 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 ...
0
votes
1answer
54 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
102 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 ...
5
votes
6answers
4k views

Scripts That Need (some) Root Access

I have a general question about system administration scripts that require "some" commands to be executed with root access, and other as a normal non-root user (ie myusername, etc.). I should mention ...
0
votes
1answer
2k views

Yum install libyaml has depsolving problems

Trying to get ruby up and running on a centos 5 box. yum install libyaml-devel Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed ...
1
vote
1answer
199 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
1answer
909 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
1answer
320 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 ...
8
votes
4answers
8k views

Uninstall ruby from source

I installed ruby 1.9 on my fedora 13 machine from source. I want to go back and use the older 1.8.6 (which I'll install with yum), unfortunetly it appears that I can't simply uninstall my current ...
0
votes
2answers
2k 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 ...
5
votes
1answer
2k 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
463 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....
1
vote
0answers
58 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
2answers
10k 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
1answer
91 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
1answer
78 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
70 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
193 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
383 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
602 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
3answers
1k views

Running recipe name

In Chef, is possible to get the recipe name when this recipe is running? I want to add recipe name on logging/debugging. Something like: Chef:Log.info "#{recipe_name} xxxx"
0
votes
1answer
607 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 ...
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
95 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
534 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
4answers
10k 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 ruby-2.0....
4
votes
2answers
720 views

How do I write a local test with Serverspec?

So far Serverspec is working out great. I'm testing my servers, everything looks good. Let's say I want to test my LDAP cluster via running a few LDAP commands from my local workstation, say ...
1
vote
0answers
710 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
2answers
352 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/...
2
votes
0answers
131 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 ...
1
vote
0answers
2k 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 ...
3
votes
1answer
3k 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 6.3....
1
vote
0answers
221 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 ...