"Cannot complete login due to an incorrect user name or password" error when creating a new VM
search cancel

"Cannot complete login due to an incorrect user name or password" error when creating a new VM

book

Article ID: 335233

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:

• VM creation fails with the error "Cannot complete login due to an incorrect username or password."

• Within the /opt/vmware/vcloud-director/logs/vcloud-container-debug.log you observe an error similar to the following and how the PUT request is sent to vcenter server:

2023-09-08 14:56:47,978 | ERROR | task-service-activity-pool-69 | FutureUtil      | Failed to deploy VM | activity=(com.vmware.vcloud.vimproxy.internal.impl.PCEventProcessingActivity,urn:uuid:########-####-####-####-############) activity=(com.vmware.ssdc.backend.ReactToVmPowerStateChangeInVcActivity,urn:uuid:########-####-####-####-############) vcd=########-####-####-####-############,task=########-####-####-####-############ activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:########-####-####-####-############)

com.vmware.ssdc.util.LMException: Cannot complete login due to an incorrect username or password.

  at com.vmware.ssdc.util.LMException.wrap(LMException.java:128)

  at com.vmware.vcloud.val.filetransfer.impl.FileTransferToRemoteHostActivity$TransferToRemoteHostPhase.invokeCancelableOperation(FileTransferToRemoteHostActivity.java:115)

  at com.vmware.vcloud.common.activity.AbstractActivity$CancelablePhase.invoke(AbstractActivity.java:460)

  at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)

  at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)

  at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

  at java.base/java.lang.Thread.run(Thread.java:829)

Caused by: java.io.IOException: Cannot complete login due to an incorrect username or password.

  at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl$TransferWrapper.execute(NfcClientFacadeImpl.java:177)

  at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl.putFile(NfcClientFacadeImpl.java:234)

  at com.vmware.vcloud.val.filetransfer.impl.FileTransferToRemoteHostActivity$TransferToRemoteHostPhase.invokeCancelableOperation(FileTransferToRemoteHostActivity.java:112)

  ... 8 more

Caused by: HTTP error on PUT https://<vcenter ip-fqdn/folder/<DATASTORE_UUID>/media/<ORGANIZATION_VDC_UUID>/<ORGANIZATION_UUID>/media-<MEDIA_UUID>.iso?dcPath=example-dc&dsName=example-xxx: 500

  at com.vmware.vcloud.val.nfc.client.impl.HttpTransferClientSession$StreamConsumer.execute(HttpTransferClientSession.java:108)

  at com.vmware.vcloud.val.nfc.client.impl.HttpTransferClientSession.putFile(HttpTransferClientSession.java:184)

  at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl$1.run(NfcClientFacadeImpl.java:238)

  at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl$1.run(NfcClientFacadeImpl.java:234)

  at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl$TransferWrapper.execute(NfcClientF

 

 

Environment

VMware Cloud Director 10.x

Resolution

  • Run the below mentioned command in the VCD:

# /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n vcloud.val.httptransfer.useVcenterUrl -v false

  • Restart the vcd service to apply the change.

# service vmware-vcd start