bosh icon indicating copy to clipboard operation
bosh copied to clipboard

micro.rb has been loaded as plugin but it didn't contain any commands. Make sure this plugin is updated to be compatible with BOSH CLI 1.0.

Open ajpande opened this issue 13 years ago • 5 comments

Hi

After installing bosh_deployer if i run commands like "bosh help" or "bosh micro deployment aws" i get following error. Failed to load plugin gems/bosh_deployer-1.4.1/lib/bosh/cli/commands/micro.rb: Unable to activate fog-1.10.0, because net-scp-1.0.4 conflicts with net-scp (~> 1.1) File gems/bosh_deployer-1.4.1/lib/bosh/cli/commands/micro.rb has been loaded as plugin but it didn't contain any commands. Make sure this plugin is updated to be compatible with BOSH CLI 1.0. Unknown command: micro deployment aws

Please let me know how i can fix this. here are my env details

RubyGems Environment:

  • RUBYGEMS VERSION: 2.0.2
  • RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.1
  • RUBY EXECUTABLE: /usr/bin/ruby1.9.1
  • EXECUTABLE DIRECTORY: /usr/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86_64-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.9.1
    • /home/apande/.gem/ruby/1.9.1
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:
    • https://rubygems.org/

Regards Ajay

ajpande avatar Mar 08 '13 05:03 ajpande

gem uninstall fog gem uninstall net-scp gem uninstall net-ssh

Then: gem install net-ssh -v 2.2.1 gem install net-scp -v 1.0.4 gem install fog -v 1.9.0

Work?

Dr Nic Williams Stark & Wayne LLC - the consultancy for Cloud Foundry http://starkandwayne.com +1 415 860 2185 twitter: drnic

On Thu, Mar 7, 2013 at 9:34 PM, ajpande [email protected] wrote:

Hi After installing bosh_deployer if i run commands like "bosh help" or "bosh micro deployment aws" i get following error. Failed to load plugin gems/bosh_deployer-1.4.1/lib/bosh/cli/commands/micro.rb: Unable to activate fog-1.10.0, because net-scp-1.0.4 conflicts with net-scp (~> 1.1) File gems/bosh_deployer-1.4.1/lib/bosh/cli/commands/micro.rb has been loaded as plugin but it didn't contain any commands. Make sure this plugin is updated to be compatible with BOSH CLI 1.0. Unknown command: micro deployment aws Please let me know how i can fix this. here are my env details RubyGems Environment:

  • RUBYGEMS VERSION: 2.0.2
  • RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.1
  • RUBY EXECUTABLE: /usr/bin/ruby1.9.1
  • EXECUTABLE DIRECTORY: /usr/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86_64-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.9.1
    • /home/apande/.gem/ruby/1.9.1
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:
    • https://rubygems.org/ Regards Ajay

      Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/73

drnic avatar Mar 08 '13 06:03 drnic

Yes this worked ! Thanks a lot :)

But I am getting a new error when i execute "bosh micro deploy ami-64d59436" I have kept key pair in ~/.ssh/ and name of the key is bosh. So I dont know why i am getting error below. Please let me know where exactly i should keep this key.

apande@pnq-apande:~/deployments$ bosh micro deploy ami-64d59436 Deploying new micro BOSH instance aws/micro_bosh.yml' tohttp://aws:25555' (type 'yes' to continue): yes

Deploy Micro BOSH using existing stemcell (00:00:00)
Creating VM from ami-64d59436 |oo | 1/11 00:00:02 ETA: --:--:--/usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.6.9/lib/aws/core/client.rb:318:in return_or_raise': The key pair 'bosh' does not exist (AWS::EC2::Errors::InvalidKeyPair::NotFound) from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.6.9/lib/aws/core/client.rb:419:inclient_request' from (eval):3:in run_instances' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.6.9/lib/aws/ec2/instance_collection.rb:265:increate' from /usr/lib/ruby/gems/1.9.1/gems/bosh_aws_cpi-0.7.0/lib/cloud/aws/cloud.rb:119:in block in create_vm' from /usr/lib/ruby/gems/1.9.1/gems/bosh_common-0.5.4/lib/common/thread_formatter.rb:46:inwith_thread_name' from /usr/lib/ruby/gems/1.9.1/gems/bosh_aws_cpi-0.7.0/lib/cloud/aws/cloud.rb:91:in create_vm' from /usr/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.1/lib/deployer/instance_manager.rb:224:increate_vm' from /usr/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.1/lib/deployer/instance_manager.rb:134:in block in create' from /usr/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.1/lib/deployer/instance_manager.rb:84:instep' from /usr/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.1/lib/deployer/instance_manager.rb:133:in create' from /usr/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.1/lib/deployer/instance_manager.rb:104:inblock in create_deployment' from /usr/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.1/lib/deployer/instance_manager.rb:97:in with_lifecycle' from /usr/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.1/lib/deployer/instance_manager.rb:103:increate_deployment' from /usr/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.1/lib/bosh/cli/commands/micro.rb:171:in perform' from /usr/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/lib/cli/command_handler.rb:57:inrun' from /usr/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/lib/cli/runner.rb:61:in run' from /usr/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/lib/cli/runner.rb:18:inrun' from /usr/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/bin/bosh:16:in <top (required)>' from /usr/local/bin/bosh:19:inload' from /usr/local/bin/bosh:19:in `

'

Regards Ajay

ajpande avatar Mar 08 '13 10:03 ajpande

Dr .Nic , Any idea ?

Regards Ajay

ajpande avatar Mar 11 '13 08:03 ajpande

In the AWS web console, did you create or upload a keypair named "bosh"?

oppegard avatar Mar 25 '13 19:03 oppegard

Ajay if you're still having issues with this please let us know if you have the key in your AWS web console and reopen the issue. Thanks.

ajackson avatar Apr 23 '13 19:04 ajackson