pingcap / pingcap/tiup

when i set dashboard_dir, i got a error: 'no such file or directory'

Open
#2,102 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/bug
Dominant language
Go
Stars
466
Forks
338
Avg merge
3d 7h
Merged PRs (30d)
8

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

add dashboard_dir configuration
reload failed ,the error info is:
Error: init config failed: 172.31.18.208:3000: initial dashboards: read local directory /tidb-deploy/grafana-metrics/ failed: open /tidb-deploy/grafana-metrics/: no such file or directory

  1. What did you expect to see?
    reload success

  2. What did you see instead?
    reload failed,but metrics was changed when i flush grafana web

image image
  1. What version of TiUP are you using (tiup --version)?

[root@ip-172-31-31-118 conf]# tiup cluster --version
tiup is checking updates for component cluster ...
Starting component cluster: /root/.tiup/components/cluster/v1.11.1/tiup-cluster --version
tiup version 1.11.1 tiup
Go Version: go1.19.2
Git Ref: v1.11.1
GitHash: b95172df211e4f9b643590f2dd8436ad60c72b38
tiup --v[root@ip-172-31-31-118 conf]# tiup --version
1.11.1 tiup
Go Version: go1.19.2
Git Ref: v1.11.1
GitHash: b95172df211e4f9b643590f2dd8436ad60c72b38
[root@ip-172-31-31-118 conf]#

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the dashboard_dir configuration handling and the reload path that initializes local dashboards. Reproduce the failure with the reported directory configuration and TiUP cluster version, then verify that reload succeeds when the configured directory is handled correctly and existing metrics behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.