Skip to content

Error when installing client on a machine already running SQL server 2012 #34

@jrdutton

Description

@jrdutton

When running on a machine with a preexisting SQL Server 2012 installed, I am getting the error below:

# Declared in c:/chef/cache/cookbooks/sql_server/recipes/client.rb:26:inblock in from_file'

windows_cookbook_package("Microsoft SQL Server 2008 R2 Management Objects (x64)") do
provider Chef::Provider::WindowsCookbookPackage
action [:install]
retries 0
retry_delay 2
guard_interpreter :default
cookbook_name "sql_server"
recipe_name "client"
source "http://download.microsoft.com/download/F/E/D/FEDB200F-DE2A-46D8-B661-D019DFE9D470/ENU/x64/SharedManagementObjects.msi"
checksum "ed753d85b51e7eae381085cad3dcc0f29c0b72f014f8f8fba1ad4e0fe387ce0a"
installer_type :msi
options "IACCEPTSQLNCLILICENSETERMS=YES"
success_codes [0, 42, 127]
package_name "Microsoft SQL Server 2008 R2 Management Objects (x64)"
timeout 600
end`

Error

'#<Mixlib::ShellOut::ShellCommandFailed: windows_package[Microsoft SQL Server 2008 R2 Management Objects (x64)] (sql_server::client line 26) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0, 42, 127], but received '1641' ---- Begin output of msiexec /qn /i "c:\chef\cache\SharedManagementObjects.msi" IACCEPTSQLNCLILICENSETERMS=YES ---- STDOUT: STDERR: ---- End output of msiexec /qn /i "c:\chef\cache\SharedManagementObjects.msi" IACCEPTSQLNCLILICENSETERMS=YES ---- Ran msiexec /qn /i "c:\chef\cache\SharedManagementObjects.msi" IACCEPTSQLNCLILICENSETERMS=YES returned 1641> had an error:
windows_package[Microsoft SQL Server 2008 R2 Management Objects (x64)](sql_server::client line 26) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0, 42, 127], but received '1641' ---- Begin output of msiexec /qn /i "c:\chef\cache\SharedManagementObjects.msi" IACCEPTSQLNCLILICENSETERMS=YES ---- STDOUT: STDERR: ---- End output of msiexec /qn /i "c:\chef\cache\SharedManagementObjects.msi" IACCEPTSQLNCLILICENSETERMS=YES ---- Ran msiexec /qn /i "c:\chef\cache\SharedManagementObjects.msi" IACCEPTSQLNCLILICENSETERMS=YES returned 1641
'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions