Rezwan Ahmed Sami
11/01/2024, 3:10 PMrezwan@rezwan:~/devwork/typesense$ bazel build //:typesense-server
INFO: Repository onnx_runtime instantiated at:
/home/rezwan/devwork/typesense/WORKSPACE:45:19: in <toplevel>
Repository rule git_repository defined at:
/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git.bzl:181:33: in <toplevel>
ERROR: An error occurred during the fetch of repository 'onnx_runtime':
Traceback (most recent call last):
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git.bzl", line 175, column 35, in _git_repository_implementation
update = _clone_or_update_repo(ctx)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, column 20, in _clone_or_update_repo
git_ = git_repo(ctx, directory)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, column 12, in git_repo
_update(ctx, git_repo)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 109, column 10, in _update
fetch(ctx, git_repo)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 152, column 15, in fetch
_error(ctx.name, ["git"] + args, st.stderr)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 200, column 9, in _error
fail("error running '%s' while working with @%s:\n%s" % (command_text, name, stderr))
Error in fail: error running 'git fetch origin rel-1.14.1:origin/rel-1.14.1' while working with @onnx_runtime:
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 7247 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
ERROR: /home/rezwan/devwork/typesense/WORKSPACE:45:19: fetching git_repository rule //external:onnx_runtime: Traceback (most recent call last):
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git.bzl", line 175, column 35, in _git_repository_implementation
update = _clone_or_update_repo(ctx)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, column 20, in _clone_or_update_repo
git_ = git_repo(ctx, directory)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, column 12, in git_repo
_update(ctx, git_repo)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 109, column 10, in _update
fetch(ctx, git_repo)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 152, column 15, in fetch
_error(ctx.name, ["git"] + args, st.stderr)
File "/home/rezwan/.cache/bazel/_bazel_rezwan/951e56dfb4ebf62991aca4c3fc791ac8/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 200, column 9, in _error
fail("error running '%s' while working with @%s:\n%s" % (command_text, name, stderr))
Error in fail: error running 'git fetch origin rel-1.14.1:origin/rel-1.14.1' while working with @onnx_runtime:
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 7247 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
ERROR: /home/rezwan/devwork/typesense/BUILD:34:11: //:common_deps depends on @onnx_runtime//:onnxruntime_lib in repository @onnx_runtime which failed to fetch. no such package '@onnx_runtime//': error running 'git fetch origin rel-1.14.1:origin/rel-1.14.1' while working with @onnx_runtime:
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 7247 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
ERROR: Analysis of target '//:typesense-server' failed; build aborted:
INFO: Elapsed time: 163.597s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
Whats the solution of this?
i am using latest kalilinux, bazel version is: 6.2.0