Skip to content

tidb-dashboard cannot fetch trace for pd #7253

@nolouch

Description

@nolouch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.severity/minortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions