FAILED - RETRYING: download TiSpark packages

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:v3.0.2
  • 【问题描述】:离线 TiDB Ansible 部署方案 执行: cd tidb-ansible ansible-playbook local_prepare.yml 报错如下: TASK [local : download TiSpark packages] *************************************************************************************************************** ok: [localhost] => (item={u’url’: u’http://download.pingcap.org/spark-2.3.2-bin-hadoop2.7.tgz’, u’checksum’: u’sha256:6246b20d95c7596a29fb26d5b50a3ae3163a35915bec6c515a8e183383bedc43’, u’version’: u’2.3.2’, u’name’: u’spark-2.3.2-bin-hadoop2.7.tgz’}) FAILED - RETRYING: download TiSpark packages (4 retries left).

FAILED - RETRYING: download TiSpark packages (3 retries left). FAILED - RETRYING: download TiSpark packages (2 retries left).

FAILED - RETRYING: download TiSpark packages (1 retries left).

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: SSLError: (‘The read operation timed out’,) failed: [localhost] (item={u’url’: u’https://github.com/pingcap/tispark/releases/download/v2.1.2/tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar’, u’version’: u’2.1.2’, u’name’: u’tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar’}) => {“attempts”: 4, “changed”: false, “item”: {“name”: “tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”, “url”: “https://github.com/pingcap/tispark/releases/download/v2.1.2/tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”, “version”: “2.1.2”}, “msg”: “failed to create temporary content file: (‘The read operation timed out’,)”} changed: [localhost] => (item={u’url’: u’http://download.pingcap.org/tispark-sample-data.tar.gz’, u’version’: u’latest’, u’name’: u’tispark-sample-data.tar.gz’}) to retry, use: --limit @/pkg/tidb-ansible/retry_files/local_prepare.retry

PLAY RECAP ********************************************************************************************************************************************* localhost : ok=16 changed=0 unreachable=0 failed=1

ERROR MESSAGE SUMMARY ********************************************************************************************************************************** [localhost]: Ansible FAILED! => playbook: local_prepare.yml; TASK: local : download TiSpark packages; message: {“changed”: true, “msg”: “All items completed”, “results”: [{"_ansible_ignore_errors": null, “_ansible_item_result”: true, “_ansible_no_log”: false, “_ansible_parsed”: true, “attempts”: 1, “changed”: false, “checksum_dest”: “217898692aff2c52b2b7c58bf5c2be79493d991a”, “checksum_src”: “217898692aff2c52b2b7c58bf5c2be79493d991a”, “dest”: “/pkg/tidb-ansible/downloads/spark-2.3.2-bin-hadoop2.7.tgz”, “failed”: false, “gid”: 0, “group”: “root”, “invocation”: {“module_args”: {“attributes”: null, “backup”: null, “checksum”: “sha256:6246b20d95c7596a29fb26d5b50a3ae3163a35915bec6c515a8e183383bedc43”, “client_cert”: null, “client_key”: null, “content”: null, “delimiter”: null, “dest”: “/pkg/tidb-ansible/downloads/spark-2.3.2-bin-hadoop2.7.tgz”, “directory_mode”: null, “follow”: false, “force”: true, “force_basic_auth”: false, “group”: null, “headers”: null, “http_agent”: “ansible-httpget”, “mode”: null, “owner”: null, “path”: “/pkg/tidb-ansible/downloads/spark-2.3.2-bin-hadoop2.7.tgz”, “regexp”: null, “remote_src”: null, “selevel”: null, “serole”: null, “setype”: null, “seuser”: null, “sha256sum”: “”, “src”: null, “timeout”: 10, “tmp_dest”: null, “unsafe_writes”: null, “url”: “http://download.pingcap.org/spark-2.3.2-bin-hadoop2.7.tgz”, “url_password”: null, “url_username”: null, “use_proxy”: true, “validate_certs”: false}}, “item”: {“checksum”: “sha256:6246b20d95c7596a29fb26d5b50a3ae3163a35915bec6c515a8e183383bedc43”, “name”: “spark-2.3.2-bin-hadoop2.7.tgz”, “url”: “http://download.pingcap.org/spark-2.3.2-bin-hadoop2.7.tgz”, “version”: “2.3.2”}, “md5sum”: “01b3e6aef0ef574e066d15e035b9b2dd”, “mode”: “0644”, “msg”: “OK (225875602 bytes)”, “owner”: “root”, “size”: 225875602, “src”: “/tmp/tmptlWWQP”, “state”: “file”, “status_code”: 200, “uid”: 0, “url”: “http://download.pingcap.org/spark-2.3.2-bin-hadoop2.7.tgz”}, {"_ansible_item_result": true, “_ansible_no_log”: false, “_ansible_parsed”: true, “attempts”: 4, “changed”: false, “exception”: “Traceback (most recent call last):\n File “/tmp/ansible_5GL3TC/ansible_module_get_url.py”, line 349, in url_get\n shutil.copyfileobj(rsp, f)\n File “/usr/lib64/python2.7/shutil.py”, line 49, in copyfileobj\n buf = fsrc.read(length)\n File “/usr/lib64/python2.7/socket.py”, line 380, in read\n data = self._sock.recv(left)\n File “/usr/lib64/python2.7/httplib.py”, line 573, in read\n s = self.fp.read(amt)\n File “/usr/lib64/python2.7/socket.py”, line 380, in read\n data = self._sock.recv(left)\n File “/usr/lib64/python2.7/ssl.py”, line 736, in recv\n return self.read(buflen)\n File “/usr/lib64/python2.7/ssl.py”, line 630, in read\n v = self._sslobj.read(len or 1024)\nSSLError: (‘The read operation timed out’,)\n”, “failed”: true, “invocation”: {“module_args”: {“attributes”: null, “backup”: null, “checksum”: “”, “client_cert”: null, “client_key”: null, “content”: null, “delimiter”: null, “dest”: “/pkg/tidb-ansible/downloads/tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”, “directory_mode”: null, “follow”: false, “force”: true, “force_basic_auth”: false, “group”: null, “headers”: null, “http_agent”: “ansible-httpget”, “mode”: null, “owner”: null, “regexp”: null, “remote_src”: null, “selevel”: null, “serole”: null, “setype”: null, “seuser”: null, “sha256sum”: “”, “src”: null, “timeout”: 10, “tmp_dest”: null, “unsafe_writes”: null, “url”: “https://github.com/pingcap/tispark/releases/download/v2.1.2/tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”, “url_password”: null, “url_username”: null, “use_proxy”: true, “validate_certs”: false}}, “item”: {“name”: “tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”, “url”: “https://github.com/pingcap/tispark/releases/download/v2.1.2/tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”, “version”: “2.1.2”}, “msg”: “failed to create temporary content file: (‘The read operation timed out’,)”}, {"_ansible_ignore_errors": null, “_ansible_item_result”: true, “_ansible_no_log”: false, “_ansible_parsed”: true, “attempts”: 1, “changed”: true, “checksum_dest”: null, “checksum_src”: “174ca85a8424f778ce32098c5a5acccfac9681e6”, “dest”: “/pkg/tidb-ansible/downloads/tispark-sample-data.tar.gz”, “failed”: false, “gid”: 0, “group”: “root”, “invocation”: {“module_args”: {“attributes”: null, “backup”: null, “checksum”: “”, “client_cert”: null, “client_key”: null, “content”: null, “delimiter”: null, “dest”: “/pkg/tidb-ansible/downloads/tispark-sample-data.tar.gz”, “directory_mode”: null, “follow”: false, “force”: true, “force_basic_auth”: false, “group”: null, “headers”: null, “http_agent”: “ansible-httpget”, “mode”: null, “owner”: null, “path”: “/pkg/tidb-ansible/downloads/tispark-sample-data.tar.gz”, “regexp”: null, “remote_src”: null, “selevel”: null, “serole”: null, “setype”: null, “seuser”: null, “sha256sum”: “”, “src”: null, “timeout”: 10, “tmp_dest”: null, “unsafe_writes”: null, “url”: “http://download.pingcap.org/tispark-sample-data.tar.gz”, “url_password”: null, “url_username”: null, “use_proxy”: true, “validate_certs”: false}}, “item”: {“name”: “tispark-sample-data.tar.gz”, “url”: “http://download.pingcap.org/tispark-sample-data.tar.gz”, “version”: “latest”}, “md5sum”: “ce247b4bbb82a770098f2c6ecd9dc937”, “mode”: “0644”, “msg”: “OK (2937369 bytes)”, “owner”: “root”, “size”: 2937369, “src”: “/tmp/tmpI0ho_5”, “state”: “file”, “status_code”: 200, “uid”: 0, “url”: “http://download.pingcap.org/tispark-sample-data.tar.gz”}]}

Ask for help: Contact us: support@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. :slight_smile:

您好: 请问当前是希望使用ansible安装tispark吗?

我现在还不需要tispark,只是在执行ansible-playbook local_prepare.yml的时候,自己在检测吧, 这个playbook的主要任务是下载安装包然后放到合适的位置,应该是downloads目录和resource目录下,我的resource/bin 目录下什么都没有

这里是一些binary的文件,参考安装文档,联机下载,再copy

我的下载机目前是联机的状态,我打算联机下载,再copy ,但是却报了 FAILED - RETRYING: download TiSpark packages,我想问一下,1:downloads目录下的文件我可以一个一个单独下载上传,但是resource/bin下的文件,官网有地址可以下载吗?2:如果可以下载,是否和执行ansible-playbook local_prepare.yml的效果是一样的

一样的,ansible调用的也是这些地址,试一下这些是否满足要求 https://github.com/pingcap/tidb-ansible/blob/v3.0.2/roles/local/templates/binary_packages.yml.j2

您好,使用ansible方式安装tidb,进行到如下环节后卡住:

TASK [local : download TiSpark packages] **********************************************************************************************************************************

ok: [localhost] => (item={u’url’: u’http://download.pingcap.org/spark-2.3.2-bin-hadoop2.7.tgz’, u’checksum’: u’sha256:6246b20d95c7596a29fb26d5b50a3ae3163a35915bec6c515a8e183383bedc43’, u’version’: u’2.3.2’, u’name’: u’spark-2.3.2-bin-hadoop2.7.tgz’})

请问: (1)如何查看“ansible-playbook local_prepare.yml”命令执行时对应的日志 (2)根据所给网址找到对应的包,重试了几次,最后通过浏览器下载成功了,但用ansbile方式安装时怎么能跳过此环节呢? 或者能否手工下载该文件后能否继续执行?