You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
Am updating out base packer images for a Vault/Consul implementation we have. We use this repo to install and run consul as well as vault during the image create and hand off to terraform to spin up the images.
It looks like since our last run of the images back in January we are now getting an issue whereby consul fails to start as it does not like the new default config:
Apr 28 11:40:35 ip-xxx-xxx-xxx-xxx user-data: 2021-04-28 11:40:35 [INFO] [run-consul] Creating default Consul configuration
Apr 28 11:40:35 ip-xxx-xxx-xxx-xxx user-data: 2021-04-28 11:40:35 [INFO] [run-consul] Installing Consul config file in /opt/consul/config/default.json
Apr 28 11:40:35 ip-xxx-xxx-xxx-xxx user-data: 2021-04-28 11:40:35 [INFO] [run-consul] Creating systemd config file to run Consul in /etc/systemd/system/consul.service
Apr 28 11:40:35 ip-xxx-xxx-xxx-xxx user-data: 2021-04-28 11:40:35 [INFO] [run-consul] Reloading systemd config and starting Consul
Apr 28 11:40:35 ip-xxx-xxx-xxx-xxx systemd: Reloading.
Apr 28 11:40:35 ip-xxx-xxx-xxx-xxx user-data: Created symlink from /etc/systemd/system/multi-user.target.wants/consul.service to /etc/systemd/system/consul.service.
Apr 28 11:40:35 ip-xxx-xxx-xxx-xxx systemd: Reloading.
Apr 28 11:40:35 ip-xxx-xxx-xxx-xxx systemd: Starting "HashiCorp Consul - A service mesh solution"...
Apr 28 11:40:40 ip-xxx-xxx-xxx-xxx consul: ==> Error parsing /opt/consul/config/default.json: 2 errors occurred:
Apr 28 11:40:40 ip-xxx-xxx-xxx-xxx consul: * invalid config key telemetry.disable_compat_1.9
Apr 28 11:40:40 ip-xxx-xxx-xxx-xxx consul: * invalid config key ui_config
Apr 28 11:40:40 ip-xxx-xxx-xxx-xxx user-data: Job for consul.service failed because the control process exited with error code. See "systemctl status consul.service" and "journalctl -xe" for details.
Apr 28 11:40:40 ip-xxx-xxx-xxx-xxx systemd: consul.service: main process exited, code=exited, status=1/FAILURE
If I remove this config then the run-consul command succeeds. I can find no reference to this in the 1.7.1 release notes so suspect this is a new bit of config in 1.9.x that is not backwards compatible?
The text was updated successfully, but these errors were encountered:
Am updating out base packer images for a Vault/Consul implementation we have. We use this repo to install and run consul as well as vault during the image create and hand off to terraform to spin up the images.
It looks like since our last run of the images back in January we are now getting an issue whereby consul fails to start as it does not like the new default config:
The command we run in our packer build is:
With
consul_version
being set to 1.7.1The user-data.sh we pass to the ASG images then runs the following on boot:
The error we now see in the logs is:
If I remove this config then the run-consul command succeeds. I can find no reference to this in the 1.7.1 release notes so suspect this is a new bit of config in 1.9.x that is not backwards compatible?
The text was updated successfully, but these errors were encountered: