How Do You Fix the Stack Storm Error “Failed to authenticate”?

Problem scenario
You run an st2 command, but it fails with an error like this:

Failed to authenticate with credentials provided in the config.
ERROR: 401 Client Error: Unauthorized
MESSAGE: Invalid or missing credentials for url:

What should you do?

Run a command like this (but replace "jdoe" and "passwordhere" with your credentials respectively):

st2 login jdoe --password 'passwordhere'

Now run the st2 command(s).

Leave a comment

Your email address will not be published. Required fields are marked *