Error when adding HyperV host
-
Hi,
When trying to add HyperV node in Storware Console, we are getting this error. Glad if someone could post the resolution steps.Connectivity test task failed: CertificateCacheException: Couldn't download certificates from URL: https://IP Address:50882
-
@nagamaheshbabu Was able to resolve this error, now facing below error.
javax.net.ssl.SSLPeerUnverifiedException: Hostname not verified:
-
@a-spinek Could you please help in resolving this error.
-
@nagamaheshbabu please try in the settings of the added Hyper-V move the Trust all certificates slider to on and do inventory sync again.
-
@j-linda said in Error when adding HyperV host:
se try in the settings of the added Hyper-V move the Trust all certificates slider to on and do inventory sync again.
Hi Now it throws below error:
ExternalAPIException: Bad RequestDid connectivity test as well:
Connectivity test task failed: ExternalAPIException: Failed to test Connectivity for Hyper-V. Bad Request
Here is the error log
[2024-09-05 12:22:51.993] WARN [pool-5-thread-10] IVmSource.fetchApiVersion:138
[6cc46ac3-bd66-4167-93d3-d2db249a3e27] Cannot fetch API version: Bad Request. Skipping.[2024-09-05 12:22:52.063] INFO [pool-5-thread-10] InventorySyncTask.sendInventory:603
[6cc46ac3-bd66-4167-93d3-d2db249a3e27] Sending inventory with type INIT to Server[2024-09-05 12:22:52.087] INFO [pool-5-thread-10] InventorySyncTask.sendInventory:607
[6cc46ac3-bd66-4167-93d3-d2db249a3e27] Finished step: INIT[2024-09-05 12:22:52.159] INFO [pool-5-thread-10] InventorySyncTask.sendInventory:603
[6cc46ac3-bd66-4167-93d3-d2db249a3e27] Sending inventory with type DATACENTERS to Server[2024-09-05 12:22:52.199] INFO [pool-5-thread-10] InventorySyncTask.sendInventory:607
[6cc46ac3-bd66-4167-93d3-d2db249a3e27] Finished step: DATACENTERS[2024-09-05 12:22:52.200] INFO [pool-5-thread-10] HypervApi.getCluster:303
[6cc46ac3-bd66-4167-93d3-d2db249a3e27] Getting cluster information from host: https://192.168.250.53:50882[2024-09-05 12:22:52.200] INFO [pool-5-thread-10] HypervRequestSender.refreshAuthTokenIfExpired:70
[6cc46ac3-bd66-4167-93d3-d2db249a3e27] Auth token expired, calling refresh(): 192.168.250.53 -
@nagamaheshbabu Which version of Hyper-V Agent did you use?
-
@j-linda
Microsoft Windows Hyper-V Server 2012 R2, 6.3.9600.16384 -
@nagamaheshbabu Here is a link to a documantation where the configuration process with Hyper-V hypervisor is described: https://storware.gitbook.io/backup-and-recovery/protecting-virtual-machines/virtual-machines/microsoft-hyper-v
-
@j-linda Installed the hyperV agent of Storware in Base Machine and currently trying to authenticate to Hypervisor from the Storware console and it is throwing the error.
Synchronization task failed: ExternalAPIException: Bad Request
-
@j-linda @krzysztof-sz can someone revert on this,
-
@j-linda @krzysztof-sz attached is the log.
[2024-09-23 08:50:08.718] INFO [pool-5-thread-89] InventorySyncTask.initHVSync:306
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Started Inventory Sync Task of Hypervisor: 192.168.250.53[2024-09-23 08:50:08.718] INFO [pool-5-thread-89] HypervApi.getAgentVersion:557
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Getting Agent version[2024-09-23 08:50:08.724] INFO [pool-5-thread-89] HypervRequestSender.refreshAuthTokenIfExpired:70
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Auth token expired, calling refresh(): 192.168.250.53[2024-09-23 08:50:09.742] WARN [pool-5-thread-89] IVmSource.fetchApiVersion:138
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Cannot fetch API version: Bad Request. Skipping.[2024-09-23 08:50:09.805] INFO [pool-5-thread-89] InventorySyncTask.sendInventory:603
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Sending inventory with type INIT to Server[2024-09-23 08:50:09.826] INFO [pool-5-thread-89] InventorySyncTask.sendInventory:607
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Finished step: INIT[2024-09-23 08:50:09.913] INFO [pool-5-thread-89] InventorySyncTask.sendInventory:603
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Sending inventory with type DATACENTERS to Server[2024-09-23 08:50:09.953] INFO [pool-5-thread-89] InventorySyncTask.sendInventory:607
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Finished step: DATACENTERS[2024-09-23 08:50:09.953] INFO [pool-5-thread-89] HypervApi.getCluster:303
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Getting cluster information from host: https://192.168.250.53:50882[2024-09-23 08:50:09.953] INFO [pool-5-thread-89] HypervRequestSender.refreshAuthTokenIfExpired:70
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Auth token expired, calling refresh(): 192.168.250.53[2024-09-23 08:50:10.855] ERROR [pool-5-thread-89] InventorySyncTask.lambda$run$0:118
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Bad Requesteu.storware.vprotect.engine.exception.ExternalAPIException: Bad Request
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervHypervisor.getHvCluster(HypervHypervisor.java:134) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.getHypervisorCluster(InventorySyncTask.java:370) ~[engine.jar:?]
at java.util.Optional.orElseGet(Optional.java:369) [?:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.getHypervisorClusters(InventorySyncTask.java:363) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.syncAndUpdateProgress(InventorySyncTask.java:256) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.lambda$updateProgress$1(InventorySyncTask.java:251) ~[engine.jar:?]
at java.util.stream.ReduceOps$1ReducingSink.accept(ReduceOps.java:80) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.reduce(ReferencePipeline.java:563) ~[?:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.updateProgress(InventorySyncTask.java:251) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.syncHypervisor(InventorySyncTask.java:198) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.run(InventorySyncTask.java:105) [engine.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: eu.storware.vprotect.engine.exception.ExternalAPIException: Bad Request
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.send(HypervRequestSender.java:50) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervApi.getCluster(HypervApi.java:304) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervHypervisor.getHvCluster(HypervHypervisor.java:124) ~[engine.jar:?]
... 18 more
Caused by: eu.storware.vprotect.engine.exception.ExternalAPIException: Bad Request
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.getAuthenticationToken(HypervRequestSender.java:128) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.refreshAuthTokenIfExpired(HypervRequestSender.java:71) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.checkTokenAndCall(HypervRequestSender.java:64) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.send(HypervRequestSender.java:41) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervApi.getCluster(HypervApi.java:304) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervHypervisor.getHvCluster(HypervHypervisor.java:124) ~[engine.jar:?]
... 18 more
Caused by: eu.vprotect.hypervclient.ApiException: Bad Request
at eu.vprotect.hypervclient.ApiClient.handleResponse(ApiClient.java:926) ~[engine.jar:?]
at eu.vprotect.hypervclient.ApiClient.execute(ApiClient.java:842) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.getAuthenticationToken(HypervRequestSender.java:122) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.refreshAuthTokenIfExpired(HypervRequestSender.java:71) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.checkTokenAndCall(HypervRequestSender.java:64) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.send(HypervRequestSender.java:41) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervApi.getCluster(HypervApi.java:304) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervHypervisor.getHvCluster(HypervHypervisor.java:124) ~[engine.jar:?]
... 18 more
[2024-09-23 08:50:10.857] ERROR [pool-5-thread-89] ITask.finishTask:48
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Synchronization task failed:eu.storware.vprotect.engine.exception.ExternalAPIException: Bad Request
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervHypervisor.getHvCluster(HypervHypervisor.java:134) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.getHypervisorCluster(InventorySyncTask.java:370) ~[engine.jar:?]
at java.util.Optional.orElseGet(Optional.java:369) ~[?:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.getHypervisorClusters(InventorySyncTask.java:363) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.syncAndUpdateProgress(InventorySyncTask.java:256) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.lambda$updateProgress$1(InventorySyncTask.java:251) ~[engine.jar:?]
at java.util.stream.ReduceOps$1ReducingSink.accept(ReduceOps.java:80) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.reduce(ReferencePipeline.java:563) ~[?:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.updateProgress(InventorySyncTask.java:251) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.syncHypervisor(InventorySyncTask.java:198) ~[engine.jar:?]
at eu.storware.vprotect.engine.task.InventorySyncTask.run(InventorySyncTask.java:105) [engine.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: eu.storware.vprotect.engine.exception.ExternalAPIException: Bad Request
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.send(HypervRequestSender.java:50) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervApi.getCluster(HypervApi.java:304) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervHypervisor.getHvCluster(HypervHypervisor.java:124) ~[engine.jar:?]
... 18 more
Caused by: eu.storware.vprotect.engine.exception.ExternalAPIException: Bad Request
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.getAuthenticationToken(HypervRequestSender.java:128) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.refreshAuthTokenIfExpired(HypervRequestSender.java:71) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.checkTokenAndCall(HypervRequestSender.java:64) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.send(HypervRequestSender.java:41) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervApi.getCluster(HypervApi.java:304) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervHypervisor.getHvCluster(HypervHypervisor.java:124) ~[engine.jar:?]
... 18 more
Caused by: eu.vprotect.hypervclient.ApiException: Bad Request
at eu.vprotect.hypervclient.ApiClient.handleResponse(ApiClient.java:926) ~[engine.jar:?]
at eu.vprotect.hypervclient.ApiClient.execute(ApiClient.java:842) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.getAuthenticationToken(HypervRequestSender.java:122) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.refreshAuthTokenIfExpired(HypervRequestSender.java:71) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.checkTokenAndCall(HypervRequestSender.java:64) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervRequestSender.send(HypervRequestSender.java:41) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervApi.getCluster(HypervApi.java:304) ~[engine.jar:?]
at eu.storware.vprotect.engine.hypervisor.hyperv.HypervHypervisor.getHvCluster(HypervHypervisor.java:124) ~[engine.jar:?]
... 18 more
[2024-09-23 08:50:10.891] INFO [pool-5-thread-89] ITask.lambda$finishTask$2:72
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Finishing d80c9435-2fc4-461b-9f90-e119bc4e7e8f: [Inventory synchronization] from 2024-09-23T08:49:55+02:00 to 2024-09-23T09:49:55+02:00 Task with message "Synchronization task failed: ExternalAPIException: Bad Request"[2024-09-23 08:50:10.989] INFO [pool-5-thread-89] InventorySyncTask.sendInventory:603
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Sending inventory with type FINALIZE to Server[2024-09-23 08:50:11.017] INFO [pool-5-thread-89] InventorySyncTask.sendInventory:607
[d80c9435-2fc4-461b-9f90-e119bc4e7e8f] Finished step: FINALIZE