Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 重启服务器后TIDB启动失败
[TiDB Usage Environment] Test
[TiDB Version]
[Reproduction Path]
- ansible-playbook stop.yml works normally
- Shut down the server
- ansible-playbook start.yml reports an error
FAILED - RETRYING: wait for region replication complete (20 retries left). - ansible-playbook unsafe_cleanup.yml
- ansible-playbook deploy.yml
FAILED! => {“msg”: “The task includes an option with an undefined variable.
The error was: list object has no element 0\n\nThe error appears to
be in ‘/home/tidb/tidb-ansible/roles/tidb_lightning/tasks/main.yml’:
line 10, column 3, but may\nbe elsewhere in the file depending on
the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name:
generate tidb-lightning dynamic config\n ^ here\n”}
[Encountered Issues: Issue Phenomenon and Impact]
It worked normally before shutting down
After restarting, it reports an error as described above
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]