Hi,
Ok So I have a windows 2016 standard hyperv Server and a few huperv core servers, the solidcp is configured to use a remote config to the remote hyperv servers and the standard on used the local setting, I can create vms on the rmeore servers 100% no issues, but if its on the standard server it keeps failing.
I have double checked the template configurations, they are identical across all the servers, I have checked the rights across all the servers they are identical, if i remove the template file, it fails with cant find template, i copied the template to a remote server and it creates fine from it, I have checked everything but I cannot get this resolved. The user acct is created in the hyper-v folder, the server name is created but it cant convert the file to the clients folder.
The audit log has this entry
Server was unable to process request. ---> Object reference not set to an instance of an object.
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)
And the windows log on the server has these 2 entries, I tried using procmon to see if there is a rights issue, there is none that i can trace, it seems its looking for something but cant find it as its always giving "Object reference not set to an instance of an object", as I say I can create vps on all the other server except this one.
[9/23/2021 5:16:42 PM] ERROR: 'Microsoft Hyper-V 2016' 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)
[9/23/2021 5:16:42 PM] 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)
Just a follow up on this, I decided to check the asp.net 4.5 solidcp service and updated the settings, I changed nothing I used all the defaults, I didnt update the password and it saved and after that it seems the issue is now resolved, although it was running 1.4.8 there might have been some other issue, I am not just wondering if this is due to using the update script across the servers. I will be doing manual updates from now on.
Maybe one thing to take note of and maybe the devs need to look into this, If you have a vps running and you delete it and let it delete the files etc, despite that it deletes the vps from the system, it does not delete the vps files and remove the server folders from the server. However if you stop the vps first and then delete the vps it deletes everything as it should. Maybe the delete funsction needs to stop the vps first and then only execute the delete once the server is stopped.
Hi,
Basically what I was doing was testing the various hyperv servers could create vps, ie testing the images, so all I was doing was creating a vps and once it was created it starts automatically based on the vps settings, so once it was created, all I would do was goto the vps screen and hit the delete button, it would put a line through the vps name etc, and once you refresh the page it would indicate the vps was removed, however if you checked the server the folders of the vps would still be there.
I assumed maybe it was a time situation, so when I did it the second and third times I left it for up to 5 minutes and the same scenario played out, the vps in the cp was removed and the vps files remained. After doing this across 3 hyper v remotes, and creating each vps image on each server, ie 7 variations of vpses, ie centos7,8 ubuntu, win2008, win2012, win2016. I then thought maybe if the vps was running could be part of the issue, so I stopped the vps and then deleted it and it successfully removed the vps and its files, I tested this multiple times, I then tried it again with the vpses started and same issue.
So this is where I posted that this was being experienced. There is no specific image or setup that causes this issue, just create a vps, once created, click on the delete button and confirm.
ok a bit of a follow up on this issue, today I again tried to create a vps on a remote hyperv, solidcp is set to balance out the vpses, and bam same crap, cant create the vps same issue, I then decided to do an iisreset on the win2016 standard server which is the proxy and same server that gave me the initial issue, and what you know, after the iisreset, it started to create the vpses again, Im just not wondering if this was the fix when I ran the solidcp installer settings last time, I never really assumed it was the iis site maybe causing the issue. I still just not sure what to look for the next time it happens. I checked the iis log files but there is no glaring errors etc, I casn see requests were made using the hyperv page but no errors as such or no detailed info either..