Version Upgrade

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

Original topic: 版本升级

| username: 胡杨树旁

Upgrading from the original v5.0.0 version to v6.1.1 version

Steps:
tiup update --self
tiup update cluster
tiup cluster upgrade mnn-cluster v6.1.1
Error message:


| username: hey-hoho | Original post link

Failed to download files from the mirror source, possible reasons:

  1. The official tiup mirror source is unstable, try multiple times.
  2. The machine where tiup is located cannot connect to the mirror source, ping tiup-mirrors.pingcap.com to check if the network is normal.
| username: OnTheRoad | Original post link

First, use curl to test if there are any network issues.

| username: OnTheRoad | Original post link

If it doesn’t work, refer to the official TiDB Offline Upgrade document for offline upgrade.

| username: 胡杨树旁 | Original post link

According to the guidance, the network is normal after pinging. I re-downloaded the image, but the drainer failed to start after the upgrade. The error message is as follows:

| username: 胡杨树旁 | Original post link

Now there is an issue with the TiDB server.

| username: hey-hoho | Original post link

Upload the PD node logs for that time period.

| username: 胡杨树旁 | Original post link

Teacher, I restarted the problematic TiDB and printed the logs.
TiDB logs:


PD logs:

| username: 胡杨树旁 | Original post link

Moreover, only by shutting down the tidb-server at 10.0.0.52:4002 can the other components start normally.

| username: wuxiangdong | Original post link

This URL is sometimes usable and sometimes not, it’s unstable.

| username: 胡杨树旁 | Original post link

Is it this method of online upgrade?

| username: wuxiangdong | Original post link

Yes, that upgrade address.

| username: 胡杨树旁 | Original post link

It’s the address for downloading the image, right? The upgrade failed when the network was unstable. :cry:

| username: hey-hoho | Original post link

Is there a time difference between your nodes? Have you synchronized them with NTP?

| username: 胡杨树旁 | Original post link

Teacher, I haven’t done NTP synchronization. How do I perform NTP synchronization?

| username: 胡杨树旁 | Original post link

The images you provided are not accessible. Please provide the text content you need translated.

| username: 胡杨树旁 | Original post link

Teacher, both servers show normal.

| username: hey-hoho | Original post link

There is a 3-minute time difference between your two nodes, which is a big problem. :joy:
The fundamental requirement of a distributed system is that the time across all nodes must be consistent, and PD election heavily relies on time.

The official documentation explains how to configure NTP synchronization:

| username: tidb狂热爱好者 | Original post link

You can use offline upgrade. Download the 1GB file from the official website and extract it locally.

| username: 胡杨树旁 | Original post link

Offline upgrade also failed.