Error When Downloading TiDB 3.0

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

Original topic: tidb3.0下载时报错

| username: TiDB-leaning

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).
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, “dest”: “/home/tidb/tidb-ansible/downloads/tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”, “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”: “Request failed: ”, “state”: “absent”, “url”: “https://github.com/pingcap/tispark/releases/download/v2.1.2/tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”}
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 @/home/tidb/tidb-ansible/retry_files/local_prepare.retry

PLAY RECAP *************************************************************************************************************************************************
localhost : ok=16 changed=8 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”: true, “checksum_dest”: null, “checksum_src”: “217898692aff2c52b2b7c58bf5c2be79493d991a”, “dest”: “/home/tidb/tidb-ansible/downloads/spark-2.3.2-bin-hadoop2.7.tgz”, “failed”: false, “gid”: 1000, “group”: “tidb”, “invocation”: {“module_args”: {“attributes”: null, “backup”: null, “checksum”: “sha256:6246b20d95c7596a29fb26d5b50a3ae3163a35915bec6c515a8e183383bedc43”, “client_cert”: null, “client_key”: null, “content”: null, “delimiter”: null, “dest”: “/home/tidb/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”: “/home/tidb/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”: “0664”, “msg”: “OK (225875602 bytes)”, “owner”: “tidb”, “size”: 225875602, “src”: “/tmp/tmprnHdPf”, “state”: “file”, “status_code”: 200, “uid”: 1000, “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, “dest”: “/home/tidb/tidb-ansible/downloads/tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”, “failed”: true, “invocation”: {“module_args”: {“attributes”: null, “backup”: null, “checksum”: “”, “client_cert”: null, “client_key”: null, “content”: null, “delimiter”: null, “dest”: “/home/tidb/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”: “Request failed: ”, “state”: “absent”, “url”: “https://github.com/pingcap/tispark/releases/download/v2.1.2/tispark-core-2.1.2-spark_2.3-jar-with-dependencies.jar”}, {“_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”: “/home/tidb/tidb-ansible/downloads/tispark-sample-data.tar.gz”, “failed”: false, “gid”: 1000, “group”: “tidb”, “invocation”: {“module_args”: {“attributes”: null, “backup”: null, “checksum”: “”, “client_cert”: null, “client_key”: null, “content”: null, “delimiter”: null, “dest”: “/home/tidb/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”: “/home/tidb/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”: “0664”, “msg”: “OK (2937369 bytes)”, “owner”: “tidb”, “size”: 2937369, “src”: “/tmp/tmpeiv_oS”, “state”: “file”, “status_code”: 200, “uid”: 1000, “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 Issues · pingcap/tidb-ansible · GitHub. We’ll try our best to help you deploy a TiDB cluster. Thanks. :slight_smile:

| username: xfworld | Original post link

Please fill in and supplement the detailed information according to the format provided when posting.

| username: Kongdom | Original post link

Try to upgrade to a higher version as much as possible. Most people no longer use the lower versions. Many issues cannot be reproduced without the same version, which will affect your efficiency in solving problems. Additionally, many issues in the lower versions have already been resolved in the higher versions. So, the answer to many of your queries might simply be: it’s a bug, and upgrading to a higher version will solve the problem.

| username: ljluestc | Original post link

During the execution of local_prepare.yml using Ansible, the “download TiSpark packages” task failed. The error message indicates that multiple attempts to download the package failed, and the playbook ultimately failed due to one task failure.

The error message suggests using the “–limit” option and the path to the “retry_files/local_prepare.retry” file to retry the failed task. Therefore, if the specified path does not exist, it needs to be created first. Ensure that the required dependencies are correctly installed and configured before running the playbook.