2017-10-31 3 views
0

aws cookbookバージョン7.2.1を使用しようとしていますので、named_iam_capabilityオプションをcloudformation_stackリソースに使用できます。これは、私が起動するインスタンスにIAMロールを割り当てることができるようにするためです。これはシェフ12.19.36でUbuntu 14.04 LTSで動作していますが、私は以下のエラーを受け取ります。aws-sigv4(1.0.2)をaws cookbookからインストールする際にエラーが発生しました。7.2.1

どのように私はこのエラーを修正できますか?

31-Oct-2017 10:47:14 [2017-10-30T23:47:14+00:00] ERROR: Running exception handlers 
31-Oct-2017 10:47:14 [2017-10-30T23:47:14+00:00] ERROR: Exception handlers complete 
31-Oct-2017 10:47:14 [2017-10-30T23:47:14+00:00] FATAL: Stacktrace dumped to /home/bamboo/.chef/cache/chef-stacktrace.out 
31-Oct-2017 10:47:14 [2017-10-30T23:47:14+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report 
31-Oct-2017 10:47:14 [2017-10-30T23:47:14+00:00] ERROR: Expected process to exit with [0], but received '5' 
31-Oct-2017 10:47:14 ---- Begin output of bundle install ---- 
31-Oct-2017 10:47:14 STDOUT: Fetching gem metadata from https://rubygems.org/ 
31-Oct-2017 10:47:14 Fetching version metadata from https://rubygems.org/ 
31-Oct-2017 10:47:14 Resolving dependencies... 
31-Oct-2017 10:47:14  
31-Oct-2017 10:47:14 Bundler::GemspecError: Could not read gem at /opt/chefdk/embedded/lib/ruby/gems/2.3.0/cache/aws-sigv4-1.0.2.gem. It may be corrupted. 
31-Oct-2017 10:47:14 Using jmespath 1.3.1 
31-Oct-2017 10:47:14 Using bundler 1.12.5 
31-Oct-2017 10:47:14 An error occurred while installing aws-sigv4 (1.0.2), and Bundler cannot 
31-Oct-2017 10:47:14 continue. 
31-Oct-2017 10:47:14 Make sure that `gem install aws-sigv4 -v '1.0.2'` succeeds before bundling. 
31-Oct-2017 10:47:14 STDERR: sudo: no tty present and no askpass program specified 
31-Oct-2017 10:47:14 sudo: no tty present and no askpass program specified 
31-Oct-2017 10:47:14 ---- End output of bundle install ---- 
31-Oct-2017 10:47:14 Ran bundle install returned 5 
31-Oct-2017 10:47:14 [2017-10-30T23:47:14+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) 
+0

rootとして 'chef-client'を実行していますか? – coderanger

+0

わかりません。どうすれば確認できますか? – MarcusMaximus

+0

どのように最初の場所でそれを実行していますか? – coderanger

答えて

0

あなたは、いくつかの機能が宝石のインストールを含め、正しく機能するためのルートとしてchef-clientを実行する必要があります。ほとんどのLinux-yシステムでsudo chef-clientを使用してください。

関連する問題