QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 131 forks source link

Unable to boot strap centos virtual box machine to chef server #1023

Open pidaparthysuryanarayana opened 3 years ago

pidaparthysuryanarayana commented 3 years ago

PS D:\chef-starter\chef-repo\cookbooks\myapache\recipes> knife bootstrap 192.168.0.104 -x root -P hydusindia --sudo --use-sudo-password --node-name Ansiblemasternode --run-list 'receipe[httpd]' -x/--winrm-user: This flag is deprecated. Use -U/--connection-user instead. Connecting to 192.168.0.104 using ssh The authenticity of host '192.168.0.104 ()' can't be established. fingerprint is SHA256:Jv4Jf6/Lz6KQGcOrWwtMbO2WOfxRWKBO2fzogXnOUKQ.

Are you sure you want to continue connecting ? (Y/N) Y Connecting to 192.168.0.104 using ssh Creating new client for Ansiblemasternode Creating new node for Ansiblemasternode ERROR: ArgumentError: Unable to create Chef::RunList::RunListItem from String:"receipe[httpd]": must be recipe[] or role[] PS D:\chef-starter\chef-repo\cookbooks\myapache\recipes> knife bootstrap 192.168.0.104 -x root -P hydusindia --sudo --use-sudo-password --node-name Ansiblemasternode --run-list 'recipe[httpd]' -x/--winrm-user: This flag is deprecated. Use -U/--connection-user instead. Connecting to 192.168.0.104 using ssh The authenticity of host '192.168.0.104 ()' can't be established. fingerprint is SHA256:Jv4Jf6/Lz6KQGcOrWwtMbO2WOfxRWKBO2fzogXnOUKQ.

Are you sure you want to continue connecting ? (Y/N) Y Connecting to 192.168.0.104 using ssh Client Ansiblemasternode exists, overwrite it? (Y/N) Y Creating new client for Ansiblemasternode Creating new node for Ansiblemasternode Bootstrapping 192.168.0.104 [192.168.0.104] -----> Existing Chef Infra Client installation detected [192.168.0.104] Starting the first Chef Infra Client Client run... [192.168.0.104] +---------------------------------------------+ ✔ 2 product licenses accepted. +---------------------------------------------+ [192.168.0.104] Starting Chef Infra Client, version 17.1.35 Patents: https://www.chef.io/patents [192.168.0.104] resolving cookbooks for run list: ["httpd"] [192.168.0.104]

Error Resolving Cookbooks for Run List:

Missing Cookbooks:

The following cookbooks are required by the client but don't exist on the server:

Expanded Run List:

Running handlers: [2021-05-28T21:40:24+05:30] ERROR: Running exception handlers Running handlers complete [2021-05-28T21:40:24+05:30] ERROR: Exception handlers complete Chef Infra Client failed. 0 resources updated in 14 seconds [192.168.0.104] [2021-05-28T21:40:27+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2021-05-28T21:40:27+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2021-05-28T21:40:27+05:30] FATAL: Net::HTTPServerException: 412 "Precondition Failed" ERROR: The following error occurred on 192.168.0.104: