issues creating vms...
 
Notifications
Clear all

issues creating vms again Please help, im stumped now

10 Posts
2 Users
0 Reactions
1,618 Views
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

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

00:00:00
Setup external network
00:00:00
External network setup - Skipped
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: 1
00:00:00
OS Template: Centos7
00:00:00
Start Converting template VHD
00:00:00
Template VHD path: c:\scp71\templates\Centos7.vhdx
00:00:00
Converting to 'c:\Hyper-V\root\root-915\Virtual Hard Disks\root-915.vhdx'
00:00:01
Error while converting VHD: Server was unable to process request. ---> Object reference not set to an instance of an object.
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)
00:00:01
VPS was not created

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)

Topic Tags
9 Replies
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

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.

Reply
1 Reply
(@berkut)
Joined: 7 years ago

Estimable Member
Posts: 110

@hxkd so, did the 4.5 asp version fix everything?

Reply
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

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.

Reply
1 Reply
(@berkut)
Joined: 7 years ago

Estimable Member
Posts: 110

@hxkd hello, please write step by step how to reproduce the issue with server folders removing.

Reply
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

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.

Reply
3 Replies
(@berkut)
Joined: 7 years ago

Estimable Member
Posts: 110

@hxkd so, the step by step scenario is:

1. Create a VM.

2. Don't stop the created server.

3. Click the button "remove"

4. Unset the checkbox "save files"

5. Confirm removing the server.

After that, the files are not deleted?

Reply
(@berkut)
Joined: 7 years ago

Estimable Member
Posts: 110

I ask that, because in the code we shutdown a server before remove it. And we don't have any issue before, because re-install a server scenario works in that way - "remove the running or stopped server and then install a new one". 

Also please provide audit logs when you remove the server.

Reply
(@hxkd)
Joined: 8 years ago

Reputable Member
Posts: 237

@berkut Hi,

After removing the server 4.5 and re adding it seems to have resolved the deletion issue, however as per below here, I left the server for 2 days and tonight created a vps, with errors being reproduced as before, after restarting the iis webservice it all seems to be working fine, ie creation deletion, etc. I am going to give it some much more in depth testing tomorrow to see if I can get it to give errors, the weird par is we have been on 1.4.8 since the start of it and has been working for the past few months no issue, unless a ms patch is causing some issues. I am going to watch it over the next week to see if it goes back to causing issues.

Thanks for your help

Reply
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

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..

Reply
Share: