Skip to content
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 is sealed wrong error? #2129

Closed
AndreaCrotti opened this issue Nov 25, 2016 · 3 comments
Closed

Vault is sealed wrong error? #2129

AndreaCrotti opened this issue Nov 25, 2016 · 3 comments

Comments

@AndreaCrotti
Copy link
Contributor

I just did
$ http http://52.19.75.33:8200/v1/sys/init
and I got the right response, then I just had a typo, using a non existent URL and got instead back:

$ http http://52.19.75.33:8200/v1/sys/typo

HTTP/1.1 503 Service Unavailable
Content-Length: 31
Content-Type: application/json
Date: Fri, 25 Nov 2016 15:10:20 GMT

{
    "errors": [
        "Vault is sealed"
    ]
}

Not sure it's normal, the vault is definitively not sealed and 503 also is an odd return code for this.
Is that on purpose?

@AndreaCrotti
Copy link
Contributor Author

I'm sorry I was wrong it's actually sealed, I restarted in the meanwhile.
However the first call to sys/init still worked even if it was sealed, is that desired?

@BenjaminFarley
Copy link
Contributor

If the Vault server hasn't already been initialized on the mounted backend, the first call to sys/init will work, producing your Initial Root Token and your Unseal keys. Any subsequent requests to it afterwards will bring back a Vault is already Initialized error.

@AndreaCrotti
Copy link
Contributor Author

Yes ok sure sounds good, sorry for the false alarm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants