facebookincubator / katran

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

error running os_run_tester.sh #166

Closed rainayangg closed 2 years ago

rainayangg commented 2 years ago

Hi, I am trying to run Katran inside a container(ubuntu 20.04). The building was successful but I have met with problems when trying to run ./os_run_tester.sh and got the follow error:

+ '[' -z '' ']'
++ pwd
+ KATRAN_BUILD_DIR=/katran/_build/build
+ '[' -z '' ']'
++ pwd
+ DEPS_DIR=/katran/_build/deps
+ sudo sh -c '/katran/_build/build/katran/lib/testing/katran_tester -balancer_prog /katran/_build/deps/bpfprog/bpf/balancer_kern.o -test_from_fixtures=true '
E0706 17:13:02.177261 154597 BaseBpfAdapter.cpp:174] Can't change limit for locked memory
terminate called after throwing an instance of 'std::runtime_error'
  what():  error while setting limit for locked memory
Aborted

It seems that setrlimit(RLIMIT_MEMLOCK, &lck_mem) returns -1 in the run. After I tried to skip this first by commenting it, I get another error:

+ '[' -z '' ']'
++ pwd
+ KATRAN_BUILD_DIR=/katran/_build/build
+ '[' -z '' ']'
++ pwd
+ DEPS_DIR=/katran/_build/deps
+ sudo sh -c '/katran/_build/build/katran/lib/testing/katran_tester -balancer_prog /katran/_build/deps/bpfprog/bpf/balancer_kern.o -test_from_fixtures=true '
libbpf: elf: skipping unrecognized data section(17) .eh_frame
libbpf: elf: skipping relo section(18) .rel.eh_frame for section(17) .eh_frame
libbpf: elf: skipping unrecognized data section(17) .eh_frame
libbpf: elf: skipping relo section(18) .rel.eh_frame for section(17) .eh_frame
terminate called after throwing an instance of 'std::runtime_error'
  what():  can't create prototype map for test lru
Aborted

wondering by any chance you could provide some help/insights? Thanks!

lima1756 commented 2 years ago

Hi! I tried to run it in my VM using the latest commit and it runs correctly, could you share more details about the container you're using?

rainayangg commented 2 years ago

Hey! Thanks a lot for the quick reply. I am running the standard ubuntu image (version 20.04) while the host OS is ubuntu 18.04(perhaps it is where the issue comes from?). I was at this commit but also tried the latest one(which is of today) but still get the same error.

lima1756 commented 2 years ago

Is the container a virtual machine, or docker, or what are you using? What are the system properties of this container?

lima1756 commented 2 years ago

Closing this issue as no follow up was received, if you have new errors please open a new issue