Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consul UI trues to call api/hcp/v2/link/global (HCP Consul Central) endpoint even if no related config #21020

Closed
Nmishin opened this issue Apr 26, 2024 · 4 comments

Comments

@Nmishin
Copy link
Contributor

Nmishin commented Apr 26, 2024

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

@unixchina
Copy link

unixchina commented Jul 12, 2024

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})))

@unixchina
Copy link

every single page would access /api/hcp/v2/link/global ,and response code 404

@unixchina
Copy link

every single page would access /api/hcp/v2/link/global ,and response code 404

Consul v1.18.2
Revision 9fc827c
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)

@Nmishin
Copy link
Contributor Author

Nmishin commented Oct 15, 2024

We updated to the v1.19.2 and the issue is gone.

@Nmishin Nmishin closed this as completed Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants