hashicorp/vault-guides

Raft storage cluster.sh errors

AdamGoldsmith opened this issue · 4 comments

When running operations/raft-storage/local/cluster.sh on a centos7 VM, I hit the following problems:

  1. OSNAME incorrectly identified as macos
    cluster.sh uses ifconfig lo0 as the identification method for macos, if that fails it tries ifconfig lo to identify linux. On my VM, both of these "ifconfig" commands are successful so it incorrectly picks up on macos first.
  2. When trying to start vault on 127.0.0.1 via cluster.sh setup vault_1, it errors complaining about mlock not being enabled on the system. I added disable_mlock = true to vault1's config to avoid this error. As this is a demo environment, I didn't consider this a security concern, and the fact disable_mlock is set in the remaining vault nodes' config files, I assume this was accidentally omitted from vault1's config.

I also hit the same issue mentioned in (2).

I'm having a problem with "operations/raft-storage/local/cluster.sh" running any of the ./cluster.sh commands:

No matter which command:
./cluster.sh setup all
./cluster.sh setup vault_1
./cluster.sh setup vault_2
etc

I get the following.

[vault_1] starting Vault server @ http://127.0.0.1:8200 usage: sleep seconds

[vault_2] starting Vault server @ http://127.0.0.2:8200 usage: sleep seconds

[vault_3] starting Vault server @ http://127.0.0.3:8200 usage: sleep seconds

I've seen this from 2 people on 3 different M1 Macs.

It should be fixed now. Please try again.

working great. Thanks @yhyakuna !