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
503 questions
Score of 2
1 answer
106 views
facter fails with: Syntax error: word unexpected (expecting ")")
Ich was working with puppet and facter to collect information from the puppet node. Testing the *.rb script however regularly failed with
WARN backup_key.rb - Command /opt/puppetlabs/facter/facts.d/...
Score of 1
1 answer
293 views
rvm install ruby can't find openssl directory
I was trying to install ruby-2.3.8 with rvm and got this error:
rvm install ruby-2.3.8 \
Searching for binary rubies, this might take some time.\
No binary rubies available for: ubuntu/24.04/x86_64/...
Score of 4
2 answers
718 views
confused by appamor's execute options
I am attempting to use rsyslog's omprog output driver to process logging data and apparmor is preventing the program starting.
Aug 14 07:55:29 secmgrprd09 kernel: audit: type=1400 audit(1755114929.929:...
Score of 0
0 answers
235 views
Install redmine in user environment, ubuntu 24.04
I'm trying to set up a production ubuntu 24.04 system with redmine 5.1.9 running in a user account. We have no intention of doing any ruby development whatsoever.
I've installed apache, mysql, build-...
Score of 0
1 answer
91 views
How to add SSH `-o` options to Ruby’s tty-command?
I have a site on an older version of Debian (update pending for various reasons). To log in to the server on the command-line I needed to add rsa key options to my SSH "config" file:
Host ...
Score of 0
0 answers
265 views
The way of logging at action of controller in Ruby on Rails for debug purpose
I am just trying to know if router is reaching to specific action of controller.
In js, we are using console.log and var_dump in php.
I tried with puts but it didn't work and I think it's because of ...
Score of 0
2 answers
367 views
rb_sys_fail_path_in(rb_file_s_rename, (filepath1, filepath2)- errno == 0 error when running a newly installed version of chef
I have 1 box that seems to not want to run chef, while I have 5 other identical boxes that are working just fine using the same rhel and chef versions. On the non-working box, Chef runs correctly when ...
Score of 0
1 answer
1404 views
AWS ElasticBeanstalk: Early termination of worker [puma] Loading development - gems?
I'm currently upgrading rails from 6 to 7 and so had to upgrade my eb platform-version as well (to run ruby-3.0).
Now puma isn't able to start and always looping through:
[13033] + Gemfile in context: ...
Score of 1
0 answers
335 views
Scalelite Load balancer giving error when trying to add new servers
I have two stand alone Vms in vultr running on Ubuntu 18.04 and on top of it I have installed Bigbluebutton server configs and a Greenlight frontend.
I have configured another server for scalelite on ...
Score of 1
1 answer
5383 views
/usr/bin/env: ‘ruby2.7’: No such file or directory
I'm trying to setup ruby using rbenv on a server, instead of the apt-get installed version of ruby and bundler.
I followed Digital Ocean's guide, deviating only on ruby version (I need 2.7.1) and ruby ...
Score of 0
0 answers
131 views
Extra trailing slash when re-directing www to non-www
This is my current configuration:
server {
if ($host = www.mywebsite.com) {
return 301 https://mywebsite.com$request_uri;
} # managed by Certbot
if ($host = mywebsite.com) {
...
Score of 0
1 answer
2298 views
Passenger not running (Ruby on Rails + Nginx)
My AWS instance was working fine with my app. But, today, the server was down without memory ram. Then I run:
sync; echo 1 > /proc/sys/vm/drop_caches
sudo service nginx start
After that, ram ...
Score of 0
1 answer
2441 views
Why are cron jobs not being logged by rsyslog on Debian 10 buster?
(I figured this out, it was multiple problems...I'm leaving this as is and explain the process I took to resolve in my answer to this question)
I'm working on a simple Ruby script that runs as a cron ...
Score of 1
0 answers
194 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 ...
Score of 1
0 answers
559 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 ...