I was bootstrapping a Windows 2008 Enterprise Server and I am receiving this error.
C:\Users\jl8hadm>chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json
Starting Chef Client, version 14.4.56
[2018-09-20T09:26:04-05:00] INFO: *** Chef 14.4.56 ***
[2018-09-20T09:26:04-05:00] INFO: Platform: x64-mingw32
[2018-09-20T09:26:04-05:00] INFO: Chef-client pid: 29040
[2018-09-20T09:26:04-05:00] INFO: The plugin path C:\chef\ohai\plugins does not exist. Skipping...
[2018-09-20T09:26:04-05:00] WARN: Plugin Network: unable to detect ipaddress
[2018-09-20T09:26:06-05:00] INFO: Setting the run_list to ["recipe[chef-client]"] from CLI options
Running handlers:
[2018-09-20T09:26:06-05:00] ERROR: Running exception handlers
Running handlers complete
[2018-09-20T09:26:06-05:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 02 seconds
[2018-09-20T09:26:06-05:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
[2018-09-20T09:26:06-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-09-20T09:26:06-05:00] FATAL: ArgumentError: Cannot find a version for node[testserver]
ERROR: Failed to execute command on XX.XXX.5.145 return code 1
ERROR: Bootstrap command returned 1
The Ohai run reports this:
"os": "windows",
"os_version": null,
"platform": "windows",
"platform_version": null,
"platform_family": "windows",
"virtualization": {
"systems": {
Its windows 2008. We do have some old servers around that need to be re-platformed eventually but I was hoping to get chef installed for the time being.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>chef-client -c c:/chef/client.rb -j c:/chef/first-boot.js
on
Starting Chef Client, version 14.3.37
[2020-06-15T14:24:59-03:00] INFO: *** Chef 14.3.37 ***
[2020-06-15T14:24:59-03:00] INFO: Platform: x64-mingw32
[2020-06-15T14:24:59-03:00] INFO: Chef-client pid: 4084
[2020-06-15T14:24:59-03:00] INFO: The plugin path C:\chef\ohai\plugins does not
exist. Skipping...
[2020-06-15T14:24:59-03:00] WARN: Plugin Network: unable to detect ipaddress
[2020-06-15T14:25:04-03:00] INFO: Setting the run_list to from CLI options
Running handlers:
[2020-06-15T14:25:04-03:00] ERROR: Running exception handlers
Running handlers complete
[2020-06-15T14:25:04-03:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 04 seconds
[2020-06-15T14:25:04-03:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stack
trace.out
[2020-06-15T14:25:04-03:00] FATAL: Please provide the contents of the stacktrace
.out file if you file a bug report
[2020-06-15T14:25:04-03:00] FATAL: ArgumentError: Cannot find a version for node
[172.16.8.149]
class << self
def find_platform_and_version(node)
platform = nil
version = nil
if node[:platform]
platform = node[:platform]
elsif node.attribute?("os")
platform = node[:os]
end
raise ArgumentError, "Cannot find a platform for #{node}" unless platform
if node[:platform_version]
version = node[:platform_version]
elsif node[:os_version]
version = node[:os_version]
elsif node[:os_release]
version = node[:os_release]
end
**raise ArgumentError, "Cannot find a version for #{node}" unless version**
[platform, version]
end
end