-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vault login fail after unsealing with CLI. #21905
Comments
This indicates that the Vault client library has received an unexpectedly "empty" response from the Vault server - but it is not very good at passing on good diagnostics when this occurs. You should repeat the equivalent operation using
This command is incorrect: you are attempting to send a Vault API request to port 8201 (the internal use only clustering port) instead of port 8200 (the API). |
@maxb thank you so much for your kindness. I tried the command in your comment and got no respose.
Thanks. Now I understood how HA works in Vault so this was a wrong request ;) |
This use of Including
This error is unexpected and mysterious. Something is going wrong when the standby node attempts to connect to the internal cluster port on the active node, to forward the request. It is not possible to conclude anything more detailed from the information shown so far. You would have to explain your HA setup in considerably greater detail, and it would probably be useful if you stopped obscuring the hostnames involved, as well. |
After removing Please let me ask you one more question about how to configure HA and vault agent servers.
And If I install and run Vault agent, should I install it on the same servers where my Vault is running, which are A and B? |
No, this would not be OK, because the purpose of the Vault cluster address is direct communication from one Vault node to another. Actually, this probably explains your
That completely depends on what you intend to use Vault agent for, but probably not, as there is usually no cause to use Vault agent on the same servers as Vault server. |
Additionally, |
Describe the bug
After starting a vault server following this guide, I got the error while authenticating as the initial root token.
all the steps before the command was the same with the guide,
Even after unsealing and exporting the root token and the vault api address, I failed to the command
vault login
And I couldn't find the
.vault-token
file which is automatically created when testing with the dev mode.(It worked successfully when executing as dev server tho.)
To Reproduce
Steps to reproduce the behavior:
vault login
Expected behavior
A clear and concise description of what you expected to happen.
Environment:
vault status
):vault version
): 1.14.0Vault server configuration file(s):
Additional context
And also, I can't get the response with cluster address with the following error message.
One possible reason I'm thinking is because of
https
. (I'm not sure)Is not available using
http
for a cluster server address?Thank you for your help in advance.
The text was updated successfully, but these errors were encountered: