@Wolfsrudel Thanks for the prompt response.
As per the suggested I’ve changed it to use wit/etc/vault.d/vault.hclh a single interface loop back in the config file
listener "tcp" {
address = "127.0.0.1:8200"
tls_cert_file = "/home/MP7652/vaultcrts/fullchain.pem"
tls_key_file = "/home/MP7652/vaultcrts/privkey.pem"
}
I’m still not able to start the service and it’s failing with exit code 203
$ sudo systemctl status vault
● vault.service - “HashiCorp Vault - A tool for managing secrets”
Loaded: loaded (/etc/systemd/system/vault.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-07-20 06:30:50 UTC; 1min 28s ago
Docs: https://www.vaultproject.io/docs/
Process: 1615 ExecStart=/usr/local/bin/vault server -config=/etc/vault.d/vault.hcl (code=exited, status=203/EXEC)
Main PID: 1615 (code=exited, status=203/EXEC)
Jul 20 06:30:50 vault-2 systemd[1]: vault.service: Service RestartSec=5s expired, scheduling restart.
Jul 20 06:30:50 vault-2 systemd[1]: vault.service: Scheduled restart job, restart counter is at 3.
Jul 20 06:30:50 vault-2 systemd[1]: Stopped “HashiCorp Vault - A tool for managing secrets”.
Jul 20 06:30:50 vault-2 systemd[1]: vault.service: Start request repeated too quickly.
Jul 20 06:30:50 vault-2 systemd[1]: vault.service: Failed with result ‘exit-code’.
Jul 20 06:30:50 vault-2 systemd[1]: Failed to start “HashiCorp Vault - A tool for managing secrets”.
And the below is my complete vault config file:
listener “tcp” {
address = “127.0.0.1:8200”
tls_cert_file = “/home/MP7652/vaultcrts/fullchain.pem”
tls_key_file = “/home/MP7652/vaultcrts/privkey.pem”
}
seal “pkcs11” {
lib = “/usr/vault/lib/libCryptoki2_64.so”
slot = “0”
pin = “AAAA-BBBB-CCCC-DDDD”
key_label = “vault-hsm-key”
hmac_key_label = “vault-hsm-hmac-key”
}
storage “raft” {
path = “/opt/raft”
node_id = “raft_node_1”
}
api_addr = “http://127.0.0.1:8200”
ui = true.
Journalctl log
Jul 20 06:28:11 vault-2 systemd[1]: Failed to start "HashiCorp Vault - A tool for managing secrets".
Jul 20 06:30:35 vault-2 systemd[1]: Started "HashiCorp Vault - A tool for managing secrets".
Jul 20 06:30:35 vault-2 systemd[1]: vault.service: Main process exited, code=exited, status=203/EXEC
Jul 20 06:30:35 vault-2 systemd[1]: vault.service: Failed with result 'exit-code'.
Jul 20 06:30:40 vault-2 systemd[1]: vault.service: Service RestartSec=5s expired, scheduling restart.
Jul 20 06:30:40 vault-2 systemd[1]: vault.service: Scheduled restart job, restart counter is at 1.
Jul 20 06:30:40 vault-2 systemd[1]: Stopped "HashiCorp Vault - A tool for managing secrets".
Jul 20 06:30:40 vault-2 systemd[1]: Started "HashiCorp Vault - A tool for managing secrets".
Jul 20 06:30:40 vault-2 systemd[1]: vault.service: Main process exited, code=exited, status=203/EXEC
Jul 20 06:30:40 vault-2 systemd[1]: vault.service: Failed with result 'exit-code'.
Jul 20 06:30:45 vault-2 systemd[1]: vault.service: Service RestartSec=5s expired, scheduling restart.
Jul 20 06:30:45 vault-2 systemd[1]: vault.service: Scheduled restart job, restart counter is at 2.
Jul 20 06:30:45 vault-2 systemd[1]: Stopped "HashiCorp Vault - A tool for managing secrets".
Jul 20 06:30:45 vault-2 systemd[1]: Started "HashiCorp Vault - A tool for managing secrets".
Jul 20 06:30:45 vault-2 systemd[1]: vault.service: Main process exited, code=exited, status=203/EXEC
Jul 20 06:30:45 vault-2 systemd[1]: vault.service: Failed with result 'exit-code'.
Please let me know if something needs to be tuned.
Thanks