Skip to content

Instantly share code, notes, and snippets.

@arpit15
Created June 27, 2022 21:25
Show Gist options
  • Save arpit15/f71323ffdd991f303a7ee8ecbb3d32c6 to your computer and use it in GitHub Desktop.
Save arpit15/f71323ffdd991f303a7ee8ecbb3d32c6 to your computer and use it in GitHub Desktop.
ubuntu@ip-10-0-0-151:/var/log$ cat cfn-init.log
2022-06-27 21:19:16,660 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-27 21:19:16,661 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute3
2022-06-27 21:19:16,744 [INFO] -----------------------Starting build-----------------------
2022-06-27 21:19:16,745 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-27 21:19:16,745 [INFO] Running configSets: deployFiles
2022-06-27 21:19:16,746 [INFO] Running configSet deployFiles
2022-06-27 21:19:16,748 [INFO] Running config deployConfigFiles
2022-06-27 21:19:16,748 [DEBUG] No packages specified
2022-06-27 21:19:16,748 [DEBUG] No groups specified
2022-06-27 21:19:16,748 [DEBUG] No users specified
2022-06-27 21:19:16,748 [DEBUG] No sources specified
2022-06-27 21:19:16,748 [DEBUG] /etc/chef/client.rb already exists
2022-06-27 21:19:16,748 [DEBUG] Moving /etc/chef/client.rb to /etc/chef/client.rb.bak
2022-06-27 21:19:16,749 [DEBUG] Writing content to /etc/chef/client.rb
2022-06-27 21:19:16,749 [DEBUG] Setting mode for /etc/chef/client.rb to 000644
2022-06-27 21:19:16,749 [DEBUG] Setting owner 0 and group 0 for /etc/chef/client.rb
2022-06-27 21:19:16,797 [DEBUG] Writing content to /opt/parallelcluster/shared/launch-templates-config.json
2022-06-27 21:19:16,797 [DEBUG] Content will be serialized as a JSON structure
2022-06-27 21:19:16,797 [DEBUG] Setting mode for /opt/parallelcluster/shared/launch-templates-config.json to 000644
2022-06-27 21:19:16,797 [DEBUG] Setting owner 0 and group 0 for /opt/parallelcluster/shared/launch-templates-config.json
2022-06-27 21:19:16,798 [DEBUG] Writing content to /tmp/dna.json
2022-06-27 21:19:16,798 [DEBUG] Setting mode for /tmp/dna.json to 000644
2022-06-27 21:19:16,798 [DEBUG] Setting owner 0 and group 0 for /tmp/dna.json
2022-06-27 21:19:16,798 [DEBUG] Writing content to /tmp/extra.json
2022-06-27 21:19:16,798 [DEBUG] Setting mode for /tmp/extra.json to 000644
2022-06-27 21:19:16,798 [DEBUG] Setting owner 0 and group 0 for /tmp/extra.json
2022-06-27 21:19:16,798 [DEBUG] Writing content to /tmp/wait_condition_handle.txt
2022-06-27 21:19:16,798 [DEBUG] Setting mode for /tmp/wait_condition_handle.txt to 000644
2022-06-27 21:19:16,798 [DEBUG] Setting owner 0 and group 0 for /tmp/wait_condition_handle.txt
2022-06-27 21:19:16,798 [DEBUG] Running command jq
2022-06-27 21:19:16,799 [DEBUG] No test for command jq
2022-06-27 21:19:17,222 [INFO] Command jq succeeded
2022-06-27 21:19:17,222 [DEBUG] Command jq output:
2022-06-27 21:19:17,222 [DEBUG] Running command mkdir
2022-06-27 21:19:17,222 [DEBUG] No test for command mkdir
2022-06-27 21:19:17,226 [INFO] Command mkdir succeeded
2022-06-27 21:19:17,226 [DEBUG] Command mkdir output:
2022-06-27 21:19:17,226 [DEBUG] Running command touch
2022-06-27 21:19:17,226 [DEBUG] No test for command touch
2022-06-27 21:19:17,229 [INFO] Command touch succeeded
2022-06-27 21:19:17,229 [DEBUG] Command touch output:
2022-06-27 21:19:17,229 [DEBUG] No services specified
2022-06-27 21:19:17,230 [INFO] ConfigSets completed
2022-06-27 21:19:17,230 [DEBUG] Not clearing reboot trigger as scheduling support is not available
2022-06-27 21:19:17,230 [INFO] -----------------------Build complete-----------------------
2022-06-27 21:19:17,685 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-27 21:19:17,685 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute3
2022-06-27 21:19:17,762 [INFO] -----------------------Starting build-----------------------
2022-06-27 21:19:17,763 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-27 21:19:17,764 [INFO] Running configSets: default
2022-06-27 21:19:17,765 [INFO] Running configSet default
2022-06-27 21:19:17,766 [INFO] Running config cfnHupConfig
2022-06-27 21:19:17,766 [DEBUG] No packages specified
2022-06-27 21:19:17,766 [DEBUG] No groups specified
2022-06-27 21:19:17,766 [DEBUG] No users specified
2022-06-27 21:19:17,766 [DEBUG] No sources specified
2022-06-27 21:19:17,766 [DEBUG] Parent directory /etc/cfn does not exist, creating
2022-06-27 21:19:17,767 [DEBUG] Writing content to /etc/cfn/cfn-hup.conf
2022-06-27 21:19:17,767 [DEBUG] Setting mode for /etc/cfn/cfn-hup.conf to 000400
2022-06-27 21:19:17,767 [DEBUG] Setting owner 0 and group 0 for /etc/cfn/cfn-hup.conf
2022-06-27 21:19:17,767 [DEBUG] Parent directory /etc/cfn/hooks.d does not exist, creating
2022-06-27 21:19:17,767 [DEBUG] Writing content to /etc/cfn/hooks.d/parallelcluster-update.conf
2022-06-27 21:19:17,767 [DEBUG] Setting mode for /etc/cfn/hooks.d/parallelcluster-update.conf to 000400
2022-06-27 21:19:17,767 [DEBUG] Setting owner 0 and group 0 for /etc/cfn/hooks.d/parallelcluster-update.conf
2022-06-27 21:19:17,767 [DEBUG] No commands specified
2022-06-27 21:19:17,767 [DEBUG] No services specified
2022-06-27 21:19:17,769 [INFO] Running config chefPrepEnv
2022-06-27 21:19:17,769 [DEBUG] No packages specified
2022-06-27 21:19:17,769 [DEBUG] No groups specified
2022-06-27 21:19:17,769 [DEBUG] No users specified
2022-06-27 21:19:17,769 [DEBUG] No sources specified
2022-06-27 21:19:17,769 [DEBUG] No files specified
2022-06-27 21:19:17,769 [DEBUG] Running command chef
2022-06-27 21:19:17,769 [DEBUG] No test for command chef
2022-06-27 21:19:55,362 [INFO] Command chef succeeded
2022-06-27 21:19:55,363 [DEBUG] Command chef output:
2022-06-27 21:19:55,363 [DEBUG] No services specified
2022-06-27 21:19:55,365 [INFO] Running config shellRunPreInstall
2022-06-27 21:19:55,365 [DEBUG] No packages specified
2022-06-27 21:19:55,365 [DEBUG] No groups specified
2022-06-27 21:19:55,365 [DEBUG] No users specified
2022-06-27 21:19:55,365 [DEBUG] No sources specified
2022-06-27 21:19:55,365 [DEBUG] No files specified
2022-06-27 21:19:55,366 [DEBUG] Running command runpreinstall
2022-06-27 21:19:55,366 [DEBUG] No test for command runpreinstall
2022-06-27 21:19:55,370 [INFO] Command runpreinstall succeeded
2022-06-27 21:19:55,370 [DEBUG] Command runpreinstall output:
2022-06-27 21:19:55,370 [DEBUG] No services specified
2022-06-27 21:19:55,371 [INFO] Running config chefConfig
2022-06-27 21:19:55,372 [DEBUG] No packages specified
2022-06-27 21:19:55,372 [DEBUG] No groups specified
2022-06-27 21:19:55,372 [DEBUG] No users specified
2022-06-27 21:19:55,372 [DEBUG] No sources specified
2022-06-27 21:19:55,372 [DEBUG] No files specified
2022-06-27 21:19:55,372 [DEBUG] Running command chef
2022-06-27 21:19:55,372 [DEBUG] No test for command chef
2022-06-27 21:20:09,614 [ERROR] Command chef (cinc-client --local-mode --config /etc/chef/client.rb --log_level info --logfile /var/log/chef-client.log --force-formatter --no-color --chef-zero-port 8889 --json-attributes /etc/chef/dna.json --override-runlist aws-parallelcluster::config) failed
2022-06-27 21:20:09,615 [DEBUG] Command chef output:
2022-06-27 21:20:09,615 [ERROR] Error encountered during build of chefConfig: Command chef failed
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/cfnbootstrap/construction.py", line 576, in run_config
CloudFormationCarpenter(config, self._auth_config).build(worklog)
File "/usr/local/lib/python3.8/dist-packages/cfnbootstrap/construction.py", line 275, in build
changes['commands'] = CommandTool().apply(
File "/usr/local/lib/python3.8/dist-packages/cfnbootstrap/command_tool.py", line 127, in apply
raise ToolError(u"Command %s failed" % name)
cfnbootstrap.construction_errors.ToolError: Command chef failed
2022-06-27 21:20:09,619 [ERROR] -----------------------BUILD FAILED!------------------------
2022-06-27 21:20:09,619 [ERROR] Unhandled exception during build: Command chef failed
Traceback (most recent call last):
File "/usr/local/bin/cfn-init", line 176, in <module>
worklog.build(metadata, configSets)
File "/usr/local/lib/python3.8/dist-packages/cfnbootstrap/construction.py", line 137, in build
Contractor(metadata).build(configSets, self)
File "/usr/local/lib/python3.8/dist-packages/cfnbootstrap/construction.py", line 564, in build
self.run_config(config, worklog)
File "/usr/local/lib/python3.8/dist-packages/cfnbootstrap/construction.py", line 576, in run_config
CloudFormationCarpenter(config, self._auth_config).build(worklog)
File "/usr/local/lib/python3.8/dist-packages/cfnbootstrap/construction.py", line 275, in build
changes['commands'] = CommandTool().apply(
File "/usr/local/lib/python3.8/dist-packages/cfnbootstrap/command_tool.py", line 127, in apply
raise ToolError(u"Command %s failed" % name)
cfnbootstrap.construction_errors.ToolError: Command chef failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment