I tried to import the PSS Snapin's but that failed. I read to just use Import-Module "sqlps" and that should load the modules I need. I then ran the script and got a different error:
Cannot index into a null array.
At C:SolidCP-Auto-Upgrade-ToolSolidCP-Auto-Upgrade.ps1:167 char:48
+ $SCP_UNCsvr_Name = $SCP_UNC_Test.ServerName[ <<<< $i]
+ CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At C:SolidCP-Auto-Upgrade-ToolSolidCP-Auto-Upgrade.ps1:168 char:48
+ $SCP_Server_Root = ($SCP_UNC_Test.ServerUrl[ <<<< $i] -replace "http://| https://|:900 3", "")
+ CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
Get-ChildItem : Cannot process argument because the value of argument "path" is invalid. Change the value of the "path"
argument and run the operation again.
At C:SolidCP-Auto-Upgrade-ToolSolidCP-Auto-Upgrade.ps1:170 char:59
+ foreach ($RemoteServer in (Get-ChildItem (Get-ChildItem <<<< -Path "$SCP_Server_Rootc$" -Include ("W
ebsitePanel", "SolidCP", "DotNetPanel")).FullName)) {
+ CategoryInfo : InvalidArgument: (:) [Get-ChildItem], PSArgumentException
+ FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.GetChildItemCommand
Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:SolidCP-Auto-Upgrade-ToolSolidCP-Auto-Upgrade.ps1:173 char:17
+ if (Test-Path <<<< "$SCP_UNCsvr_Dir") {
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Test
PathCommand
Hi
I am looking to do the upgrade using the script. However the script assumes the portal is on the same server as the enterprise server. Is there a way to update the script to update the portal server if it isnt on the same server?
Thanks
Hi
I am also getting the following error when selecting option 3 from the menu
Invoke-SQLCmd : The database "WebsitePanel" cannot be opened. It is acting as a mirror database.
At C:WebsitePanelSolidCP-Auto-Upgrade-ToolSolidCP-Auto-Upgrade.ps1:170 char:36
+ push-location ; ($SCP_UNC_Test = Invoke-SQLCmd -query "SELECT [ServerName], [S ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Invoke-Sqlcmd], SqlPowerShellSqlExecutionException
+ FullyQualifiedErrorId : SqlError,Microsoft.SqlServer.Management.PowerShell.GetScriptCommand
Thanks
Hi. Is there an updated PowerShell script that is working when you have your enterprise server and SQL server on different servers?
Hello,
The script does not upgrade enterprise server when the scheduler service is running as some dlls are in use. I believe this service should be stopped by the script before attempting upgrade.