Error reading mounts: Error making API request. Code: 400. Errors: *missing client token

3,735 views
Skip to first unread message

kalsiam...@gmail.com

unread,
Jun 28, 2017, 7:36:40 PM6/28/17
to Vault
Hi All,

I am able to add configure vault client. Now, I am able to successfully access the vault status. But, now when I am executing the commands like vault mounts it is throwing error like

$  vault mounts
Error reading mounts: Error making API request.

URL: GET https://*****:8200/v1/sys/mounts
Code: 400. Errors:

* missing client token




kalsiam...@gmail.com

unread,
Jun 28, 2017, 7:52:43 PM6/28/17
to Vault
To add on I am not able to write the secret/foo files as well. It is throwing the same error.

Joel Thompson

unread,
Jun 28, 2017, 10:21:15 PM6/28/17
to vault...@googlegroups.com
Hi,

The error indicates that you don't have a client token in your requests. You should read about tokens in https://www.vaultproject.io/docs/concepts/tokens.html

The short version is that you can either get a token directly (e.g., a root token generated when doing a vault init) or through an authentication backend (e.g., with the vault auth command); the Vault client will look for a token in either the VAULT_TOKEN environment variable or in the ~/.vault-token file.

--Joel

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/3b5dec09-a311-4008-b3f6-fdadfc1ed37f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages