Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Unexpected response code: 500 #169

Open
joeauerbach opened this issue Oct 28, 2019 · 2 comments
Open

Unexpected response code: 500 #169

joeauerbach opened this issue Oct 28, 2019 · 2 comments
Labels

Comments

@joeauerbach
Copy link

joeauerbach commented Oct 28, 2019

Okay, I can't seem to get vault running correctly here, so I'm going to try to step by step this and see if I got it right.

a: download repos onto terraform server. That went swimmingly.
b: ran terraform-aws-vault/modules/vault-cluster and terraform-aws-consul/modules/consul-cluster/. This also seems to have gone well after setting the mandatory variables. I used the provided ami's because I'm just testing here.
c: ran run-consul-script --server on all 3 consul servers in the cluster.
d: ran "/opt/vault/bin/run-vault --tls-cert-file /opt/vault/tls/vault.crt.pem --tls-key-file /opt/vault/tls/vault.key.pem" on all three vault instances in the cluster.
e: ran vault operator init on a vault instance, and got the following error:

Error initializing: Error making API request.

URL: PUT https://127.0.0.1:8200/v1/sys/init
Code: 400. Errors:

  • failed to check for initialization: Unexpected response code: 500

So now I'm not sure what I might have done wrong. this seems like a lot of hoops, which I'm fine with, but for something I just wanted to test it's been pretty tricky to even look at it.

@joeauerbach
Copy link
Author

joeauerbach commented Oct 29, 2019

After rebooting and reloading and installing Dnsmasq I am still seeing the following:

'# vault operator init'
Error initializing: Put https://127.0.0.1:8200/v1/sys/init: dial tcp 127.0.0.1:8200: connect: connection refused

@brikis98
Copy link
Collaborator

brikis98 commented Nov 4, 2019

Please see the examples in the examples folder. Those are the ones you should be running if you want to take the code for a quick spin, as they show you how everything is meant to be wired together.

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

No branches or pull requests

2 participants