私はaws-cfn-bootstrapをインストールしたカスタムcentos AMIをhttps://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.amzn1.noarch.rpmから持っています。AWS:cloud-init failed
cloudformスクリプトを実行すると、そのインスタンスに対してcloud-initがスタックされます。 私はcloud-init.logを調べようとしました。問題をデバッグできませんでした。 と私はこれをどのようにデバッグするのか分かりません。必要なヘルプ、私は現在ここで立ち往生しています。以下はログからのいくつかのエラーです。これを解決するために私を助けてください。
私はcloud-init.cfgを変更する必要がありますか?
2017-10-10 13:12:26,172 - util.py[DEBUG]: Running command ['mount', '-o', 'ro,sync', '-t', 'iso9660', '/dev/xvda', '/tmp/tmptIJHi2'] with allowed return codes [0] (shell=False, capture=True)
2017-10-10 13:12:26,188 - util.py[DEBUG]: Failed mount of '/dev/xvda' as 'iso9660': Unexpected error while running command.
Command: ['mount', '-o', 'ro,sync', '-t', 'iso9660', '/dev/xvda', '/tmp/tmptIJHi2']
Exit code: 32
Reason: -
Stdout: -
2017-10-10 13:12:27,908 - util.py[DEBUG]: Failed mount of '/dev/xvda' as 'iso9660': Unexpected error while running command.
Command: ['mount', '-o', 'ro,sync', '-t', 'iso9660', '/dev/xvda', '/tmp/tmpJcAGOG']
Exit code: 32
Reason: -
Stdout: -
2017-10-11 04:05:42,847 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [1]
2017-10-11 04:05:42,847 - util.py[DEBUG]: Failed running /var/lib/cloud/instance/scripts/part-001 [1]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 802, in runparts
subp(prefix + [exe_path], capture=False)
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 1858, in subp
cmd=args)
ProcessExecutionError: Unexpected error while running command.
Command: ['/var/lib/cloud/instance/scripts/part-001']
Exit code: 1
Reason: -
Stdout: -
Stderr: -
のBR、 キラン
cloudformationスクリプトがcloudinitをセットアップしようとしているcloudinitをトリガーしています。はい、それはあなたがプロセスで言及したのと同様のコマンドを実行しています。 – Kiran
はい、私はそれについて知っています。しかし、私はあなたのコマンドがクラウドinitを入れる前に最初に動作することを確認することを望みます。最初にインスタンスを実行しようとすることができます。私はこの種の問題が時々ある。 – sin
ok私はそれを試み、あなたに知らせるでしょう。 – Kiran