We have released a script to upgrade your SolidCP deployment to the latest version, but the tool can be used to test the latest BETA version as well.
There is an article about this here https://solidcp.com/kb/update/solidcp-update-script-powershell/
We would welcome any feedback regarding the script as it is still in BETA stage.
The script will upgrade all of your current SolidCP environment to the latest stable version of SolidCP or the latest BETA version of SolidCP and will take a FULL backup of each component that is upgraded.
DO NOT use this script to upgrade from Website Panel or MSP Control as it has been written to upgrade existing SolidCP deployments ONLY.
Since it’s having an issue with SolidCP Portal web.config i assume some settings / changes have been set via IIS that the upgrade script can’t work with.
most easy is just to replace it with a fresh copy (SolidCP Portal web.config does not contain any settings) from: http://installer.solidcp.com/Files/stable/SolidCP-Portal.zip
I have just try to update to version 1.4.2 with your script with the following error on IIS
IIS Web Core
Not yet determined
Only one <configSections> element allowed. It must be the first child element of the root <configuration> element
I have checked both sites on ports 9002 and 9003 and they all run OK with:
Is there any manual solution to the web.config files?
It sounds like your machine may still have the share SCPUpgrade$. Can you check its network shares to see if this is present? If it is you should be able to manually remove it and run the script.
When auto-upgrade, we received this error in Enterpriseserver phase:
New-SMBShare : The name has already been shared.
On D:\Downloads\wordpress\SolidCP-Auto-Upgrade.ps1:403 caractere:6
+ New-SMBShare -Name “SCPUpgrade$” -Path “$SCP_UpdateDir\Enterprise Server – …
+ CategoryInfo : NotSpecified: (MSFT_SMBShare:ROOT/Microsoft/Windows/SMB/MSFT_SMBShare) [New-SmbShare], C
+ FullyQualifiedErrorId : Windows System Error 2118,New-SmbShare
Exception when calling “GetHostEntry” com “1” argumento(s): “This host is not known”
On D:\Downloads\wordpress\SolidCP-Auto-Upgrade.ps1:408 caractere:45
+ if (([System.Net.Dns]::gethostentry(“$($SCP_Database_Servr.Split(“\”))”) …
+ CategoryInfo : NotSpecified: (:) , MethodInvocationException
+ FullyQualifiedErrorId : SocketException
how should we proceed in this case?
Hi @dormosh ,
Is the Portal running on the same server as your Enterprise Server?
I will look at writing a catch in to cater for this, but for the time being if you could run the script on your Enterprise Server and select to just upgrade the Enterprise Server.
I would also recommend downloading the latest version of the script as we have updated some bits.
Please let us know how you get on.
Hi. Is there an updated PowerShell script that is working when you have your enterprise server and SQL server on different servers?
I am getting a slightly different error mesage when I run the script.
Enterprise Server – web.config Upgraded
Enterprise Server – Schedular Config File Upgraded
Invoke-SQLCmd : The term ‘Invoke-SQLCmd’ is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:UsersAdministrator.SVHDownloadsSolidCP-Fix-Web-Config-Tool.ps1:222 char:34
+ push-location ; ($SCP_UNC_Test = Invoke-SQLCmd -query “SELECT [ServerName], [Ser …
+ CategoryInfo : ObjectNotFound: (Invoke-SQLCmd:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Press any key to exit…
My database is on a separate server and it seems it can’t connect.
- Views28278 times
- Answers34 answers