title: Chef node not registering with server
body: <p>I am trying to register my client to the server, but it gives following error on running below command:</p>
  
  <p><strong><code>[root@vm ~]# chef-client -S https://chef-server.example.com -K /etc/chef/chef-validator.pem</code></strong></p>
  
  <pre><code>{:config_missing=&gt;true}
  [2014-12-29T18:20:00+05:30] WARN: *****************************************
  [2014-12-29T18:20:00+05:30] WARN: Did not find config file: /etc/chef/client.rb, using command line options.
  [2014-12-29T18:20:00+05:30] WARN: *****************************************
  Starting Chef Client, version 12.0.3
  Creating a new client identity for vm.example.com using the validator key.
  [2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 4 tries remaining
  [2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
  [2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 3 tries remaining
  [2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
  [2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 2 tries remaining
  [2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
  [2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 1 tries remaining
  [2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
  [2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 0 tries remaining
  [2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
  [2014-12-29T18:20:01+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  Chef Client failed. 0 resources updated in 1.180742976 seconds
  [2014-12-29T18:20:01+05:30] ERROR: undefined method `closed?' for nil:NilClass
  [2014-12-29T18:20:01+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
  </code></pre>