I have an issue with SolidCP 1.4.2 with HyperV service provider configured. I am getting this error when I try to create a new VM:
OS Template: Windows 2012 R2 DC
00:00:00 Setup external network
00:00:00 Assigning external IP addresses
00:00:00 Setting external primary IP address
00:00:00 Setup management network
00:00:00 Management network setup - Skipped
00:00:00 Setup private network
00:00:00 Private network setup - Skipped
00:00:00 OS Template Generation: 2
00:00:00 SecureBoot: Disabled
00:00:00 OS Template: Win2012R2DC
00:00:01 Start Converting template VHD
00:00:01 Set the template block size to: 524288 Bytes
00:00:01 Template VHD path: C:Hyper-VSCPTemplatesWin2012R2DC.vhdx
00:00:01 Converting to 'C:Hyper-VSCPCustomerscust4vps.mydomain.comVirtual Hard Disksvps.mydomain.com.vhdx'
00:00:05
Error while converting VHD: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object. at SolidCP.Providers.Virtualization.JobHelper.CreateFromPSObject(Collection`1 objJob) at SolidCP.Providers.Virtualization.HyperV2012R2.GetJob(String jobId) at SolidCP.Server.VirtualizationServer2012.GetJob(String jobId) --- End of inner exception stack trace ---
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at SolidCP.Providers.Virtualization.JobHelper.CreateFromPSObject(Collection`1 objJob)
at SolidCP.Providers.Virtualization.HyperV2012R2.GetJob(String jobId)
at SolidCP.Server.VirtualizationServer2012.GetJob(String jobId)
--- End of inner exception stack trace ---
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.Virtualization2012.VirtualizationServer2012.GetJob(String jobId)
at SolidCP.EnterpriseServer.VirtualizationServerController2012.JobCompleted(VirtualizationServer2012 vs, ConcreteJob job)
at SolidCP.EnterpriseServer.VirtualizationServerController2012.CreateVirtualMachineInternal(String taskId, VirtualMachine vm, LibraryItem osTemplate, Int32 externalAddressesNumber, Boolean randomExternalAddresses, Int32[] externalAddresses, Int32 privateAddressesNumber, Boolean randomPrivateAddresses, String[] privateAddresses, String summaryLetterEmail)
00:00:05 VPS was not created.
Thanks for your help!
Can you show error/warning logs from the Server?
Thanks! If you are asking for the error/warning from the "Audit Log" (of screenshot) tab then I've added the same in the description.
I about errors from Event logs in Windows.
There are two errors.
ERROR: 'Microsoft Hyper-V 2012 R2' GetJob
System.NullReferenceException: Object reference not set to an instance of an object.
at SolidCP.Providers.Virtualization.JobHelper.CreateFromPSObject(Collection`1 objJob)
at SolidCP.Providers.Virtualization.HyperV2012R2.GetJob(String jobId)
at SolidCP.Server.VirtualizationServer2012.GetJob(String jobId)
ERROR: HostedSolution GetJob
System.NullReferenceException: Object reference not set to an instance of an object.
at SolidCP.Providers.Virtualization.JobHelper.CreateFromPSObject(Collection`1 objJob)
at SolidCP.Providers.Virtualization.HyperV2012R2.GetJob(String jobId)