This week had it a strange error in at least 3 Veeam Servers. Veeam Backup Service did not start after the Windows Server upgrade, and it was not possible to start or fix the issue.
These three Veeam Server was running with Windows Server 2012 R2, and I needed to upgrade to Windows Server 2016.
So backup the Veeam Servers and start the Windows upgrade. After the upgrade finish run Windows updates and after the last reboot, try to run the Veeam Backup Server and error.
Checking Veeam services, I notice that most of them were down, and I was not able to start manually.
Checking the Windows events I saw this: Could not load type System.ValueTuple”2” from assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
Is the first time I saw this error, and honestly, I did not know what is regarding.
Next is to check the Veeam Backup Service logs, that is located in: C:\ProgramData\Veeam\Backup\Svc.VeeamBackup.log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
Error [LicenseManager] Can not initialize license manager Error Could not load type System.ValueTuple "2" from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. (System.TypeLoadException) Error at Veeam.Backup.LicenseLib.CLicenseSupportedPlatformsInfo..ctor(ILicense license, CLicensePlatformWeightInfoList weightInfos, ILogScope log) Error at Veeam.Backup.LicenseLib.CLicense.SetupSupportedPlatforms(CLicensePlatformWeightInfoList weightInfos) Error at Veeam.Backup.LicenseLib.CLicenseWeightsUpdateHelper.UpdateLicenseWeights(ILicense license) Error at Veeam.Backup.ServiceLib.CLicenseManager.Init() Error Can not initialize license management services Error Could not load type System.ValueTuple "2" from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. (System.TypeLoadException) Error at Veeam.Backup.LicenseLib.CLicenseSupportedPlatformsInfo..ctor(ILicense license, CLicensePlatformWeightInfoList weightInfos, ILogScope log) Error at Veeam.Backup.LicenseLib.CLicense.SetupSupportedPlatforms(CLicensePlatformWeightInfoList weightInfos) Error at Veeam.Backup.LicenseLib.CLicenseWeightsUpdateHelper.UpdateLicenseWeights(ILicense license) Error at Veeam.Backup.ServiceLib.CLicenseManager.Init() Error at Veeam.Backup.ServiceLib.CLicensingManagementScope..ctor(CSignaturesVerificationResult signaturesVerificationResult) Info Stop service status tracking. Error Failed to start service. Error Could not load type System.ValueTuple "2" from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. (System.TypeLoadException) Error at Veeam.Backup.LicenseLib.CLicenseSupportedPlatformsInfo..ctor(ILicense license, CLicensePlatformWeightInfoList weightInfos, ILogScope log) Error at Veeam.Backup.LicenseLib.CLicense.SetupSupportedPlatforms(CLicensePlatformWeightInfoList weightInfos) Error at Veeam.Backup.LicenseLib.CLicenseWeightsUpdateHelper.UpdateLicenseWeights(ILicense license) Error at Veeam.Backup.ServiceLib.CLicenseManager.Init() Error at Veeam.Backup.ServiceLib.CLicensingManagementScope..ctor(CSignaturesVerificationResult signaturesVerificationResult) Error at Veeam.Backup.Service.CVbServiceImpl..ctor(CVbEnvironment env, CTerminationMediator terminator) Error at Veeam.Backup.Service.CVeeamBackupSvc.OnStart(String[] args) Info Unregistering TCP client channel [cat_tcp] Info Channel successfully unregistered Info Unregistering TCP server channel [bstcp]. Port: [9392] Info Channel successfully unregistered Info [WinDesktop] Closing desktop 'VeeamBackupServiceDesktop' |
Honestly, I needed to google to know what this Could not load type System.ValueTuple”2”, and I found out that it is regarding Microsoft.NET Framework. Somehow during the upgrade, the Microsoft.NET Framework was corrupted and had mixed versions.
This is the first time I saw this type of error, I honestly didn’t know what it was referring to.
Download the latest Microsoft.NET Framework.
So I just downloaded the latest version 4.7.2 for Windows Server 2016 and installed. You can download it from Microsoft Site and install it.
The offline version is: NDP472-KB4054530-x86-x64-AllOS-ENU.exe
Install Microsoft.NET Framework.
In two of the Veeam Servers, installation did not recognize any Microsoft.NET Framework installed and did a fresh install.
In one Veeam Server, it recognizes that it was installed, and I just did a repair.
After install/repair Microsoft.NET Framework, I reboot the server, run Windows update again in case there are new updates for Microsoft.NET Framework, and all Veeam Backup Services were back to the started state.
I did not know what case this, but I know it is not a Veeam issue but instead a Windows issue. But since Veeam Server needs Microsoft.NET Framework, it was not able to start the services (particularly initialize the license manager).
I hope this blog post is useful if you have encountered this issue when upgrading your Veeam Servers.
Share this article if you think it is worth sharing. If you have any questions or comments, comment here or contact me on Twitter.
Thanks for this. It was a quick resolution for me.