Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installs, doesn't run #83

Open
cmagnuso-pimco opened this issue Apr 13, 2018 · 5 comments
Open

Installs, doesn't run #83

cmagnuso-pimco opened this issue Apr 13, 2018 · 5 comments

Comments

@cmagnuso-pimco
Copy link

$ sudo gem install knife-tidy
Successfully installed knife-tidy-1.1.0
Parsing documentation for knife-tidy-1.1.0
Done installing documentation for knife-tidy after 0 seconds
1 gem installed

$ sudo knife tidy server report --orgs xxx --node-threshold 50
FATAL: Cannot find subcommand for: 'tidy server report --orgs xxx --node-threshold 50'

@jeremymv2
Copy link
Contributor

@cmagnuso-pimco one way that this can happen is if you install the gem outside of either a ChefDK or Chef client (ie. a stand-alone ruby installation) That is because not all of the Chef libraries are present.

If that was the case here, please install a current ChefDK or chef-client first. Then attempt a re-install of knife-tidy.

If using a ChefDK install then you can install knife-tidy via:
chef gem install knife-tidy

Or if using a Chef client install then install knife-tidy via:
/opt/opscode/embedded/bin/gem install knife-tidy

With all the chef libraries installed, you shouldn't get the FATAL: Cannot find subcommand error.

@cmagnuso-pimco
Copy link
Author

cmagnuso-pimco commented Apr 13, 2018 via email

@lukum2118
Copy link

I have same issue:

[root@ knife-tidy-master]# /opt/opscode/embedded/bin/gem list

*** LOCAL GEMS ***

activesupport (5.1.4)
addressable (2.5.2, 2.5.1, 2.4.0)
appbundler (0.10.0)
artifactory (2.8.2)
ast (2.3.0)
bcrypt (3.1.11)
berkshelf (5.6.5)
berkshelf-api-client (3.0.0)
bigdecimal (default: 1.3.0)
binding_of_caller (0.7.3)
buff-config (2.0.0)
buff-extensions (2.0.0)
buff-ignore (1.2.0)
buff-ruby_engine (1.0.0)
buff-shell_out (1.1.0)
builder (3.2.3)
bundler (1.16.1)
byebug (9.1.0)
celluloid (0.16.0)
celluloid-io (0.16.2)
chef (12.21.31)
chef-config (13.0.118, 12.21.31)
chef-zero (5.3.2)
chef_backup (0.0.1)
cheffish (5.0.1)
chefstyle (0.5.0)
cleanroom (1.0.0)
coderay (1.1.2)
concurrent-ruby (1.0.5)
debug_inspector (0.0.3)
did_you_mean (1.1.0)
diff-lcs (1.3)
docile (1.1.5)
domain_name (0.5.20170404)
erubis (2.7.0)
faraday (0.13.1, 0.9.2)
faraday-http-cache (2.0.0)
ffi (1.9.18)
ffi-yajl (2.3.1)
fuzzyurl (0.9.0)
hashie (3.5.6, 3.5.5)
highline (1.7.10, 1.6.21)
hitimes (1.2.4)
http-cookie (1.0.3)
httpclient (2.8.3)
i18n (0.9.1)
iniparse (1.4.4)
io-console (default: 0.4.6)
ipaddress (0.8.3)
json (2.1.0, default: 2.0.4, 1.8.6)
knife-ec-backup (2.4.0, 2.2.3)
knife-opc (0.3.2)
knife-tidy (1.2.0)
libyajl2 (1.2.0)
method_source (0.9.0)
mime-types (2.99.3)
mini_portile2 (2.3.0, 2.1.0)
minitar (0.6.1)
minitest (5.10.3, 5.10.1)
mixlib-archive (0.4.1)
mixlib-authentication (1.4.2, 1.4.1)
mixlib-cli (1.7.0)
mixlib-config (2.2.4)
mixlib-install (3.8.0, 2.1.5)
mixlib-log (1.7.1)
mixlib-shellout (2.3.2, 2.2.7)
mixlib-versioning (1.2.2)
molinillo (0.5.7)
multi_json (1.12.2)
multipart-post (2.0.0)
net-scp (1.2.1)
net-sftp (2.1.2)
net-ssh (4.2.0)
net-ssh-gateway (1.3.0)
net-ssh-multi (1.2.1)
net-telnet (0.1.1)
netrc (0.11.0)
nio4r (2.0.0)
nokogiri (1.8.2, 1.7.2)
octokit (4.7.0)
ohai (8.25.1, 8.23.0)
omnibus-ctl (0.5.0)
openssl (default: 2.0.5)
parser (2.4.0.2)
pbkdf2 (0.1.0)
pg (0.17.1)
plist (3.4.0)
power_assert (0.4.1)
powerpack (0.1.1)
proxifier (1.0.3)
pry (0.11.3)
pry-byebug (3.5.1)
pry-remote (0.1.8)
pry-stack_explorer (0.4.9.2)
psych (default: 2.2.2)
public_suffix (3.0.1, 2.0.5)
rack (2.0.3)
rainbow (2.2.2)
rake (12.3.0, 12.0.0)
rb-readline (0.5.5)
rdoc (default: 5.0.0)
redis (3.3.3)
rest-client (1.8.0)
retriable (3.1.1)
retryable (2.0.4)
ridley (5.1.0)
rspec (3.7.0)
rspec-core (3.7.0)
rspec-expectations (3.7.0)
rspec-its (1.2.0)
rspec-mocks (3.7.0)
rspec-support (3.7.0)
rspec_junit_formatter (0.2.3)
rubocop (0.47.1)
ruby-prof (0.16.2)
ruby-progressbar (1.9.0)
ruby-shadow (2.5.0)
rubygems-update (2.6.13)
sawyer (0.8.1)
semverse (2.0.0)
sequel (4.47.0)
serverspec (2.41.3)
sfl (2.3)
simplecov (0.13.0)
simplecov-html (0.10.2)
slop (3.6.0)
solve (3.1.0)
specinfra (2.72.1)
syslog-logger (1.6.8)
systemu (2.6.5)
test-unit (3.2.3)
thor (0.20.0, 0.19.1)
thread_safe (0.3.6)
timers (4.0.4)
tzinfo (1.2.4)
unf (0.1.4)
unf_ext (0.0.7.4)
unicode-display_width (1.3.0)
uuidtools (2.1.5, 2.1.3)
varia_model (0.6.0)
veil (0.3.0)
wmi-lite (1.0.0)
xmlrpc (0.2.1)

[root@ knife-tidy-master]# /opt/opscode/embedded/bin/knife tidy
FATAL: Cannot find subcommand for: 'tidy'
Available subcommands: (for details, knife SUB-COMMAND --help)

@cmagnuso-pimco
Copy link
Author

cmagnuso-pimco commented Jul 25, 2018 via email

@lukum2118
Copy link

well, i noticed that installation is unpredictable. I am using Chef server. On version 12.15.17 I could install it but on 12.17.33 could not. And after an hour of fighting with gem somehow i could install it that Chef instance as well. But on next one I could not install it even after two hours and second one has exactly same gem, ruby, solar phase. I will work with Chef support, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants