I have setup Hashicorp - vault (Vault v1.5.4) on Ubuntu 18.04. My backend is Consul (single node running on same server as vault) - consul service is up. (Also tried local file storage instead of Consul). I have the basic/default configuration.
/etc/vault/config.json
{
“listener”: [{
“tcp”: {
“address” : “0.0.0.0:8200”,
“tls_disable” : 1
}
}],
“api_addr”: “http://:8200”,
“storage”: “file”: {
“path” : “/opt/vault/data”
},
“max_lease_ttl”: “10h”,
“default_lease_ttl”: “10h”,
“ui”:true,
“log_level”: “Debug”
}
/etc/systemd/system/vault.service
[Unit]
Description=vault service
Requires=network-online.target
After=network-online.target
ConditionFileNotEmpty=/etc/vault/config.json
[Service]
User=vault
Group=vault
EnvironmentFile=-/etc/sysconfig/vault
Environment=GOMAXPROCS=2
Restart=on-failure
ExecStart=/opt/vault/vault server -config=/etc/vault/config.json
StandardOutput=/opt/vault/logs/output.log
StandardError=/opt/vault/logs/error.log
LimitMEMLOCK=infinity
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGTERM
[Install]
WantedBy=multi-user.target
My vault service fails to start
systemctl status vault
● vault.service - vault service
Loaded: loaded (/etc/systemd/system/vault.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-10-06 11:06:59 CDT; 34s ago
Process: 13236 ExecStart=/opt/vault/vault server -config=/etc/vault/config.json (code=exited, status=203/EXEC)
systemctl list-units --type=service | grep "vault"
vault.service loaded failed failed vault service
journalctl -xe -u vault
ubuntu2 systemd[1]: vault.service: Scheduled restart job, restart counter is at 5.
ubuntu2 systemd[1]: vault.service: Start request repeated too quickly.
ubuntu2 systemd[1]: vault.service: Failed with result 'exit-code'.
ubuntu2 systemd[1]: Failed to start vault service.
There is nothing in the log files output or error.
How do I debug this?