Error: Failed to login to vc ServerFaultCode Cannot complete login due to an incorrect user name or password
search cancel

Error: Failed to login to vc ServerFaultCode Cannot complete login due to an incorrect user name or password

book

Article ID: 399371

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

The log at /var/log/vmware/snapservice/snap-service.log

{"level":"error","message":"Failed to login to vc","error":"ServerFaultCode: Cannot complete login due to an incorrect user name or password."}

Environment

8.0

Cause

The service is using invalid or outdated credentials—either from the main compose configuration or from a previously generated secrets file—so vCenter rejects the login attempt.

Resolution

 

  1. Update the credentials in the docker-compose configuration:
    vi /opt/vmware/snapservice/app/deployment/compose_snapservice_config.yaml # under the vCenter login section, correct the username/password

  2. Remove any stale secrets file so the new settings take effect:
    rm -f /etc/vmware/secrets/snapservice/svc_account_credential
  3. Restart the snapservice container to load the updated credentials:
    docker-compose -f /opt/vmware/snapservice/app/docker-compose.yaml down docker-compose -f /opt/vmware/snapservice/app/docker-compose.yaml up -d
  4. Verify successful login by checking that docker ps shows the snapservice container in the “Up” state and reviewing the startup logs for any remaining authentication errors.