DCLI unable to authenticate user
search cancel

DCLI unable to authenticate user

book

Article ID: 448852

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

When trying to run dcli commands, we see errors in the form of:

Error: Unable to authenticate user. Please enter the credentials again.
Server error: com.vmware.vapi.std.errors.Unauthenticated

This can happen without even prompting for credentials.

Cause

This happens because dcli is locked into a stale, corrupt, or restricted credential cache file.

Resolution

DCLI credentials are cached in "/root/.dcli/.dcli_credstore". Deleting that file will remove the old cache and in next attempt dcli will ask for credentials again.