Skip to content

Instantly share code, notes, and snippets.

@asido
Created October 10, 2014 19:39
Show Gist options
  • Save asido/164af6f0e796be2b4e4d to your computer and use it in GitHub Desktop.
Save asido/164af6f0e796be2b4e4d to your computer and use it in GitHub Desktop.
$ ./knife bootstrap 192.168.52.143 -x root -P psw -N TestNode --sudo
Connecting to 192.168.52.143
192.168.52.143 Installing Chef Client...
192.168.52.143 --2014-10-10 12:36:54-- https://www.opscode.com/chef/install.sh
192.168.52.143 Resolving www.opscode.com (www.opscode.com)... 184.106.28.91
192.168.52.143 Connecting to www.opscode.com (www.opscode.com)|184.106.28.91|:443... connected.
192.168.52.143 HTTP request sent, awaiting response... 200 OK
192.168.52.143 Length: 16519 (16K) [application/x-sh]
192.168.52.143 Saving to: ‘STDOUT’
192.168.52.143
100%[======================================>] 16,519 --.-K/s in 0s
192.168.52.143
192.168.52.143 2014-10-10 12:36:55 (180 MB/s) - written to stdout [16519/16519]
192.168.52.143
192.168.52.143 Downloading Chef 11.12.2 for ubuntu...
192.168.52.143 downloading https://www.opscode.com/chef/metadata?v=11.12.2&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
192.168.52.143 to file /tmp/install.sh.5941/metadata.txt
192.168.52.143 trying wget...
192.168.52.143 url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_11.12.2-1_amd64.deb
192.168.52.143 md5 ad58d3c5a2c912030972fef1f3727c23
192.168.52.143 sha256 3f229e68aa34fd0ca229681d7b5344b1e97b4b358d27184242067ae0ad3c94c4
192.168.52.143 downloaded metadata file looks valid...
192.168.52.143 downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_11.12.2-1_amd64.deb
192.168.52.143 to file /tmp/install.sh.5941/chef_11.12.2-1_amd64.deb
192.168.52.143 trying wget...
192.168.52.143 Comparing checksum with sha256sum...
192.168.52.143 Installing Chef 11.12.2
192.168.52.143 installing with dpkg...
192.168.52.143 Selecting previously unselected package chef.
(Reading database ... 197783 files and directories currently installed.)
192.168.52.143 Preparing to unpack .../chef_11.12.2-1_amd64.deb ...
192.168.52.143 Unpacking chef (11.12.2-1) ...
192.168.52.143 Setting up chef (11.12.2-1) ...
192.168.52.143 Thank you for installing Chef!
192.168.52.143 Starting first Chef Client run...
192.168.52.143 [2014-10-10T12:37:16-07:00] WARN:
192.168.52.143 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
192.168.52.143 SSL validation of HTTPS requests is disabled. HTTPS connections are still
192.168.52.143 encrypted, but chef is not able to detect forged replies or man in the middle
192.168.52.143 attacks.
192.168.52.143
192.168.52.143 To fix this issue add an entry like this to your configuration file:
192.168.52.143
192.168.52.143 ```
192.168.52.143 # Verify all HTTPS connections (recommended)
192.168.52.143 ssl_verify_mode :verify_peer
192.168.52.143
192.168.52.143 # OR, Verify only connections to chef-server
192.168.52.143 verify_api_cert true
192.168.52.143 ```
192.168.52.143
192.168.52.143 To check your SSL configuration, or troubleshoot errors, you can use the
192.168.52.143 `knife ssl check` command like so:
192.168.52.143
192.168.52.143 ```
192.168.52.143 knife ssl check -c /etc/chef/client.rb
192.168.52.143 ```
192.168.52.143
192.168.52.143 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
192.168.52.143
192.168.52.143 Starting Chef Client, version 11.12.2
192.168.52.143 Creating a new client identity for TestNode using the validator key.
192.168.52.143
192.168.52.143 ================================================================================
192.168.52.143 Chef encountered an error attempting to create the client "TestNode"
192.168.52.143 ================================================================================
192.168.52.143
192.168.52.143
192.168.52.143 Resource Not Found:
192.168.52.143 -------------------
192.168.52.143 The server returned a HTTP 404. This usually indicates that your chef_server_url is incorrect.
192.168.52.143
192.168.52.143
192.168.52.143
192.168.52.143 Relevant Config Settings:
192.168.52.143 -------------------------
192.168.52.143 chef_server_url "https://192.168.52.141:443"
192.168.52.143
192.168.52.143
192.168.52.143
192.168.52.143 [2014-10-10T12:37:18-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
192.168.52.143 Chef Client failed. 0 resources updated in 1.571477849 seconds
192.168.52.143 [2014-10-10T12:37:18-07:00] ERROR: 404 "Not Found"
192.168.52.143 [2014-10-10T12:37:18-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment