Skip to content

Instantly share code, notes, and snippets.

@arpit15
Created June 28, 2022 14:34
Show Gist options
  • Save arpit15/72b0d485934272088adafa2ef55abb5a to your computer and use it in GitHub Desktop.
Save arpit15/72b0d485934272088adafa2ef55abb5a to your computer and use it in GitHub Desktop.
ubuntu@ip-10-0-0-229:/var/log$ cat cfn-init.log
2022-06-28 14:29:19,508 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-28 14:29:19,509 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute4
2022-06-28 14:29:19,707 [INFO] -----------------------Starting build-----------------------
2022-06-28 14:29:19,707 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-28 14:29:19,710 [INFO] Running configSets: deployFiles
2022-06-28 14:29:19,711 [INFO] Running configSet deployFiles
2022-06-28 14:29:19,712 [INFO] Running config deployConfigFiles
2022-06-28 14:29:19,712 [DEBUG] No packages specified
2022-06-28 14:29:19,712 [DEBUG] No groups specified
2022-06-28 14:29:19,712 [DEBUG] No users specified
2022-06-28 14:29:19,713 [DEBUG] No sources specified
2022-06-28 14:29:19,713 [DEBUG] /etc/chef/client.rb already exists
2022-06-28 14:29:19,714 [DEBUG] Moving /etc/chef/client.rb to /etc/chef/client.rb.bak
2022-06-28 14:29:19,714 [DEBUG] Writing content to /etc/chef/client.rb
2022-06-28 14:29:19,715 [DEBUG] Setting mode for /etc/chef/client.rb to 000644
2022-06-28 14:29:19,715 [DEBUG] Setting owner 0 and group 0 for /etc/chef/client.rb
2022-06-28 14:29:19,761 [DEBUG] Writing content to /opt/parallelcluster/shared/launch-templates-config.json
2022-06-28 14:29:19,761 [DEBUG] Content will be serialized as a JSON structure
2022-06-28 14:29:19,761 [DEBUG] Setting mode for /opt/parallelcluster/shared/launch-templates-config.json to 000644
2022-06-28 14:29:19,762 [DEBUG] Setting owner 0 and group 0 for /opt/parallelcluster/shared/launch-templates-config.json
2022-06-28 14:29:19,762 [DEBUG] Writing content to /tmp/dna.json
2022-06-28 14:29:19,762 [DEBUG] Setting mode for /tmp/dna.json to 000644
2022-06-28 14:29:19,762 [DEBUG] Setting owner 0 and group 0 for /tmp/dna.json
2022-06-28 14:29:19,762 [DEBUG] Writing content to /tmp/extra.json
2022-06-28 14:29:19,762 [DEBUG] Setting mode for /tmp/extra.json to 000644
2022-06-28 14:29:19,762 [DEBUG] Setting owner 0 and group 0 for /tmp/extra.json
2022-06-28 14:29:19,762 [DEBUG] Writing content to /tmp/wait_condition_handle.txt
2022-06-28 14:29:19,762 [DEBUG] Setting mode for /tmp/wait_condition_handle.txt to 000644
2022-06-28 14:29:19,763 [DEBUG] Setting owner 0 and group 0 for /tmp/wait_condition_handle.txt
2022-06-28 14:29:19,763 [DEBUG] Running command jq
2022-06-28 14:29:19,763 [DEBUG] No test for command jq
2022-06-28 14:29:20,088 [INFO] Command jq succeeded
2022-06-28 14:29:20,088 [DEBUG] Command jq output:
2022-06-28 14:29:20,088 [DEBUG] Running command mkdir
2022-06-28 14:29:20,088 [DEBUG] No test for command mkdir
2022-06-28 14:29:20,102 [INFO] Command mkdir succeeded
2022-06-28 14:29:20,102 [DEBUG] Command mkdir output:
2022-06-28 14:29:20,102 [DEBUG] Running command touch
2022-06-28 14:29:20,102 [DEBUG] No test for command touch
2022-06-28 14:29:20,106 [INFO] Command touch succeeded
2022-06-28 14:29:20,106 [DEBUG] Command touch output:
2022-06-28 14:29:20,106 [DEBUG] No services specified
2022-06-28 14:29:20,107 [INFO] ConfigSets completed
2022-06-28 14:29:20,108 [DEBUG] Not clearing reboot trigger as scheduling support is not available
2022-06-28 14:29:20,108 [INFO] -----------------------Build complete-----------------------
2022-06-28 14:29:20,918 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-28 14:29:20,918 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute4
2022-06-28 14:29:21,069 [INFO] -----------------------Starting build-----------------------
2022-06-28 14:29:21,072 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-28 14:29:21,073 [INFO] Running configSets: default
2022-06-28 14:29:21,076 [INFO] Running configSet default
2022-06-28 14:29:21,078 [INFO] Running config cfnHupConfig
2022-06-28 14:29:21,078 [DEBUG] No packages specified
2022-06-28 14:29:21,078 [DEBUG] No groups specified
2022-06-28 14:29:21,078 [DEBUG] No users specified
2022-06-28 14:29:21,078 [DEBUG] No sources specified
2022-06-28 14:29:21,078 [DEBUG] Parent directory /etc/cfn does not exist, creating
2022-06-28 14:29:21,078 [DEBUG] Writing content to /etc/cfn/cfn-hup.conf
2022-06-28 14:29:21,078 [DEBUG] Setting mode for /etc/cfn/cfn-hup.conf to 000400
2022-06-28 14:29:21,079 [DEBUG] Setting owner 0 and group 0 for /etc/cfn/cfn-hup.conf
2022-06-28 14:29:21,079 [DEBUG] Parent directory /etc/cfn/hooks.d does not exist, creating
2022-06-28 14:29:21,079 [DEBUG] Writing content to /etc/cfn/hooks.d/parallelcluster-update.conf
2022-06-28 14:29:21,079 [DEBUG] Setting mode for /etc/cfn/hooks.d/parallelcluster-update.conf to 000400
2022-06-28 14:29:21,079 [DEBUG] Setting owner 0 and group 0 for /etc/cfn/hooks.d/parallelcluster-update.conf
2022-06-28 14:29:21,079 [DEBUG] No commands specified
2022-06-28 14:29:21,079 [DEBUG] No services specified
2022-06-28 14:29:21,085 [INFO] Running config chefPrepEnv
2022-06-28 14:29:21,085 [DEBUG] No packages specified
2022-06-28 14:29:21,085 [DEBUG] No groups specified
2022-06-28 14:29:21,085 [DEBUG] No users specified
2022-06-28 14:29:21,085 [DEBUG] No sources specified
2022-06-28 14:29:21,085 [DEBUG] No files specified
2022-06-28 14:29:21,085 [DEBUG] Running command chef
2022-06-28 14:29:21,085 [DEBUG] No test for command chef
2022-06-28 14:30:03,926 [INFO] Command chef succeeded
2022-06-28 14:30:03,926 [DEBUG] Command chef output:
2022-06-28 14:30:03,926 [DEBUG] No services specified
2022-06-28 14:30:03,930 [INFO] Running config shellRunPreInstall
2022-06-28 14:30:03,930 [DEBUG] No packages specified
2022-06-28 14:30:03,931 [DEBUG] No groups specified
2022-06-28 14:30:03,931 [DEBUG] No users specified
2022-06-28 14:30:03,931 [DEBUG] No sources specified
2022-06-28 14:30:03,931 [DEBUG] No files specified
2022-06-28 14:30:03,931 [DEBUG] Running command runpreinstall
2022-06-28 14:30:03,931 [DEBUG] No test for command runpreinstall
2022-06-28 14:30:03,937 [INFO] Command runpreinstall succeeded
2022-06-28 14:30:03,937 [DEBUG] Command runpreinstall output:
2022-06-28 14:30:03,937 [DEBUG] No services specified
2022-06-28 14:30:03,939 [INFO] Running config chefConfig
2022-06-28 14:30:03,939 [DEBUG] No packages specified
2022-06-28 14:30:03,939 [DEBUG] No groups specified
2022-06-28 14:30:03,939 [DEBUG] No users specified
2022-06-28 14:30:03,939 [DEBUG] No sources specified
2022-06-28 14:30:03,939 [DEBUG] No files specified
2022-06-28 14:30:03,939 [DEBUG] Running command chef
2022-06-28 14:30:03,939 [DEBUG] No test for command chef
2022-06-28 14:30:24,111 [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-28 14:30:24,112 [DEBUG] Command chef output:
2022-06-28 14:30:24,112 [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-28 14:30:24,201 [ERROR] -----------------------BUILD FAILED!------------------------
2022-06-28 14:30:24,201 [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