TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

🐛 [Bug] Encountered 403 error when building using tarball installations

Open amishra791 opened this issue 3 years ago • 4 comments

Bug Description

I get 403 error when trying to build libtorchtrt.

To Reproduce

I followed the steps to compile torch-tensorrt outlined here.

Steps to reproduce the behavior:

  1. installed bazel
  2. downloaded the respective tarball files for cuDNN and TensorRT and placed them in third_party/dist_dir/x86_64-linux-gnu
  3. Ran bazel build //:libtorchtrt --compilation_mode opt --distdir third_party/dist_dir/x86_64-linux-gnu

Error Message

bazel build //:libtorchtrt --compilation_mode opt --distdir third_party/dist_dir/x86_64-linux-gnu
INFO: Repository tensorrt instantiated at:
  /home/adityamishrav5/Desktop/TensorRT/WORKSPACE:86:13: in <toplevel>
Repository rule http_archive defined at:
  /home/adityamishrav5/.cache/bazel/_bazel_adityamishrav5/be0aa62dd71175ab21b13b7bc84651fb/external/bazel_tools/tools/build_defs/repo/http.bzl:353:31: in <toplevel>
WARNING: Download from https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.4.3/tars/tensorrt-8.4.3.1.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz failed: class java.io.IOException GET returned 403 Forbidden
ERROR: An error occurred during the fetch of repository 'tensorrt':
   Traceback (most recent call last):
File "/home/adityamishrav5/.cache/bazel/_bazel_adityamishrav5/be0aa62dd71175ab21b13b7bc84651fb/external/bazel_tools/tools/build_defs/repo/http.bzl", line 100, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.4.3/tars/tensorrt-8.4.3.1.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz] to /home/adityamishrav5/.cache/bazel/_bazel_adityamishrav5/be0aa62dd71175ab21b13b7bc84651fb/external/tensorrt/temp8915369486072883600/tensorrt-8.4.3.1.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz: GET returned 403 Forbidden
ERROR: /home/adityamishrav5/Desktop/TensorRT/WORKSPACE:86:13: fetching http_archive rule //external:tensorrt: Traceback (most recent call last):
File "/home/adityamishrav5/.cache/bazel/_bazel_adityamishrav5/be0aa62dd71175ab21b13b7bc84651fb/external/bazel_tools/tools/build_defs/repo/http.bzl", line 100, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.4.3/tars/tensorrt-8.4.3.1.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz] to /home/adityamishrav5/.cache/bazel/_bazel_adityamishrav5/be0aa62dd71175ab21b13b7bc84651fb/external/tensorrt/temp8915369486072883600/tensorrt-8.4.3.1.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz: GET returned 403 Forbidden
INFO: Repository libtorch instantiated at:
  /home/adityamishrav5/Desktop/TensorRT/WORKSPACE:56:13: in <toplevel>
Repository rule http_archive defined at:
  /home/adityamishrav5/.cache/bazel/_bazel_adityamishrav5/be0aa62dd71175ab21b13b7bc84651fb/external/bazel_tools/tools/build_defs/repo/http.bzl:353:31: in <toplevel>
ERROR: /home/adityamishrav5/Desktop/TensorRT/core/ir/BUILD:13:11: //core/ir:ir depends on @tensorrt//:nvinfer in repository @tensorrt which failed to fetch. no such package '@tensorrt//': java.io.IOException: Error downloading [https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.4.3/tars/tensorrt-8.4.3.1.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz] to /home/adityamishrav5/.cache/bazel/_bazel_adityamishrav5/be0aa62dd71175ab21b13b7bc84651fb/external/tensorrt/temp8915369486072883600/tensorrt-8.4.3.1.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz: GET returned 403 Forbidden
ERROR: Analysis of target '//:libtorchtrt' failed; build aborted:
INFO: Elapsed time: 18.206s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
    Fetching https://download.pytorch.org/libtorch/cu116/libtorch-cxx11-abi-shared-with-deps-1.12.1%2Bcu116.zip; 442,939,677B 17s

Expected behavior

Expected the build command to be able to run without error.

Environment

Build information about Torch-TensorRT can be found by turning on debug messages

  • TensorRT Version (e.g. 1.0.0): 8.4.3-1+cuda11.6
  • PyTorch Version (e.g. 1.0): 1.12.1+cu116
  • CPU Architecture: x86_64
  • OS (e.g., Linux): Ubuntu 18.04
  • How you installed PyTorch (conda, pip, libtorch, source): pip
  • Build command you used (if compiling from source): bazel build //:libtorchtrt --compilation_mode opt --distdir third_party/dist_dir/x86_64-linux-gnu
  • Python version: 3.9.12
  • CUDA version: 11.6
  • GPU models and configuration: One Quadro RTX 6000 GPU

amishra791 avatar Aug 29 '22 21:08 amishra791

Download the tarballs and place them in the distdir then try running the command.

narendasan avatar Aug 30 '22 18:08 narendasan

Download the tarballs and place them in the distdir then try running the command.

As I mentioned in Step 2 of the To Reproduce section, I indeed did that before running the command.

amishra791 avatar Aug 30 '22 23:08 amishra791

Did you change the rule in WORKSPACE file to use the distdir?

Please refer to the README

andi4191 avatar Sep 06 '22 17:09 andi4191

Did you change the rule in WORKSPACE file to use the distdir?

Please refer to the README

No, since I assumed that was only in the case where I already installed TensorRT and cuDNN locally.

amishra791 avatar Sep 06 '22 17:09 amishra791

This issue has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days

github-actions[bot] avatar Dec 06 '22 00:12 github-actions[bot]

This issue has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days

github-actions[bot] avatar Mar 14 '23 00:03 github-actions[bot]