Hello
I am using the powershell script to upgrade to 1.5.1 and it fails with:
X. Exit back to Main Menu Enter Option From Above Menu: a Would you like to download the update files from the SolidCP website? (Y/N): y Downloading the Files ready for updating Extracting the Files ready for updating Starting the "SolidCP Enterprise Server" upgrade Stopping the "SolidCP Enterprise Server" website Restarting IIS on this server for a clean upgrade Stopping the "SolidCP Enterprise Server" Scheduler service Creating a backup of the "Enterprise Server" files Creating a backup of the "Enterprise Server" Database Set the permissions on the SQL Database backup directory for full access Create temporary Share for SQL Backup Backup the SQL Database Zip the backup to save space Remove the temporary Share for SQL Backup Remove the SQL Database backup directory as it is no longer required The "Enterprise Server" Database has been backed up successfully Preparing the existing "Enterprise Server" files for upgrading Upgrading the "Enterprise Server" files Upgrading the "Enterprise Server" database Get-Content : Cannot find path 'C:\SolidCP\Enterprise Server\bin\SolidCP.SchedulerService.exe.config' because it does not exist. At C:\Users\Administrator\Downloads\SolidCP-Auto-Upgrade-Tool\SolidCP-Auto-Upgrade.ps1:965 char:14 + [xml]$xml = Get-Content -Path "$dFilePath" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (C:\SolidCP\Ente...vice.exe.config:String) [Get-Content], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand You cannot call a method on a null-valued expression. At C:\Users\Administrator\Downloads\SolidCP-Auto-Upgrade-Tool\SolidCP-Auto-Upgrade.ps1:993 char:3 + $dNode = $xml.SelectNodes($dNodePath) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull You cannot call a method on a null-valued expression. At C:\Users\Administrator\Downloads\SolidCP-Auto-Upgrade-Tool\SolidCP-Auto-Upgrade.ps1:1000 char:3 + $xml.Save("$dFilePath") | Out-Null + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull Get-Content : Cannot find path 'C:\SolidCP\Enterprise Server\bin\SolidCP.SchedulerService.exe.config' because it does not exist. At C:\Users\Administrator\Downloads\SolidCP-Auto-Upgrade-Tool\SolidCP-Auto-Upgrade.ps1:965 char:14 + [xml]$xml = Get-Content -Path "$dFilePath" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (C:\SolidCP\Ente...vice.exe.config:String) [Get-Content], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand You cannot call a method on a null-valued expression. At C:\Users\Administrator\Downloads\SolidCP-Auto-Upgrade-Tool\SolidCP-Auto-Upgrade.ps1:993 char:3 + $dNode = $xml.SelectNodes($dNodePath) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull You cannot call a method on a null-valued expression. At C:\Users\Administrator\Downloads\SolidCP-Auto-Upgrade-Tool\SolidCP-Auto-Upgrade.ps1:1000 char:3 + $xml.Save("$dFilePath") | Out-Null + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull The "SolidCP Enterprise Server" web.config file has been updated Starting the "SolidCP Enterprise Server" Scheduler service Starting the "SolidCP Enterprise Server" website The "SolidCP Enterprise Server" has been upgraded
the file C:\SolidCP\Enterprise Server\bin\SolidCP.SchedulerService.exe.config did exist and seems to get removed by the upgrade tool.
I restored the file from a backup but as soon as i start the installer again the file gets removed.
when i visit http://127.0.0.1 9002/9003 ports they're running 1.5.1 but based on the above I know something somewhere has gone wrong!
if I then open the control panel and go to configuration > auto update servers and run update all I get error:
Server Message My Server Access to the path '\\127.0.0.1\C$\SolidCP\Server\\AutoDiscovery.asmx' is denied. Smartermail Server Directory \\IP_OF_SM_HERE\C$\SolidCP\Server asp.net v4.5\ not found
tasks like calculate diskspace now fail with
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Could not load file or assembly 'SolidCP.Providers.Base, Version=1.5.1.0, Culture=neutral, PublicKeyToken=da8782a6fc4d0081' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at SolidCP.Providers.ServiceProvider.GetServiceItemsDiskSpace(SoapServiceProviderItem[] items) at SolidCP.EnterpriseServer.CalculatePackagesDiskspaceTask.CalculateItems(Int32 serviceId, List`1 items)
Looking forward to some help or advise on how to fix
I downloaded the -update.zip files and manually processed the upgrade on all servers and the everythings now working, the issue only occurs with powershell and auto update.
I always have this error when every upgrade, so I just run the upgrade and copy a backed up scheduler config back into the folder.
It would be nice if the installer didn't do that though 😁
I always have this error when every upgrade, so I just run the upgrade and copy a backed up scheduler config back into the folder.
It would be nice if the installer didn't do that though 😁