Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xdp-balancer not found #76

Closed
slabastrou opened this issue Feb 12, 2020 · 3 comments
Closed

xdp-balancer not found #76

slabastrou opened this issue Feb 12, 2020 · 3 comments

Comments

@slabastrou
Copy link

root@katran-big:/home/syla/katran# ./os_run_tester.sh

  • '[' -z '' ']'
    ++ pwd
  • KATRAN_BUILD_DIR=/home/syla/katran/_build/build
  • '[' -z '' ']'
    ++ pwd
  • DEPS_DIR=/home/syla/katran/_build/deps
  • sudo sh -c '/home/syla/katran/_build/build/katran/lib/testing/katran_tester -balancer_prog /home/syla/katran/_build/deps/bpfprog/bpf/balancer_kern.o -test_from_fixtures=true '
    libbpf: Error loading ELF section .BTF: -22.
    E0212 21:58:01.396488 1322 BpfLoader.cpp:97] Can't find prog with name: xdp-balancer
    terminate called after throwing an instance of 'std::invalid_argument'
    what(): can't get fd for prog: xdp-balancer, error: Invalid argument
    Aborted (core dumped)
@udippant
Copy link
Contributor

Did the script to build (https://github.com/facebookincubator/katran/blob/master/build_katran.sh) run successfully including the build_bpf_modules_opensource .sh https://github.com/facebookincubator/katran/blob/master/build_katran.sh#L460 ?

@slabastrou
Copy link
Author

I am deploying an a fresh Ubuntu 18.04 Server VM (with latest upgrades) and I am able to fully compile (build_kratran and build_bpf) without errors. I can confirm that If I don't execute build_bpf, it fails. We also saw some occurence where restarting katran will fail until I execute build_bpf_... again.

So. looks like build_bpf must be executed manually before execution.

@slabastrou
Copy link
Author

I tried in a different instance and even after executing build_bpf, it still fails. Looks like something somehow random.

facebook-github-bot pushed a commit that referenced this issue Mar 14, 2022
Summary:
X-link: facebookincubator/fizz#76

X-link: facebook/proxygen#402

X-link: facebook/folly#1735

X-link: facebookarchive/bistro#60

X-link: facebook/watchman#1012

X-link: facebook/fbthrift#487

X-link: facebook/fboss#114

X-link: facebook/fb303#27

When using getdeps inside of a container, Python's urllib isn't able to download from dewey lfs (see this post for details https://fb.workplace.com/groups/systemd.and.friends/permalink/2747692278870647/).

This allows for getdeps to use `libcurl` to fetch dependencies, which allows for a getdeps build to work inside the container environment.

Reviewed By: mackorone

Differential Revision: D34696330

fbshipit-source-id: 06cae87eef40dfa3cecacacee49234b6737d546f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants