Tiup cluster prune xxx is not working and reported an error

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

Original topic: tiup cluster prune xxx 没用报错了

| username: 点点-求助来了

[TiDB Usage Environment] Production Environment
[TiDB Version]
[Reproduction Path] After scaling down, tiup cluster prune xxx
[Encountered Problem: Phenomenon and Impact] Error occurred
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]




| username: 朵拉大虾 | Original post link

Check the tiup cluster prune -h command.

| username: Billmay表妹 | Original post link

Check if it’s a permissions issue:

| username: caiyfc | Original post link

Check the operating system logs on 37 to see if there are any errors.

| username: TiDBer_pkQ5q1l0 | Original post link

Check if the TiKV user and exporter user of the tombstone node are consistent with the user you use for remote execution with TiUP.

| username: 点点-求助来了 | Original post link

Keep refreshing

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

SELinux is blocking it, it is recommended to disable SELinux.

| username: 点点-求助来了 | Original post link

setenforce 0 and what else

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

Run getenforce first to see if it is Disabled.

| username: 点点-求助来了 | Original post link

It’s useless, but magically, restarting the computer fixed it.

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

Modifying SELinux requires a reboot of the host.