Incorrect Version Display

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

Original topic: 版本显示不对

| username: 等一分钟

I used tiup to upgrade the cluster from 5.2.3 to 6.5.1, and the node versions have all been successfully upgraded, but the version displayed by tiup cluster display is still 5.3.2.

| username: 等一分钟 | Original post link

tiup cluster display tidb-ali-p
tiup is checking updates for component cluster …
Starting component cluster: /home/tidb/.tiup/components/cluster/v1.12.1/tiup-cluster display tidb-ali-p
Cluster type: tidb
Cluster name: tidb-ali-p
Cluster version: v5.2.3
Deploy user: tidb
SSH type: builtin

| username: 等一分钟 | Original post link

| username: tidb菜鸟一只 | Original post link

Use tiup cluster audit to find the ID of the command you used during the upgrade.
tiup cluster audit g6jvxwSxL3P
Check the upgrade logs to see if the upgrade was completed.

| username: 等一分钟 | Original post link

There was an error during the upgrade, and later it was started directly using the start command.

| username: 等一分钟 | Original post link

The image is not available for translation. Please provide the text content directly for translation.

| username: 等一分钟 | Original post link

Now the node versions have all been upgraded, but the version displayed by tiup is incorrect. How can I fix this?

| username: Kongdom | Original post link

There was an error during the upgrade, so it probably wasn’t successful, right?

| username: 等一分钟 | Original post link

All nodes succeeded.

| username: Kongdom | Original post link

Oh, you are upgrading from 5.2 to 6, right? Then you must have encountered the TiFlash issue. You need to upgrade offline.

| username: Kongdom | Original post link

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

| username: 等一分钟 | Original post link

If there are TiFlash nodes, do you only need to take the TiFlash nodes offline, or do you need to take the entire cluster offline for the upgrade?

| username: 等一分钟 | Original post link

The version display is incorrect, but it does not affect normal use, right?

| username: 等一分钟 | Original post link

  1. Is there a way to display it normally now?

  2. Does it affect normal use now?

| username: Kongdom | Original post link

It is recommended to fix it, as I believe it will affect subsequent operations and maintenance.

You can refer to the following steps:

4.1 Error Interruption During Upgrade, How to Continue After Handling the Error

Re-execute the tiup cluster upgrade command to continue the upgrade. The upgrade operation will restart the nodes that have already been upgraded. If you do not want to restart the nodes that have already been upgraded, you can use the replay subcommand to retry the operation. The specific method is as follows:

  1. Use the tiup cluster audit command to view the operation records:
tiup cluster audit

Find the failed upgrade operation record and note the ID of that operation record. In the next step, <audit-id> will represent the value of the operation record ID.
2. Use the tiup cluster replay <audit-id> command to retry the corresponding operation:

tiup cluster replay <audit-id>
| username: xingzhenxiang | Original post link

The upgrade was not successful. You can try executing the upgrade again or replaying it.

| username: 等一分钟 | Original post link

You need to stop and then start for upgrade or replay, right?

| username: 等一分钟 | Original post link

Can I directly modify this file? .tiup/storage/cluster/clusters/{cluster-name}/meta.yaml

| username: xingzhenxiang | Original post link

Kongd Try this method:

tiup cluster audit
tiup cluster replay

| username: 等一分钟 | Original post link

So it’s about upgrading to the same version again, right?