-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
Cookbook version
latest
Chef-client version
2.0.1
Platform Details
Scenario:
We are using the chocolatey cookbook in windows machines to install the windows packages.
we are trying to install some of windows packages via cookbook by using the chocolatey_package resource. it's failing in windows 07, windows server 08, but the same cookbook is successfully running in the windows 08 and windows10.
Steps to Reproduce:
The ChocolateyInstall install failing in windows 07, windows server 08 due to the following error.
Running handlers:
[2019-03-08T07:40:44+00:00] ERROR: Running exception handlers
Running handlers complete
[2019-03-08T07:40:44+00:00] ERROR: Exception handlers complete
Chef Client failed. 2 resources updated in 01 minutes 07 seconds
[2019-03-08T07:40:44+00:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out
[2019-03-08T07:40:44+00:00] FATAL: Please provide the contents of the stacktrace.out the file if you file a bug report
[2019-03-08T07:40:44+00:00] FATAL: Chef::Exceptions::MissingLibrary: chocolatey_package[svn] (sncr_bamboo::subversion li
ne 21) had an error: Chef::Exceptions::MissingLibrary: Could not locate your Chocolatey install. To install chocolatey,
we recommend
the 'chocolatey' cookbook (https://github.com/chocolatey/chocolatey-cookbook).
If Chocolatey is installed, ensure that the 'ChocolateyInstall' environment
variable is correctly set. You can verify this with the PowerShell command
'[System.Environment]::GetEnvironmentVariable('ChocolateyInstall', 'MACHINE')'.
`````````````````````````````````````````````````````````````````````````````````````````
### Expected Result:
> We can able to install the packages via manually by using the chocolatey command, but via cookbook is failing.
> the environment test output is positive.
2019-03-06T15:29:50+00:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2019-03-06T15:29:50+00:00] ERROR: Running exception handlers
Running handlers complete
[2019-03-06T15:29:50+00:00] ERROR: Exception handlers complete
Chef Client failed. 2 resources updated in 31 seconds
[2019-03-06T15:29:50+00:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
[2019-03-06T15:29:50+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-03-06T15:29:50+00:00] FATAL: Chef::Exceptions::MissingLibrary: chocolatey_package[svn] (sncr_bamboo::subversion li
ne 21) had an error: Chef::Exceptions::MissingLibrary: Could not locate your Chocolatey install. To install chocolatey,
we recommend
the 'chocolatey' cookbook (https://github.com/chocolatey/chocolatey-cookbook).
If Chocolatey is installed, ensure that the 'ChocolateyInstall' environment
variable is correctly set. You can verify this with the PowerShell command
'[System.Environment]::GetEnvironmentVariable('ChocolateyInstall', 'MACHINE')'.
> The variable check result
PS C:\Windows\system32> [System.Environment]::GetEnvironmentVariable('ChocolateyInstall', 'MACHINE')
C:\ProgramData\chocolatey
> So our question is, this cookbook tested in windows 07 and windows server 08?
Please need your help to fix this.
Regards
Sunil
Metadata
Metadata
Assignees
Labels
No labels