The upgrade process failed when restarting tidb instance because of the error "mkdir /data1: permission denied" in the message log.
step3:
Execute 'mkdir /data1 & chown tidb:tidb /data1', then replay the upgrade process:
/home/tidb/.tiup/components/cluster/v1.12.3/tiup-cluster replay gcpHVb4kGTC
What did you expect to see?
The upgrade process should be successful.
What did you see instead?
The upgrade process failed with the error "failed to stop: tidb-node node_exporter-9677.service, please check the instance's log() for more detail.: timed out waiting for port 9677 to be stopped after 2m0s"
The tiup debug and message logs showed that the above node exporter service had stopped, but tiup was still using the checkpoint of upgrade to check service port.
message log:
Aug 28 18:11:47 systemd: Stopping node_exporter service...
Aug 28 18:11:47 systemd: Stopped node_exporter service.
Bug Report
Please answer these questions before submitting your issue. Thanks!
step1: /home/tidb/.tiup/components/cluster/v1.12.3/tiup-cluster deploy test2743 v5.3.0 test.yaml
test.yaml includes the following config, but the directory /data1 doesn't exist.
step2: /home/tidb/.tiup/components/cluster/v1.12.3/tiup-cluster start test2743 --init /home/tidb/.tiup/components/cluster/v1.12.3/tiup-cluster upgrade test2743 v6.5.3
The upgrade process failed when restarting tidb instance because of the error "mkdir /data1: permission denied" in the message log.
step3: Execute 'mkdir /data1 & chown tidb:tidb /data1', then replay the upgrade process: /home/tidb/.tiup/components/cluster/v1.12.3/tiup-cluster replay gcpHVb4kGTC
The upgrade process should be successful.
The upgrade process failed with the error "failed to stop: tidb-node node_exporter-9677.service, please check the instance's log() for more detail.: timed out waiting for port 9677 to be stopped after 2m0s"
The tiup debug and message logs showed that the above node exporter service had stopped, but tiup was still using the checkpoint of upgrade to check service port.
message log:
tiup debug log:
tiup --version
)? v1.12.3