consul
consul copied to clipboard
Consul UI trues to call api/hcp/v2/link/global (HCP Consul Central) endpoint even if no related config
Overview of the Issue
In the logs I see an errors:
2024-04-26T16:54:18.042Z [INFO] agent.http: Received error from resource service: Not found: error="rpc error: code = NotFound desc = resource not found"
2024-04-26T16:54:20.124Z [INFO] agent.http: Received error from resource service: Not found: error="rpc error: code = NotFound desc = resource not found"
In the browser, I see that every time I press something, it tries to reach /api/hcp/v2/link/global
and, of course, receives a 404 error because nothing is configured.
Reproduction Steps
Consul info for both Client and Server
Client info
Output from client 'consul info' command here
Client agent HCL config
Server info
agent:
check_monitors = 0
check_ttls = 0
checks = 0
services = 0
build:
prerelease =
revision = 98cb473c
version = 1.18.1
version_metadata =
consul:
acl = enabled
bootstrap = false
known_datacenters = 1
leader = true
leader_addr = 172.20.187.72:8300
server = true
raft:
applied_index = 179
commit_index = 179
fsm_pending = 0
last_contact = 0
last_log_index = 179
last_log_term = 5
last_snapshot_index = 0
last_snapshot_term = 0
latest_configuration = [{Suffrage:Voter ID:867f50b6-719e-69ee-2888-a2bc3e294b34 Address:172.20.187.72:8300}]
latest_configuration_index = 0
num_peers = 0
protocol_version = 3
protocol_version_max = 3
protocol_version_min = 0
snapshot_version_max = 1
snapshot_version_min = 0
state = Leader
term = 5
runtime:
arch = amd64
cpu_count = 2
goroutines = 219
max_procs = 2
os = linux
version = go1.21.8
serf_lan:
coordinate_resets = 0
encrypted = true
event_queue = 1
event_time = 5
failed = 0
health_score = 0
intent_queue = 1
left = 0
member_time = 5
members = 1
query_queue = 0
query_time = 1
Nothing set in cloud option, but I tried to add like `cloud: {}` this isn't help
Operating system and Environment details
Log Fragments
me too
ui/assets/consul-ui-7037f5ab76de4013a0fb9e2ca1bb5849.j:4457
return r.setRequestHeader(t,n)})),l.beforeSend(r),r.withCredentials=!0,r.send(l.body),r}}})),define("consul-ui/utils/intl/missing-message",["exports","@ember/debug"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){(0,t.runInDebug)((t=>console.debug(Translation key not found: ${e}
)))
every single page would access /api/hcp/v2/link/global ,and response code 404
every single page would access /api/hcp/v2/link/global ,and response code 404
Consul v1.18.2 Revision 9fc827ca Build Date 2024-05-16T19:10:00Z Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
We updated to the v1.19.2 and the issue is gone.