Failed to Modify Configuration File

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

Original topic: 修改配置文件不成功

| username: TiDBer_DVnkdzKV

[TiDB Usage Environment] Production Environment
[TiDB Version] 6.2
[Encountered Issue] Failed to modify the configuration file
[Reproduction Path] tiup cluster edit-config tidb
[Issue Phenomenon and Impact]
Starting component cluster: /home/tidb/.tiup/components/cluster/v1.10.3/tiup-cluster edit-config tidb
New topology could not be saved: Failed to parse topology file: yaml: unmarshal errors:
line 20: field proxy-protocol.networks not found in type spec.TiDBSpec
[Attachment]
tidb_servers:

  • host: 172.21.0.5
    ssh_port: 22
    port: 4000
    status_port: 10080
    deploy_dir: /tidb/deploy/tidb-4000
    log_dir: /tidb/deploy/tidb-4000/log
    config:
    mem-quota-query: 10737418240
    arch: amd64
    os: linux
    proxy-protocol.networks: 123.57.78.132

proxy-protocol.networks: 123.57.78.132 configuration is not effective

| username: Billmay表妹 | Original post link

Version 6.2 is already in the production environment? So fast~

| username: Billmay表妹 | Original post link

Take a look at this article to see if it is helpful for you.

| username: TiDBer_DVnkdzKV | Original post link

One-click upgrade completed.

| username: TiDBer_DVnkdzKV | Original post link

Okay, I’ll give it a try.

| username: wuxiangdong | Original post link

Is it misaligned, or are there not enough spaces?

| username: TiDBer_DVnkdzKV | Original post link

I’ve revised it many times, and I still don’t know how to write it.

| username: TiDBer_DVnkdzKV | Original post link

The space and the above are the same. Now, I’m not sure if this parameter should be added here.

| username: TiDBer_DVnkdzKV | Original post link

Found the cause of the problem, this configuration needs to be placed under tidb in server_configs.

| username: system | Original post link

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