Update-DbaInstance is failing to extract setup file #8917
Unanswered
SajalBagchi
asked this question in
Q&A
Replies: 1 comment 1 reply
-
What changed? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been upgrading SQL Servers using Update-Dbainstance command from over two years now. All of a sudden, it is failing on multiple servers with the error - "Update failed: Extraction failed with exit code , try specifying a different location using -ExtractPath"
Remote execution failed | Exception calling "Start" with "0" argument(s): "The specified executable is not a valid application for this OS platform."
I am pasting last few lines from Get-Dbatoolslog for details :
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-Command2
Level : Debug
Line : 145401
Message : Found an existing session dbatools_Default_3a57382c-0b48-4c2f-81da-a2198c8d5ab6_Target_SQL_Server_Name, reusing it
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Debug
Username : service_account_nm
CallStack : At Invoke-Command2, : Line 145401
At Test-PendingReboot, : Line 148899
At Invoke-DbaAdvancedUpdate, : Line 71520
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-Command2
Level : Debug
Line : 145401
Message : Found an existing session dbatools_Default_3a57382c-0b48-4c2f-81da-a2198c8d5ab6_Target_SQL_Server_Name, reusing it
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Debug
Username : service_account_nm
CallStack : At Invoke-DbaAdvancedUpdate, : Line 71536
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-DbaAdvancedUpdate
Level : Debug
Line : 71536
Message : Processing Target_SQL_Server_Name with 1 actions
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Debug
Username : service_account_nm
CallStack : At Invoke-DbaAdvancedUpdate, : Line 71575
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-DbaAdvancedUpdate
Level : Verbose
Line : 71575
Message : Extracting \SQLServer\SQLSetup\SQL2019\LatestPatchSetup\SQLServer2019-KB5024276-x64.exe to C:\temp\dbatools_KB5024276_Extract_58a466e74e0944b19d10532ff500a15b
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Verbose, Debug
Username : service_account_nm
CallStack : At Invoke-Program, : Line 146651
At Invoke-DbaAdvancedUpdate, : Line 71576
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-Program
Level : Debug
Line : 146651
Message : Acceptable success return codes are [0,3010]
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Debug
Username : service_account_nm
CallStack : At Invoke-Program, : Line 146654
At Invoke-DbaAdvancedUpdate, : Line 71576
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-Program
Level : Verbose
Line : 146654
Message : Starting process [\SQLServer\SQLSetup\SQL2019\LatestPatchSetup\SQLServer2019-KB5024276-x64.exe] with arguments [/x:"C:\temp\dbatools_KB5024276_Extract_58a466e74e0944b19d10532ff500a15b" /quiet] on
Target_SQL_Server_Name through Credssp protocol
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Verbose, Debug
Username : service_account_nm
CallStack : At Invoke-Command2, : Line 145401
At Invoke-CommandWithFallback, : Line 145456
At Invoke-Program, : Line 146658
At Invoke-DbaAdvancedUpdate, : Line 71576
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-Command2
Level : Debug
Line : 145401
Message : Found an existing session dbatools_Credssp_3a57382c-0b48-4c2f-81da-a2198c8d5ab6_Target_SQL_Server_Name, reusing it
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Debug
Username : service_account_nm
CallStack : At Stop-Function, : Line 151319
At Invoke-Program, : Line 146663
At Invoke-DbaAdvancedUpdate, : Line 71576
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-Program
Level : Warning
Line : 146663
Message : Remote execution failed | Exception calling "Start" with "0" argument(s): "The specified executable is not a valid application for this OS platform."
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Debug, Warning
Username : service_account_nm
CallStack : At Stop-Function, : Line 151329
At Invoke-DbaAdvancedUpdate, : Line 71580
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-DbaAdvancedUpdate
Level : Warning
Line : 71580
Message : Extraction failed with exit code , try specifying a different location using -ExtractPath
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Debug, Warning
Username : service_account_nm
CallStack : At , : Line 137782
At Invoke-DbaAdvancedUpdate, : Line 71581
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Update-DbaInstance
Level : Warning
Line : 137782
Message : Update failed: Extraction failed with exit code , try specifying a different location using -ExtractPath
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Debug, Warning
Username : service_account_nm
CallStack : At Invoke-Command2, : Line 145401
At Invoke-CommandWithFallback, : Line 145456
At Invoke-DbaAdvancedUpdate, : Line 71616
At , : Line 138083
At Update-DbaInstance, : Line 138087
At , : Line 5
ComputerName : Source_Server_Name
File :
FunctionName : Invoke-Command2
Level : Debug
Line : 145401
Message : Found an existing session dbatools_Credssp_3a57382c-0b48-4c2f-81da-a2198c8d5ab6_Target_SQL_Server_Name, reusing it
ModuleName : dbatools
Runspace : 3a57382c-0b48-4c2f-81da-a2198c8d5ab6
Tags : {}
TargetObject :
Timestamp : 5/16/2023 4:18:49 PM
Type : Debug
Username : service_account_nm
Beta Was this translation helpful? Give feedback.
All reactions