Skip to content

Instantly share code, notes, and snippets.

@arpit15
Created June 27, 2022 19:16
Show Gist options
  • Save arpit15/92941c76296f712d442940f9be2baef6 to your computer and use it in GitHub Desktop.
Save arpit15/92941c76296f712d442940f9be2baef6 to your computer and use it in GitHub Desktop.
ubuntu@ip-10-0-0-178:/var/log$ cat cfn-init.log
2022-06-27 18:57:34,949 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-27 18:57:34,950 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute4
2022-06-27 18:57:35,041 [INFO] -----------------------Starting build-----------------------
2022-06-27 18:57:35,042 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-27 18:57:35,042 [INFO] Running configSets: deployFiles
2022-06-27 18:57:35,043 [INFO] Running configSet deployFiles
2022-06-27 18:57:35,044 [INFO] Running config deployConfigFiles
2022-06-27 18:57:35,044 [DEBUG] No packages specified
2022-06-27 18:57:35,044 [DEBUG] No groups specified
2022-06-27 18:57:35,044 [DEBUG] No users specified
2022-06-27 18:57:35,044 [DEBUG] No sources specified
2022-06-27 18:57:35,045 [DEBUG] /etc/chef/client.rb already exists
2022-06-27 18:57:35,045 [DEBUG] Moving /etc/chef/client.rb to /etc/chef/client.rb.bak
2022-06-27 18:57:35,045 [DEBUG] Writing content to /etc/chef/client.rb
2022-06-27 18:57:35,045 [DEBUG] Setting mode for /etc/chef/client.rb to 000644
2022-06-27 18:57:35,046 [DEBUG] Setting owner 0 and group 0 for /etc/chef/client.rb
2022-06-27 18:57:35,078 [DEBUG] Writing content to /opt/parallelcluster/shared/launch-templates-config.json
2022-06-27 18:57:35,079 [DEBUG] Content will be serialized as a JSON structure
2022-06-27 18:57:35,079 [DEBUG] Setting mode for /opt/parallelcluster/shared/launch-templates-config.json to 000644
2022-06-27 18:57:35,080 [DEBUG] Setting owner 0 and group 0 for /opt/parallelcluster/shared/launch-templates-config.json
2022-06-27 18:57:35,080 [DEBUG] Writing content to /tmp/dna.json
2022-06-27 18:57:35,080 [DEBUG] Setting mode for /tmp/dna.json to 000644
2022-06-27 18:57:35,080 [DEBUG] Setting owner 0 and group 0 for /tmp/dna.json
2022-06-27 18:57:35,080 [DEBUG] Writing content to /tmp/extra.json
2022-06-27 18:57:35,080 [DEBUG] Setting mode for /tmp/extra.json to 000644
2022-06-27 18:57:35,080 [DEBUG] Setting owner 0 and group 0 for /tmp/extra.json
2022-06-27 18:57:35,080 [DEBUG] Writing content to /tmp/wait_condition_handle.txt
2022-06-27 18:57:35,080 [DEBUG] Setting mode for /tmp/wait_condition_handle.txt to 000644
2022-06-27 18:57:35,081 [DEBUG] Setting owner 0 and group 0 for /tmp/wait_condition_handle.txt
2022-06-27 18:57:35,081 [DEBUG] Running command jq
2022-06-27 18:57:35,081 [DEBUG] No test for command jq
2022-06-27 18:57:35,522 [INFO] Command jq succeeded
2022-06-27 18:57:35,523 [DEBUG] Command jq output:
2022-06-27 18:57:35,523 [DEBUG] Running command mkdir
2022-06-27 18:57:35,523 [DEBUG] No test for command mkdir
2022-06-27 18:57:35,526 [INFO] Command mkdir succeeded
2022-06-27 18:57:35,526 [DEBUG] Command mkdir output:
2022-06-27 18:57:35,526 [DEBUG] Running command touch
2022-06-27 18:57:35,526 [DEBUG] No test for command touch
2022-06-27 18:57:35,530 [INFO] Command touch succeeded
2022-06-27 18:57:35,530 [DEBUG] Command touch output:
2022-06-27 18:57:35,530 [DEBUG] No services specified
2022-06-27 18:57:35,531 [INFO] ConfigSets completed
2022-06-27 18:57:35,531 [DEBUG] Not clearing reboot trigger as scheduling support is not available
2022-06-27 18:57:35,531 [INFO] -----------------------Build complete-----------------------
2022-06-27 18:57:35,971 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-27 18:57:35,971 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute4
2022-06-27 18:57:36,059 [INFO] -----------------------Starting build-----------------------
2022-06-27 18:57:36,060 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-27 18:57:36,061 [INFO] Running configSets: default
2022-06-27 18:57:36,063 [INFO] Running configSet default
2022-06-27 18:57:36,064 [INFO] Running config cfnHupConfig
2022-06-27 18:57:36,064 [DEBUG] No packages specified
2022-06-27 18:57:36,064 [DEBUG] No groups specified
2022-06-27 18:57:36,064 [DEBUG] No users specified
2022-06-27 18:57:36,064 [DEBUG] No sources specified
2022-06-27 18:57:36,064 [DEBUG] Parent directory /etc/cfn does not exist, creating
2022-06-27 18:57:36,064 [DEBUG] Writing content to /etc/cfn/cfn-hup.conf
2022-06-27 18:57:36,065 [DEBUG] Setting mode for /etc/cfn/cfn-hup.conf to 000400
2022-06-27 18:57:36,065 [DEBUG] Setting owner 0 and group 0 for /etc/cfn/cfn-hup.conf
2022-06-27 18:57:36,065 [DEBUG] Parent directory /etc/cfn/hooks.d does not exist, creating
2022-06-27 18:57:36,065 [DEBUG] Writing content to /etc/cfn/hooks.d/parallelcluster-update.conf
2022-06-27 18:57:36,065 [DEBUG] Setting mode for /etc/cfn/hooks.d/parallelcluster-update.conf to 000400
2022-06-27 18:57:36,065 [DEBUG] Setting owner 0 and group 0 for /etc/cfn/hooks.d/parallelcluster-update.conf
2022-06-27 18:57:36,065 [DEBUG] No commands specified
2022-06-27 18:57:36,065 [DEBUG] No services specified
2022-06-27 18:57:36,067 [INFO] Running config chefPrepEnv
2022-06-27 18:57:36,067 [DEBUG] No packages specified
2022-06-27 18:57:36,067 [DEBUG] No groups specified
2022-06-27 18:57:36,067 [DEBUG] No users specified
2022-06-27 18:57:36,067 [DEBUG] No sources specified
2022-06-27 18:57:36,067 [DEBUG] No files specified
2022-06-27 18:57:36,067 [DEBUG] Running command chef
2022-06-27 18:57:36,067 [DEBUG] No test for command chef
2022-06-27 18:58:16,640 [INFO] Command chef succeeded
2022-06-27 18:58:16,641 [DEBUG] Command chef output:
2022-06-27 18:58:16,641 [DEBUG] No services specified
2022-06-27 18:58:16,644 [INFO] Running config shellRunPreInstall
2022-06-27 18:58:16,644 [DEBUG] No packages specified
2022-06-27 18:58:16,644 [DEBUG] No groups specified
2022-06-27 18:58:16,644 [DEBUG] No users specified
2022-06-27 18:58:16,644 [DEBUG] No sources specified
2022-06-27 18:58:16,644 [DEBUG] No files specified
2022-06-27 18:58:16,644 [DEBUG] Running command runpreinstall
2022-06-27 18:58:16,644 [DEBUG] No test for command runpreinstall
2022-06-27 18:58:16,648 [INFO] Command runpreinstall succeeded
2022-06-27 18:58:16,648 [DEBUG] Command runpreinstall output:
2022-06-27 18:58:16,648 [DEBUG] No services specified
2022-06-27 18:58:16,650 [INFO] Running config chefConfig
2022-06-27 18:58:16,650 [DEBUG] No packages specified
2022-06-27 18:58:16,650 [DEBUG] No groups specified
2022-06-27 18:58:16,650 [DEBUG] No users specified
2022-06-27 18:58:16,650 [DEBUG] No sources specified
2022-06-27 18:58:16,650 [DEBUG] No files specified
2022-06-27 18:58:16,650 [DEBUG] Running command chef
2022-06-27 18:58:16,650 [DEBUG] No test for command chef
2022-06-27 18:58:58,842 [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 18:58:58,843 [DEBUG] Command chef output:
2022-06-27 18:58:58,843 [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 18:58:58,926 [ERROR] -----------------------BUILD FAILED!------------------------
2022-06-27 18:58:58,926 [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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment