Error Installing TiDB v7.5.0

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 安装tidb v7.5.0报错

| username: 谢斌1204

Error: init config failed: add local rule: read local directory /data/tidb/prometheus_rule failed: open /data/tidb/prometheus_rule: no such file or directory

| username: WalterWj | Original post link

It looks like the local rules are configured in the tiup configuration file, but the corresponding path does not exist.

| username: dba远航 | Original post link

No such file or directory: /data/tidb/prometheus_rule

| username: wangccsy | Original post link

The directory does not exist. Please confirm.

| username: linnana | Original post link

The image is not visible. Please provide the text you need translated.

| username: zhanggame1 | Original post link

Send over the deployment files for a look.

| username: Kongdom | Original post link

Check whether the configuration in the configuration file is correct and whether this directory exists on the server.

| username: 江湖故人 | Original post link

It should be fine to keep only the host configuration under monitoring_servers in the topology configuration file, as shown below:

After becoming familiar with it, you can further study Prometheus rules.
Custom Monitoring Component Configuration | PingCAP Documentation Center
Prometheus Monitoring Tool - Rules Section - Zhihu (

| username: Jayjlchen | Original post link

Fix the errors where they occur; the directory hasn’t been created.

| username: zhanggame1 | Original post link

Use the simplest configuration file, just write the components and IP.

| username: 麻烦是朋友 | Original post link

Create the path in the configuration file and don’t forget to grant permissions.

| username: kelvin | Original post link

The directory does not exist, please check it.

| username: 这里介绍不了我 | Original post link

Has it been resolved? It should be a configuration file issue.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.