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?
I got that same error and I’m using 2012.
I just commented out all the backup lines.
To let people know:
This script only works on Windows Server 2012 and up because it use some functions only avalaible in 2012 like “New-SMBShare”.
New-SMBShare : The term ‘New-SMBShare’ 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:SolidCP-Auto-Upgrade.ps1:401 char:6
+ New-SMBShare -Name “SCPUpgrade$” -Path “$SCP_UpdateDirEnterprise Server – …
+ CategoryInfo : ObjectNotFound: (New-SMBShare:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Backup-SqlDatabase : System.Data.SqlClient.SqlError: Cannot open backup device
‘192.168.46.1SCPUpgrade$WebsitePanel – 2018-02-20 – (14.52 PM).bak’. Operating system error 67(The network name
cannot be found.).
At C:SolidCP-Auto-Upgrade.ps1:407 char:7
+ Backup-SqlDatabase -ServerInstance “$SCP_Database_Servr” -Database “$SCP_D …
+ CategoryInfo : InvalidOperation: (:) [Backup-SqlDatabase], SmoException
+ FullyQualifiedErrorId : ExecutionFailed,Microsoft.SqlServer.Management.PowerShell.BackupSqlDatabaseCommand
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.
- Views28276 times
- Answers34 answers