facebookincubator / katran

A high performance layer 4 load balancer
GNU General Public License v2.0
4.75k stars 504 forks source link

Build error #213

Closed 7anya closed 10 months ago

7anya commented 10 months ago

Hi,

I am trying to build katran using python python3 ./build/fbcode_builder/getdeps.py --allow-system-packages build katran


Traceback (most recent call last):
  File "/home/tanya/workspace/katran/./build/fbcode_builder/getdeps.py", line 1376, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/tanya/workspace/katran/./build/fbcode_builder/getdeps.py", line 1359, in main
    return args.func(args)
           ^^^^^^^^^^^^^^^
  File "/home/tanya/workspace/katran/./build/fbcode_builder/getdeps.py", line 108, in run
    self.run_project_cmd(args, loader, manifest)
  File "/home/tanya/workspace/katran/./build/fbcode_builder/getdeps.py", line 589, in run_project_cmd
    reconfigure, sources_changed = self.compute_source_change_status(
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tanya/workspace/katran/./build/fbcode_builder/getdeps.py", line 736, in compute_source_change_status
    change_status = fetcher.update()
                    ^^^^^^^^^^^^^^^^
  File "/home/tanya/workspace/katran/build/fbcode_builder/getdeps/fetcher.py", line 809, in update
    self._download()
  File "/home/tanya/workspace/katran/build/fbcode_builder/getdeps/fetcher.py", line 773, in _download
    self._verify_hash()
  File "/home/tanya/workspace/katran/build/fbcode_builder/getdeps/fetcher.py", line 759, in _verify_hash
    raise Exception(
Exception: https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.gz: expected sha256 c0685b68dd44cc46574cce86c4e17c0f611b15e195be9848dfd0769a0a207628 but got 5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff

How do i fix this issue?

lima1756 commented 10 months ago

Hi! Thanks for raising this issue, I looked into this and also our Github Action was failing because of the same issue. The problem was that the hash from the package differed from the expected. Locally downloaded the package to check its hash:

> sha256sum boost_1_83_0.tar.gz
c0685b68dd44cc46574cce86c4e17c0f611b15e195be9848dfd0769a0a207628  boost_1_83_0.tar.gz

And seems to be the correct one. I rerun the github action and seems to be working now, so probably was an issue with the download. Please try again and if anything else comes up feel free to open another issue.