私はopsworksリソースを作成するcloudformテンプレートを作成しました:stack、layer、appおよびinstance。私はS3に私の料理を追加し、私は私のテンプレートをテストし、すべてのリソースが正常にopsworksインスタンスを除いて作成され、私はこのエラーを取得する:Opsworksインスタンスの起動に失敗しました:ステータス:start_failed:そのような料理名:apt
CREATE_FAILED AWS::OpsWorks::Instance MyInstance ff45a8d0-9adf-40a4-a049-f2329a9fa1f0 failed. Status=start_failed
いずれかがどこで確認する必要がありますを教えてもらえ、その原因は何ですかその? また、私は非常に多くのインスタンスタイプを試していますが、メモリは最適化されていますが、まだエラーが発生しています。助けてください。どうもありがとうございました。
がここにログです:エラーメッセージから
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 92)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/nodes] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 97)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/nodes] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/nodes
[2016-12-15T13:58:12+00:00] INFO: Processing template[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/client.rb] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 106)
[2016-12-15T13:58:12+00:00] INFO: template[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/client.rb] created file /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/client.rb
[2016-12-15T13:58:12+00:00] INFO: template[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/client.rb] updated file contents /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/client.rb
[2016-12-15T13:58:12+00:00] INFO: Processing file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/attribs.json] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 114)
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/attribs.json] created file /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/attribs.json
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/attribs.json] updated file contents /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/attribs.json
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_app] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 124)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_app] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_app
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_instance] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 124)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_instance] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_instance
[2016-12-15T13:58:12+00:00] INFO: Processing file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_instance/script.json] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 208)
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_instance/script.json] created file /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_instance/script.json
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_instance/script.json] updated file contents /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_instance/script.json
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_layer] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 124)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_layer] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_layer
[2016-12-15T13:58:12+00:00] INFO: Processing file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_layer/node.json] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 208)
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_layer/node.json] created file /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_layer/node.json
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_layer/node.json] updated file contents /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_layer/node.json
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_stack] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 124)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_stack] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_stack
[2016-12-15T13:58:12+00:00] INFO: Processing file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_stack/a0dc4b91-63dc-4947-95c2-f28d2fae00fb.json] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 208)
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_stack/a0dc4b91-63dc-4947-95c2-f28d2fae00fb.json] created file /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_stack/a0dc4b91-63dc-4947-95c2-f28d2fae00fb.json
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_stack/a0dc4b91-63dc-4947-95c2-f28d2fae00fb.json] updated file contents /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_stack/a0dc4b91-63dc-4947-95c2-f28d2fae00fb.json
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_command] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 124)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_command] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_command
[2016-12-15T13:58:12+00:00] INFO: Processing file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_command/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f.json] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 208)
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_command/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f.json] created file /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_command/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f.json
[2016-12-15T13:58:12+00:00] INFO: file[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_command/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f.json] updated file contents /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_command/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f.json
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_user] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 124)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_user] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_user
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_elastic_load_balancer] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 124)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_elastic_load_balancer] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_elastic_load_balancer
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_rds_db_instance] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 124)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_rds_db_instance] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_rds_db_instance
[2016-12-15T13:58:12+00:00] INFO: Processing directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_ecs_cluster] action create (/var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_custom_run/providers/default.rb line 124)
[2016-12-15T13:58:12+00:00] INFO: directory[/var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_ecs_cluster] created directory /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags/aws_opsworks_ecs_cluster
[2016-12-15T13:58:12+00:00] WARN: Skipping final node save because override_runlist was given
[2016-12-15T13:58:12+00:00] INFO: Chef Run complete in 30.522850769 seconds
[2016-12-15T13:58:12+00:00] INFO: Skipping removal of unused files from the cache
[2016-12-15T13:58:12+00:00] INFO: Running report handlers
[2016-12-15T13:58:12+00:00] INFO: Report handlers complete
[2016-12-15T13:58:13+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /var/chef
One version per cookbook
data_bags at /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/data_bags
nodes at /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/nodes
[2016-12-15T13:58:13+00:00] INFO: Forking chef instance to converge...
[2016-12-15T13:58:13+00:00] INFO: *** Chef 12.16.42 ***
[2016-12-15T13:58:13+00:00] INFO: Platform: x86_64-linux
[2016-12-15T13:58:13+00:00] INFO: Chef-client pid: 3500
[2016-12-15T13:58:14+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/script.localdomain
[2016-12-15T13:58:14+00:00] INFO: Setting the run_list to ["recipe[cassandra-php-driver::setup]", "recipe[security::setup]"] from CLI options
[2016-12-15T13:58:14+00:00] INFO: Run List is [recipe[cassandra-php-driver::setup], recipe[security::setup]]
[2016-12-15T13:58:14+00:00] INFO: Run List expands to [cassandra-php-driver::setup, security::setup]
[2016-12-15T13:58:14+00:00] INFO: Starting Chef Run for script.localdomain
[2016-12-15T13:58:14+00:00] INFO: Running start handlers
[2016-12-15T13:58:14+00:00] INFO: Start handlers complete.
[2016-12-15T13:58:14+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found:
[2016-12-15T13:58:14+00:00] INFO: HTTP Request Returned 412 Precondition Failed: No such cookbook: apt
================================================================================
Error Resolving Cookbooks for Run List:
================================================================================
Missing Cookbooks:
------------------
No such cookbook: apt
Expanded Run List:
------------------
* cassandra-php-driver::setup
* security::setup
Platform:
---------
x86_64-linux
[2016-12-15T13:58:14+00:00] ERROR: Running exception handlers
[2016-12-15T13:58:14+00:00] ERROR: Exception handlers complete
[2016-12-15T13:58:14+00:00] FATAL: Stacktrace dumped to /var/chef/runs/a679dc7b-3cbf-4d43-9bc8-5ae0223d3b5f/local-mode-cache/cache/chef-stacktrace.out
[2016-12-15T13:58:14+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-12-15T13:58:14+00:00] ERROR: 412 "Precondition Failed"
[2016-12-15T13:58:14+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
開始時にクラウドフォーメーションテンプレートが失敗したときにロールバックしないようにします。このオプションが見つかったら、先に進んでください。それから、SSHが正しく構築されていないサーバーに接続し、opsworks/chefログに読み取りがあることを確認します。テンプレートロールバックが実行されていないので、opsworks UIエリアからログを表示してください。 –
@PaulDunlop実際、cookbookを使用してインスタンスを手動で正常に作成します。しかし、私がテンプレートを使用するとき、常にseup/startで失敗します。ログを追加しました 誰もがこれを解決する方法を知っていますか? – JavaQueen