consul-alerts icon indicating copy to clipboard operation
consul-alerts copied to clipboard

INFO[0003] Running for leader election... Error querying Consul agent: Unexpected response code: 403 (Permission denied) INFO[0003] Shutting down watcher --> Exit Code: 1

Open AmjadHussainSyed opened this issue 4 years ago • 1 comments

not sure why its getting permission denied. I have the root token with all the privileges. I tried with the given ACL it failed so i tried with the root token still it failed.

INFO[0003] Started Consul-Alerts API
INFO[0003] Running for leader election...
Error querying Consul agent: Unexpected response code: 403 (Permission denied)
INFO[0004] Shutting down watcher --> Exit Code:  1

using consul 1.6.1

AmjadHussainSyed avatar Nov 07 '19 14:11 AmjadHussainSyed

This seems to be due to an old version of the Consul API client which doesn't pass auth tokens to the /v1/agent/self request.

The https://hub.docker.com/r/mwillemsma/consul-alerts docker image based on the mawi001/consul-alerts fork appears to have been built using updated deps and works.

far-blue avatar May 27 '20 11:05 far-blue