转载请注明转载自:忆雨林枫

TiDB部署排错1:NTP少配置了一台服务器

部署方式:ansible

在执行ansible-playbook bootstrap.yml的时候,报错

TASK [check_config_dynamic : Preflight check – fail when NTP service is not running or ntpstat is not synchronised to NTP server] *****************************************************
fatal: [172.16.11.225]: FAILED! => {“changed”: false, “cmd”: “ntpstat | grep -w synchronised | wc -l”, “delta”: “0:00:00.078195”, “end”: “2018-02-06 07:02:32.022684”, “failed_when_result”: true, “rc”: 0, “start”: “2018-02-06 07:02:31.944489”, “stderr”: “Unable to talk to NTP daemon. Is it running?”, “stderr_lines”: [“Unable to talk to NTP daemon. Is it running?”], “stdout”: “0”, “stdout_lines”: [“0”]}
Ask for help:
Contact us: sre@pingcap.com
It seems that you encounter some problems. You can send an email to the above email address, attached with the tidb-ansible/inventory.ini and tidb-ansible/log/ansible.log files and the error message, or new issue on https://github.com/pingcap/tidb-ansible/issues. We’ll try our best to help you deploy a TiDB cluster. Thanks. 🙂
fatal: [172.16.11.224]: FAILED! => {“changed”: false, “cmd”: “ntpstat | grep -w synchronised | wc -l”, “delta”: “0:00:00.076670”, “end”: “2018-02-06 07:02:32.088327”, “failed_when_result”: true, “rc”: 0, “start”: “2018-02-06 07:02:32.011657”, “stderr”: “Unable to talk to NTP daemon. Is it running?”, “stderr_lines”: [“Unable to talk to NTP daemon. Is it running?”], “stdout”: “0”, “stdout_lines”: [“0”]}

 

原因:有一台服务器的时间没有同步,跟其他的不一样。

重新ntpdate同步之后,就可以了