munin-plugins-rails icon indicating copy to clipboard operation
munin-plugins-rails copied to clipboard

Can't exec "/usr/local/bin/ruby"

Open barttenbrinke opened this issue 11 years ago • 5 comments

Alberto Galisteo Prieto 6:35 PM (2 hours ago)

Can't exec "/usr/local/bin/ruby": No existe el fichero o el directorio at /usr/lib64/perl5/vendor_perl/5.12.4/Munin/Node/Service.pm line 263.

FATAL: Failed to exec.

This is my problem

barttenbrinke avatar Sep 23 '13 18:09 barttenbrinke

Hi, It seems like you don't have Ruby installed or ruby can't be found at /usr/local/bin/ruby. Can you check if Ruby is installed? If so, check your munin conf to see if the path to ruby is correct: i.e.

[passenger_*]
  user root
  command /usr/local/bin/ruby %c

barttenbrinke avatar Sep 23 '13 18:09 barttenbrinke

I edit /etc/munin/plugin-conf.d/munin-node [passenger_*] user root command /usr/local/rvm/wrappers/ruby-2.0.0-p353@global/ruby %c

But i have error:

Can't exec "/usr/local/rvm/wrappers/ruby-2.0.0-p353@global/ruby": Permission denied at /usr/share/perl5/vendor_perl/Munin/Node/Service.pm line 263, <STDIN> line 20

Please, Help!

duhanov avatar May 07 '14 10:05 duhanov

Have you tried running the command from bash and sh? Do you get the same error? If so, what are the permissions on /usr/local/rvm/wrappers/ruby-2.0.0-p353@global/ruby?

barttenbrinke avatar May 07 '14 11:05 barttenbrinke

-rwxrwxr-x. 1 root rvm 304 Май 7 11:47 /usr/local/rvm/wrappers/ruby-2.0.0-p353@global/ruby

duhanov avatar Jul 02 '14 04:07 duhanov

I run: service munin-node restart (root) Error found in: /var/log/munin-node/munin-node.log

duhanov avatar Jul 02 '14 04:07 duhanov