Client install fails on upgrade
ajeba99 opened this issue · 0 comments
ajeba99 commented
When running Chef provisioning against an existing server with a version number higher than what is installed on the node, the install of the new client fails with Exit Code 1603.
This is the error I get from my Chef Provisioning run ...
[Server1] msiexec was not successful. Received exit code 1603
At C:\chef\install.ps1:55 char:28
+ if ($p.ExitCode -ne 0) { throw "msiexec was not successful. Received exit
code ...
+
- CategoryInfo : OperationStopped: (msiexec was not... exit code
1603:String) [], RuntimeException - FullyQualifiedErrorId : msiexec was not successful. Received exit code 1603
[Server2] msiexec was not successful. Received exit code 1603
At C:\chef\install.ps1:55 char:28
- if ($p.ExitCode -ne 0) { throw "msiexec was not successful. Received exit
code ...
+ CategoryInfo : OperationStopped: (msiexec was not... exit code
1603:String) [], RuntimeException
+ FullyQualifiedErrorId : msiexec was not successful. Received exit code 1603
````
THEN when I log into the node and run the C:\Chef\install.ps1 I get ...
```
PS C:\chef> .\install.ps1
Get-Content : Cannot find path 'C:\opscode\chef\version-manifest.txt' because it does not exist.
At C:\chef\install.ps1:13 char:26
+ Try { $chef_version = (Get-Content $root\version-manifest.txt | select-object ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\opscode\chef\version-manifest.txt:String) [Get-Content], ItemNotFoun
dException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
You cannot call a method on a null-valued expression.
At C:\chef\install.ps1:19 char:7
+ if ($chef_version.split(" ", 2)[1].StartsWith($version)) { return $false }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
-----> Chef Omnibus installation detected (12.9.38-1)
```
This is going from an existing node with client 12.8.1 to 12.9.38. The node is Windows Server 2012 R2.