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

tidb-dashboard cannot fetch trace for pd #7253

Closed
nolouch opened this issue Oct 25, 2023 · 0 comments · Fixed by #7255
Closed

tidb-dashboard cannot fetch trace for pd #7253

nolouch opened this issue Oct 25, 2023 · 0 comments · Fixed by #7255
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. severity/minor type/bug The issue is confirmed as a bug.

Comments

@nolouch
Copy link
Contributor

nolouch commented Oct 25, 2023

Bug Report

dashboard use api {pd-id}:{pd-port}/debug/pprof/trace to fetch the trace data. but report error:

➜  test curl  http://127.0.0.1:2379/debug/pprof/trace?seconds=5  -v
*   Trying 127.0.0.1:2379...
* Connected to 127.0.0.1 (127.0.0.1) port 2379 (#0)
> GET /debug/pprof/trace?seconds=5 HTTP/1.1
> Host: 127.0.0.1:2379
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Access-Control-Allow-Headers: accept, content-type, authorization
< Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE
< Access-Control-Allow-Origin: *
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff+trace
< X-Go-Pprof: 1
< Date: Wed, 25 Oct 2023 10:01:41 GMT
< Content-Length: 16
<
Unknown profile
* Connection #0 to host 127.0.0.1 left intact

report 404

ref https://github.com/etcd-io/etcd/pull/12742/files

@nolouch nolouch added the type/bug The issue is confirmed as a bug. label Oct 25, 2023
@nolouch nolouch added severity/minor affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. severity/major labels Oct 25, 2023
ti-chi-bot bot pushed a commit that referenced this issue Oct 26, 2023
close #7253

api: fix cannot dump trace with dashboard

Signed-off-by: nolouch <[email protected]>
ti-chi-bot bot pushed a commit that referenced this issue Oct 26, 2023
close #7253

api: fix cannot dump trace with dashboard

Signed-off-by: nolouch <[email protected]>

Co-authored-by: nolouch <[email protected]>
ti-chi-bot bot added a commit that referenced this issue Oct 26, 2023
close #7253

api: fix cannot dump trace with dashboard

Signed-off-by: nolouch <[email protected]>

Co-authored-by: nolouch <[email protected]>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
@rleungx rleungx added affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. labels Oct 30, 2024
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. severity/minor type/bug The issue is confirmed as a bug.
Projects
Development

Successfully merging a pull request may close this issue.

2 participants