Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

uninitialized constant Bosh::Registry::InstanceManager::Aws::AWS (NameError) #281

Open
yohanwadia88 opened this issue Jan 16, 2016 · 1 comment

Comments

@yohanwadia88
Copy link

Hi,

Im getting the following error when I run bosh-bootstrap deploy

/usr/local/share/ruby/gems/2.0/gems/bosh-registry-1.3177.0/lib/bosh/registry/instance_manager/aws.rb:43:in initialize': uninitialized constant Bosh::Registry::InstanceManager::Aws::AWS (NameError) from /usr/local/share/ruby/gems/2.0/gems/bosh-registry-1.3177.0/lib/bosh/registry/config.rb:35:innew'
from /usr/local/share/ruby/gems/2.0/gems/bosh-registry-1.3177.0/lib/bosh/registry/config.rb:35:in configure' from /usr/local/share/ruby/gems/2.0/gems/bosh-registry-1.3177.0/lib/bosh/registry/runner.rb:8:ininitialize'
from /usr/local/share/ruby/gems/2.0/gems/bosh-registry-1.3177.0/bin/bosh-registry:21:in new' from /usr/local/share/ruby/gems/2.0/gems/bosh-registry-1.3177.0/bin/bosh-registry:21:in<top (required)>'
from /usr/local/bin/bosh-registry:23:in load' from /usr/local/bin/bosh-registry:23:in

'
bosh-registry -c /tmp/d20160116-25380-r0sf4x/bosh_registry_yml20160116-25380-neprch failed, exit status=1
/usr/local/share/ruby/gems/2.0/gems/rake-10.5.0/lib/rake/file_utils.rb:66:in block in create_shell_runner': Command failed with status (1): [bosh -n micro deploy --update-if-exists /r...] (RuntimeError) from /usr/local/share/ruby/gems/2.0/gems/rake-10.5.0/lib/rake/file_utils.rb:57:incall'
from /usr/local/share/ruby/gems/2.0/gems/rake-10.5.0/lib/rake/file_utils.rb:57:in sh' from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/lib/bosh-bootstrap/cli/helpers/bundle.rb:18:inblock in run'
from /usr/local/share/ruby/gems/2.0/gems/bundler-1.11.2/lib/bundler.rb:219:in block in with_clean_env' from /usr/local/share/ruby/gems/2.0/gems/bundler-1.11.2/lib/bundler.rb:199:inwith_original_env'
from /usr/local/share/ruby/gems/2.0/gems/bundler-1.11.2/lib/bundler.rb:205:in with_clean_env' from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/lib/bosh-bootstrap/cli/helpers/bundle.rb:16:inrun'
from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/lib/bosh-bootstrap/microbosh.rb:54:in block in deploy_or_update' from /usr/share/ruby/2.0/fileutils.rb:125:inchdir'
from /usr/share/ruby/2.0/fileutils.rb:125:in cd' from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/lib/bosh-bootstrap/microbosh.rb:52:indeploy_or_update'
from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/lib/bosh-bootstrap/microbosh.rb:42:in block in deploy' from /usr/share/ruby/2.0/fileutils.rb:125:inchdir'
from /usr/share/ruby/2.0/fileutils.rb:125:in cd' from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/lib/bosh-bootstrap/microbosh.rb:40:indeploy'
from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/lib/bosh-bootstrap/cli/commands/deploy.rb:77:in perform_microbosh_deploy' from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/lib/bosh-bootstrap/cli/commands/deploy.rb:24:inperform'
from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/lib/bosh-bootstrap/thor_cli.rb:11:in deploy' from /usr/local/share/ruby/gems/2.0/gems/thor-0.19.1/lib/thor/command.rb:27:inrun'
from /usr/local/share/ruby/gems/2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /usr/local/share/ruby/gems/2.0/gems/thor-0.19.1/lib/thor.rb:359:indispatch'
from /usr/local/share/ruby/gems/2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in start' from /usr/local/share/ruby/gems/2.0/gems/bosh-bootstrap-0.18.1/bin/bosh-bootstrap:13:in<top (required)>'
from /usr/local/bin/bosh-bootstrap:23:in load' from /usr/local/bin/bosh-bootstrap:23:in'

By the looks of it there seems to be some issue with the version of "aws-sdk".
here is the output of the gem list command:

aws-sdk (2.2.11, 2.2.0, 1.60.2)
aws-sdk-core (2.2.11, 2.2.0)
aws-sdk-resources (2.2.11, 2.2.0)
aws-sdk-v1 (1.60.2)
bosh_aws_cpi (2.1.0)
fog-aws (0.6.0)

I'm running this command from an AWS Linux AMI (amzn-ami-hvm-2015.09.1.x86_64-gp2 (ami-c9b572aa) in Tokyo.

@drnic
Copy link
Contributor

drnic commented Jan 16, 2016

I'm sorry this project isn't maintained anymore :/ I'll mark it as such soon; sorry for wasting your time.

On Sat, Jan 16, 2016 at 10:38 PM, Yohan Wadia notifications@github.com
wrote:

Hi,
Im getting the following error when I run bosh-bootstrap deploy
/usr/local/share/ruby/gems/20/gems/bosh-registry-131770/lib/bosh/registry/instance_manager/awsrb:43:in initialize': uninitialized constant Bosh::Registry::InstanceManager::Aws::AWS (NameError) from /usr/local/share/ruby/gems/20/gems/bosh-registry-131770/lib/bosh/registry/configrb:35:innew'
from /usr/local/share/ruby/gems/20/gems/bosh-registry-131770/lib/bosh/registry/configrb:35:in configure' from /usr/local/share/ruby/gems/20/gems/bosh-registry-131770/lib/bosh/registry/runnerrb:8:ininitialize'
from /usr/local/share/ruby/gems/20/gems/bosh-registry-131770/bin/bosh-registry:21:in new' from /usr/local/share/ruby/gems/20/gems/bosh-registry-131770/bin/bosh-registry:21:in<top (required)>'
from /usr/local/bin/bosh-registry:23:in load' from /usr/local/bin/bosh-registry:23:in

'
bosh-registry -c /tmp/d20160116-25380-r0sf4x/bosh_registry_yml20160116-25380-neprch failed, exit status=1
/usr/local/share/ruby/gems/20/gems/rake-1050/lib/rake/file_utilsrb:66:in block in create_shell_runner': Command failed with status (1): [bosh -n micro deploy --update-if-exists /r] (RuntimeError) from /usr/local/share/ruby/gems/20/gems/rake-1050/lib/rake/file_utilsrb:57:incall'
from /usr/local/share/ruby/gems/20/gems/rake-1050/lib/rake/file_utilsrb:57:in sh' from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/lib/bosh-bootstrap/cli/helpers/bundlerb:18:inblock in run'
from /usr/local/share/ruby/gems/20/gems/bundler-1112/lib/bundlerrb:219:in block in with_clean_env' from /usr/local/share/ruby/gems/20/gems/bundler-1112/lib/bundlerrb:199:inwith_original_env'
from /usr/local/share/ruby/gems/20/gems/bundler-1112/lib/bundlerrb:205:in with_clean_env' from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/lib/bosh-bootstrap/cli/helpers/bundlerb:16:inrun'
from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/lib/bosh-bootstrap/microboshrb:54:in block in deploy_or_update' from /usr/share/ruby/20/fileutilsrb:125:inchdir'
from /usr/share/ruby/20/fileutilsrb:125:in cd' from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/lib/bosh-bootstrap/microboshrb:52:indeploy_or_update'
from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/lib/bosh-bootstrap/microboshrb:42:in block in deploy' from /usr/share/ruby/20/fileutilsrb:125:inchdir'
from /usr/share/ruby/20/fileutilsrb:125:in cd' from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/lib/bosh-bootstrap/microboshrb:40:indeploy'
from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/lib/bosh-bootstrap/cli/commands/deployrb:77:in perform_microbosh_deploy' from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/lib/bosh-bootstrap/cli/commands/deployrb:24:inperform'
from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/lib/bosh-bootstrap/thor_clirb:11:in deploy' from /usr/local/share/ruby/gems/20/gems/thor-0191/lib/thor/commandrb:27:inrun'
from /usr/local/share/ruby/gems/20/gems/thor-0191/lib/thor/invocationrb:126:in invoke_command' from /usr/local/share/ruby/gems/20/gems/thor-0191/lib/thorrb:359:indispatch'
from /usr/local/share/ruby/gems/20/gems/thor-0191/lib/thor/baserb:440:in start' from /usr/local/share/ruby/gems/20/gems/bosh-bootstrap-0181/bin/bosh-bootstrap:13:in<top (required)>'
from /usr/local/bin/bosh-bootstrap:23:in load' from /usr/local/bin/bosh-bootstrap:23:in'
By the looks of it there seems to be some issue with the version of "aws-sdk"
here is the output of the gem list command:
aws-sdk (2211, 220, 1602)
aws-sdk-core (2211, 220)
aws-sdk-resources (2211, 220)
aws-sdk-v1 (1602)
bosh_aws_cpi (210)
fog-aws (060)

I'm running this command from an AWS Linux AMI (amzn-ami-hvm-2015091x86_64-gp2 (ami-c9b572aa) in Tokyo

Reply to this email directly or view it on GitHub:
#281

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

No branches or pull requests

2 participants