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

LoadError: cannot load such file -- aws-sdk-secretsmanager #432

Open
prat23k opened this issue Apr 15, 2021 · 5 comments
Open

LoadError: cannot load such file -- aws-sdk-secretsmanager #432

prat23k opened this issue Apr 15, 2021 · 5 comments

Comments

@prat23k
Copy link

prat23k commented Apr 15, 2021

Hi,

I have installed aws-sdk-secretsmanager using gem install, I can see its available but when I try do require 'aws-sdk-secretsmanage' got the following issue

chef_version=16.2.73
         platform=redhat
         platform_version=7.9
         ruby=ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
         program_name=/opt/chef/bin/chef-client
         executable=/opt/chef/bin/chef-client


         Running handlers:
     ERROR: Running exception handlers
         Running handlers complete
  ERROR: Exception handlers complete
         Chef Infra Client failed. 2 resources updated in 10 seconds
      Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
      Please provide the contents of the stacktrace.out file if you file a bug report
FATAL: LoadError: cannot load such file -- aws-sdk-secretsmanager

thanks

@ramereth
Copy link
Contributor

Did the gem get installed into the Chef Infra Client environment or the system gem environment? Do you have some example recipes or some steps we can do to replicate the issue?

Thanks!

@prat23k
Copy link
Author

prat23k commented Apr 15, 2021

Please use the following steps to replicate

  1. Launched ec2 instance from the kitchen yaml
2.gem Install aws-sdk-secretsmanager and it installed successfully

3. please provide require " aws-sdk-secretsmanager" in the recipe,


Thanks

@ramereth
Copy link
Contributor

What does which gem return on your system?

@prat23k
Copy link
Author

prat23k commented Apr 20, 2021

which gem returns nothing, can you help me to install gem from the cookbook on the ec2 instance

thanks

@ramereth
Copy link
Contributor

We don't really provide support like that however you should use chef_gem to install it at compile time so that it works.

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

2 participants