It’s difficult to analyse the error with such limited information. I would suggest you raise a case with Morpheus support and we will investigate it.
I would double check the os type on the image is set properly in Morpheus under virtual images. Can you edit the image and share a screenshot of the image settings? Also, edit the Linux VM that failed and share a screenshot of the host as well.
Attached are the configurations for both the Linux VM and the virtual image.
Please find the detailed logs below:
Generated by “install agent” action
WARN
05/13/2024 05:52:29 PM [appliance] [appJobNormal-4] host not reachable: https://morpheus.domain.com/
INFO
05/13/2024 05:52:29 PM [appliance] [appJobNormal-4] reach test result: {success=false}
ERROR
05/13/2024 05:52:29 PM [appliance] [appJobNormal-4] executeComputeServerCommand error: com.jcraft.jsch.JSchException: host must not be null.
ERROR
05/13/2024 05:52:29 PM [appliance] [appJobNormal-4] rpc error to: null - host must not be null. com.jcraft.jsch.JSchException: host must not be null. at com.jcraft.jsch.JSch.getSession(JSch.java:357) at com.jcraft.jsch.JSch$getSession$1.call(Unknown Source) at com.morpheus.RpcService.executeSudoCommand(RpcService.groovy:55) [3 skipped] at com.morpheus.RpcService.executeSudoCommand(RpcService.groovy) at com.morpheus.RpcService$executeSudoCommand.call(Unknown Source) at com.morpheus.provision.AbstractBoxProvisionService.executeComputeServerCommand(AbstractBoxProvisionService.groovy:2332) [2 skipped] at com.morpheus.provision.AbstractBoxProvisionService$executeComputeServerCommand$2.call(Unknown Source) at com.morpheus.os.LinuxOsService.installLinuxVmAgent(LinuxOsService.groovy:71) [3 skipped] at com.morpheus.os.LinuxOsService$installLinuxVmAgent.call(Unknown Source) at com.morpheus.provision.AbstractBoxProvisionService.installVmAgent(AbstractBoxProvisionService.groovy:728) [3 skipped] at com.morpheus.provision.AbstractBoxProvisionService$installVmAgent$1.callCurrent(Unknown Source) at com.morpheus.provision.AbstractBoxProvisionService.upgradeVmAgent(AbstractBoxProvisionService.groovy:823) [3 skipped] at com.morpheus.provision.AbstractBoxProvisionService$upgradeVmAgent$0.callCurrent(Unknown Source) at com.morpheus.provision.AbstractBoxProvisionService.upgradeAgent(AbstractBoxProvisionService.groovy:812) [3 skipped] at com.morpheus.provision.AbstractBoxProvisionService$upgradeAgent.call(Unknown Source) at com.morpheus.AbstractComputeService.upgradeAgent(AbstractComputeService.groovy:804) [3 skipped] at com.morpheus.AbstractComputeService$upgradeAgent.call(Unknown Source) at com.morpheus.ComputeService.onServerUpgrade(ComputeService.groovy:380) [3 skipped] at com.morpheus.ComputeService$onServerUpgrade$3.call(Unknown Source) at com.morpheus.ApplianceJobService.executeApplianceJob(ApplianceJobService.groovy:1264) [3 skipped] at jdk.internal.reflect.GeneratedMethodAccessor1361.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at com.morpheus.ApplianceJobService$_onApplianceJob_closure2.doCall(ApplianceJobService.groovy:297) [6 skipped] at com.morpheus.ApplianceJobService$_onApplianceJob_closure2.doCall(ApplianceJobService.groovy) at jdk.internal.reflect.GeneratedMethodAccessor1343.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at com.morpheus.ApplianceJobService$_onApplianceJob_closure3.doCall(ApplianceJobService.groovy:364) [7 skipped] at jdk.internal.reflect.GeneratedMethodAccessor1342.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at com.morpheus.util.BoundedExecutor$2.run(BoundedExecutor.java:47) [7 skipped] [3 skipped]
Sure, here’s the corrected version of the email:
Hi Deepti,
Sorry for the late response.
The issue has been resolved. The agent was not able to recognize the Morpheus appliance because of the Cloudflare proxy. I whitelisted the agent’s IP in Cloudflare, and now everything works fine.