Open phynias opened 6 years ago
figured out my own you need the platform for version older than 1.1.5 gem install sys-proctable --platform linux -v 0.9.8
never mind that doesnt work either.
/usr/lib/ruby/2.4.0/rubygems/dependency.rb:310:in
to_specs': Could not find 'sys-proctable' (= 0.9.8) - did find: [sys-proctable-0.9.8-universal-linux] (Gem::MissingSpecVersionError)`
Hm I see that version still on rubygems: https://rubygems.org/gems/sys-proctable/versions/0.9.8-universal-linux and I can install it:
$ gem install sensu-plugins-docker
Fetching: sys-proctable-0.9.8-universal-linux.gem (100%)
Successfully installed sys-proctable-0.9.8-universal-linux
Fetching: net_http_unix-0.2.2.gem (100%)
Successfully installed net_http_unix-0.2.2
Fetching: sensu-plugins-docker-3.1.1.gem (100%)
You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu
Successfully installed sensu-plugins-docker-3.1.1
Parsing documentation for sys-proctable-0.9.8-universal-linux
Installing ri documentation for sys-proctable-0.9.8-universal-linux
Parsing documentation for net_http_unix-0.2.2
Installing ri documentation for net_http_unix-0.2.2
Parsing documentation for sensu-plugins-docker-3.1.1
Installing ri documentation for sensu-plugins-docker-3.1.1
Done installing documentation for sys-proctable, net_http_unix, sensu-plugins-docker after 0 seconds
3 gems installed
I am guessing this may be contributing to your issue:
GEM_PATH=/root/.gem/ruby/2.4.0:/usr/lib/ruby/gems/2.4.0
What you might try:
/opt/sensu/embedded/bin/gem install sensu-plugins-docker
$GEM_HOME
var to point to a non privileged locationOne final plea if this is for a production environment please pin your gem versions
looks like the verison of sys-proctable you are using isn't there anymore, and it won't run on the newer version either.