My virtual server is failing to start. The error log shows "Domain already exists on hypervisor."
My virtual server is failing to stop. The error log shows "Domain does not exist on hypervisor."
OnApp All versions
If you are seeing that the domain does not exist or already exists on the hypervisor. This means the virtual server is in the wrong state and needs to be corrected. The fastest way to do this would be to enter the MySQL Database and change the boot status of the virtual server. To start you will need the vitual servers identifier which can be obtained via the OnApp UI. An example would be http://yourcloud.com/virtual_machines/g59xlkfqaecrqt The bold section is the identifier.
Next you will want to search for the Virtual server in the database to make sure you have the correct one.
select * from virtual_machines where identifier='g59xlkfqaecrqt';
This will have output that shows the information of the virtual server. There will be a field called 'booted' 1 being on and 0 being off. This should correlate with what you have in the OnApp UI now. You will need to set it to the opposite of what it is set to.
update virtual_machines set booted=0 where identifier='g59xlkfqaecrqt';
(Set booted=1 if you cannot shut down the Virtual server in the UI)
Now go back to the virtual server home page and refresh. Try to power on/ off the virtual server again. The task should now complete successfully.