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

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

Elasticsearch & Searchkick error when server has less than 5% free space

I have a Ruby on Rails project that's using Elastic Search and Searchkick gem, hosted on Digital Ocean server. Every week or so, the logs or something will take up the space on the server, and when ...
0
votes
0answers
8 views

Chef: run package resource with -y option

Im running into problem where I have to confirm that everything is ok. Is it possible to run chef package resource with -y option?
1
vote
0answers
18 views

Installing sensu plugins as per ruby version

I have Ruby version 2.3 installed and I was looking to install sensu-plugins-http:6.1.0 because the latest version was installing another dependency which needs ruby to be on higher version. Like this ...
1
vote
0answers
218 views

Sidekiq not starting on Ubuntu 18.04 LTS in production

I am trying to run Sidekiq in production using Systemd. I am receiving the following error when trying to start sidekiq. /bin/bash -lc "bundle exec sidekiq -e production -C config/sidekiq.yml -L ...
0
votes
0answers
15 views

Unable to run custom plugin using Choria - what am I missing?

I have created a new custom RPM plugin in Ruby, and pushed this out to the choria server using the Puppet choria module. This module defines a new class "smx" that contains various ...
0
votes
0answers
1k views

Getting 502 response upstream prematurely closed connection while reading response header from upstream on elastic beanstalk using Nginx + puma

I'm getting this error in log files. it happens when a person reloads page many times. other than that website is working fine. I'm using elastic beanstalk with Nginx + Puma. upstream prematurely ...
0
votes
0answers
197 views

Node.js version is not compatible in App Engine deployment with webpacker: Rails 6

I have been strugling a lot with this problem. In context, I've been deploying my rails app to GAE with 'gcloud app deploy' around 2 months ago and I've never had an issue with it. However, today I ...
0
votes
1answer
26 views

Where shared object is located in Linux

I want to know , where .so file information got stored in linux? I am looking for libruby.so.2.6. when I searched in internet , ld.so first starts the search with LD_LIBRARY_PATH and then it will look ...
0
votes
2answers
146 views

Why is curl failing to download from cache.ruby-lang.org when ping works?

I have an issue similar to this: Wget, Curl, Yum Fail but Ping works - CentOS 5 In my case, I have 2 Ubuntu 18.04 servers which are failing to download from cache.ruby-lang.org: curl -O https://cache....
1
vote
0answers
226 views

Elastic Beanstalk Puma NGINX - Ruby on Rails Load Issues

I have an Elastic Beanstalk instance running Ruby on Rails using Puma with Ruby 2.6 running on 64bit Amazon Linux/2.11.7, the instance is scaled to a c5.2xlarge and a database of db.m5.large. The ...
0
votes
0answers
21 views

Rails Passenger random fail

We have an in house Rails app being moved to HyperV RHEL8 VM. The app generally works well. The issue is that randomly Apache loads the test page instead of offloading to passenger. passenger-status ...
0
votes
1answer
169 views

Is it possible to forward 127.0.0.1:port to publicip:4567?

I have a ruby server running , based on the following repository https://github.com/BuffaloWill/oxml_xxe I am running Ubuntu without vnc installed. I tried to access the server via my public ip and ...
1
vote
1answer
125 views

Gitlab prometheus error after upgrade with apt-get upgrade

after upgrading my gitlab from 10.9.2 to version 10.10 on my Ubuntu 18.04 it was not possible for the apt-get upgrade process to end successfully. It ended with following message: Ensuring Prometheus ...
0
votes
1answer
69 views

Is it possible to specify the same availability zone as my EBS storage when creating a new EC2 instance?

Right now I have an EBS storage volume in the us-east-2b availability zone. However, I have some code that is automating the process of creating an instance and it's using us-east-2 as its ...
0
votes
0answers
32 views

Failed to run multiple Rails apps with Unicorn + Nginx on single AWS EC2 Instance

I know this issue has been discussed several times but I had no luck and I couldn't fix the issue. I am going to run multiple Rails apps on AWS EC2 Instance with Unicorn and Nginx. I could run one ...
0
votes
1answer
807 views

Puma & NGINX upstream timed out (110: Connection timed out)

Accessing Puma app running with systemd service behind Nginx proxy results in the following error in nginx error.log: *6 upstream timed out (110: Connection timed out) while reading response header ...
0
votes
1answer
75 views

any way to run passenger-status --show=requests without being root?

Periodically in production we get these ruby processes that hang up. I just discovered passenger-status --show=requests Which gives me exactly what I want. I want to write some code to build out ...
0
votes
1answer
548 views

Bind to slapd ldap server using uid instead of cn

I'm trying to connect to an LDAP server running slapd, using the net_ldap ruby gem. I'm able to perform the bind action using the cn of the user, but I need to use the uid. The LDAP server was ...
1
vote
0answers
55 views

Puppet 4.10 Regex

I'm trying to add a 'type' layer to our hiera backend so webservers can get common configuration, databases get some common configuration, etc. Our hostname scheme is [env][number].domain.tld where [...
1
vote
0answers
98 views

How to upgrade Ruby Bundle version in AWS Opsworks

I have a project running on AWS Opsworks, which has current bundler version of 1.5.3 on Ruby 2.2.2. i want to upgrade the bundle version to 1.17.3 but when i try to do it i am getting this error ...
0
votes
1answer
226 views

Ruby on Rails Deployment to Server resulting in old Wrapper Scripts

I'm trying to deploy my RoR Application to an Ubuntu (Latest Version with Updates) Server. The Application will run with the Gem "Passenger". However, i am unable to run Passenger. rvmsudo bundle ...
2
votes
0answers
25 views

Deploying a c-compiled ruby gem with puppet module

I have a type/provider module that depends on a c-compiled gem. What is the best way to package this up and deploy to the users? Is the SOP to install the gem as a package (using gem provider) first, ...
1
vote
2answers
261 views

Ruby app onetimesecret failing to start from systemd unit

I'm trying to install ruby app onetimesecret on CentOS 7.4.1708 (Core) by this manual: https://github.com/onetimesecret/onetimesecret. Ruby is installed with rvm. Everything is fine while running ...
1
vote
2answers
2k views

AWS CloudFormation: Internal Failure. Rollback requested by user

I am creating a stack via the AWS Ruby SDK v3 and it is failing with an internal error. After a long period of time (30-40 minutes) it fails and rolls back with an internal failure. No resources show ...
0
votes
0answers
104 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 ...
1
vote
1answer
1k 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 ...
2
votes
1answer
5k 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 ...
3
votes
1answer
747 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
58 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 ...
1
vote
0answers
329 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:...
0
votes
0answers
52 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/...
1
vote
1answer
282 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
120 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
232 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
464 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
770 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 ...
2
votes
1answer
3k 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 ...
1
vote
0answers
72 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
722 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
1answer
111 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
121 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
113 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
287 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 ...
3
votes
1answer
594 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
1k 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
40 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
141 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
857 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
836 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-...
3
votes
0answers
189 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
2 3 4 5
10