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

LoxiLB cannot start on Docker Desktop for Mac #690

Closed
tqn-org opened this issue Jun 4, 2024 · 6 comments
Closed

LoxiLB cannot start on Docker Desktop for Mac #690

tqn-org opened this issue Jun 4, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@tqn-org
Copy link

tqn-org commented Jun 4, 2024

Describe the bug
LoxiLB cannot start on Docker Desktop for Mac, with the below logs. Later exited with code 40:

2024-06-04 18:15:21 loxilb start
2024-06-04 18:15:23 INFO: xdp_link_detach() no curr XDP prog on ifindex:11
2024-06-04 18:15:23 11:15:23 DEBUG loxilb_libdp.c:3033: exec: ntc filter del dev llb0 ingress 2>&1 > /dev/null
2024-06-04 18:15:23 RTNETLINK answers: Invalid argument
2024-06-04 18:15:23 We have an error talking to the kernel
2024-06-04 18:15:23 11:15:23 DEBUG loxilb_libdp.c:3094: /opt/loxilb/llb_xdp_main.o: nr 0 psection xdp_packet_hook
2024-06-04 18:15:23 libbpf: loading /opt/loxilb/llb_xdp_main.o
2024-06-04 18:15:23 libbpf: elf: section(3) xdp_packet_hook, size 13680, link 0, flags 6, type=1
2024-06-04 18:15:23 libbpf: sec 'xdp_packet_hook': found program 'xdp_packet_func' at insn offset 0 (0 bytes), code size 1710 insns (13680 bytes)
2024-06-04 18:15:23 libbpf: elf: section(4) .relxdp_packet_hook, size 64, link 25, flags 0, type=9
2024-06-04 18:15:23 libbpf: elf: section(5) xdp_pass, size 16, link 0, flags 6, type=1
2024-06-04 18:15:23 libbpf: sec 'xdp_pass': found program 'xdp_pass_func' at insn offset 0 (0 bytes), code size 2 insns (16 bytes)
2024-06-04 18:15:23 libbpf: elf: section(6) .maps, size 1360, link 0, flags 3, type=1
2024-06-04 18:15:23 libbpf: elf: section(7) license, size 13, link 0, flags 3, type=1
2024-06-04 18:15:23 libbpf: license of /opt/loxilb/llb_xdp_main.o is Dual BSD/GPL
2024-06-04 18:15:23 libbpf: elf: section(16) .BTF, size 23418, link 0, flags 0, type=1
2024-06-04 18:15:23 libbpf: elf: section(18) .BTF.ext, size 9448, link 0, flags 0, type=1
2024-06-04 18:15:23 libbpf: elf: section(25) .symtab, size 18384, link 1, flags 0, type=2
2024-06-04 18:15:23 libbpf: looking for externs among 766 symbols...
2024-06-04 18:15:23 libbpf: collected 0 externs total
2024-06-04 18:15:23 libbpf: map 'xfis': at sec_idx 6, offset 0.
2024-06-04 18:15:23 libbpf: map 'xfis': found type = 6.
2024-06-04 18:15:23 libbpf: map 'xfis': found key [3], sz = 4.
2024-06-04 18:15:23 libbpf: map 'xfis': found value [8], sz = 360.
2024-06-04 18:15:23 libbpf: map 'xfis': found max_entries = 1.
2024-06-04 18:15:23 libbpf: map 'live_cpu_map': at sec_idx 6, offset 32.
2024-06-04 18:15:23 libbpf: map 'live_cpu_map': found type = 2.
2024-06-04 18:15:23 libbpf: map 'live_cpu_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'live_cpu_map': found value [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'live_cpu_map': found max_entries = 128.
2024-06-04 18:15:23 libbpf: map 'cpu_map': at sec_idx 6, offset 64.
2024-06-04 18:15:23 libbpf: map 'cpu_map': found type = 16.
2024-06-04 18:15:23 libbpf: map 'cpu_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'cpu_map': found value [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'cpu_map': found max_entries = 128.
2024-06-04 18:15:23 libbpf: map 'intf_map': at sec_idx 6, offset 96.
2024-06-04 18:15:23 libbpf: map 'intf_map': found type = 1.
2024-06-04 18:15:23 libbpf: map 'intf_map': found key [48], sz = 8.
2024-06-04 18:15:23 libbpf: map 'intf_map': found value [50], sz = 32.
2024-06-04 18:15:23 libbpf: map 'intf_map': found max_entries = 512.
2024-06-04 18:15:23 libbpf: map 'intf_stats_map': at sec_idx 6, offset 128.
2024-06-04 18:15:23 libbpf: map 'intf_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'intf_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'intf_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'intf_stats_map': found max_entries = 512.
2024-06-04 18:15:23 libbpf: map 'bd_stats_map': at sec_idx 6, offset 160.
2024-06-04 18:15:23 libbpf: map 'bd_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'bd_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'bd_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'bd_stats_map': found max_entries = 6144.
2024-06-04 18:15:23 libbpf: map 'pkt_ring': at sec_idx 6, offset 192.
2024-06-04 18:15:23 libbpf: map 'pkt_ring': found type = 4.
2024-06-04 18:15:23 libbpf: map 'pkt_ring': found key [3], sz = 4.
2024-06-04 18:15:23 libbpf: map 'pkt_ring': found value [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'pkt_ring': found max_entries = 128.
2024-06-04 18:15:23 libbpf: map 'cp_ring': at sec_idx 6, offset 224.
2024-06-04 18:15:23 libbpf: map 'cp_ring': found type = 4.
2024-06-04 18:15:23 libbpf: map 'cp_ring': found key [3], sz = 4.
2024-06-04 18:15:23 libbpf: map 'cp_ring': found value [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'cp_ring': found max_entries = 128.
2024-06-04 18:15:23 libbpf: map 'pkts': at sec_idx 6, offset 256.
2024-06-04 18:15:23 libbpf: map 'pkts': found type = 6.
2024-06-04 18:15:23 libbpf: map 'pkts': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'pkts': found value [77], sz = 24.
2024-06-04 18:15:23 libbpf: map 'pkts': found max_entries = 1.
2024-06-04 18:15:23 libbpf: map 'fcas': at sec_idx 6, offset 288.
2024-06-04 18:15:23 libbpf: map 'fcas': found type = 6.
2024-06-04 18:15:23 libbpf: map 'fcas': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'fcas': found value [84], sz = 480.
2024-06-04 18:15:23 libbpf: map 'fcas': found max_entries = 1.
2024-06-04 18:15:23 libbpf: map 'tx_intf_map': at sec_idx 6, offset 320.
2024-06-04 18:15:23 libbpf: map 'tx_intf_map': found type = 14.
2024-06-04 18:15:23 libbpf: map 'tx_intf_map': found key [3], sz = 4.
2024-06-04 18:15:23 libbpf: map 'tx_intf_map': found value [3], sz = 4.
2024-06-04 18:15:23 libbpf: map 'tx_intf_map': found max_entries = 512.
2024-06-04 18:15:23 libbpf: map 'tx_intf_stats_map': at sec_idx 6, offset 352.
2024-06-04 18:15:23 libbpf: map 'tx_intf_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'tx_intf_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'tx_intf_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'tx_intf_stats_map': found max_entries = 6144.
2024-06-04 18:15:23 libbpf: map 'tx_bd_stats_map': at sec_idx 6, offset 384.
2024-06-04 18:15:23 libbpf: map 'tx_bd_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'tx_bd_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'tx_bd_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'tx_bd_stats_map': found max_entries = 6144.
2024-06-04 18:15:23 libbpf: map 'smac_map': at sec_idx 6, offset 416.
2024-06-04 18:15:23 libbpf: map 'smac_map': found type = 1.
2024-06-04 18:15:23 libbpf: map 'smac_map': found key [106], sz = 8.
2024-06-04 18:15:23 libbpf: map 'smac_map': found value [108], sz = 16.
2024-06-04 18:15:23 libbpf: map 'smac_map': found max_entries = 8192.
2024-06-04 18:15:23 libbpf: map 'dmac_map': at sec_idx 6, offset 448.
2024-06-04 18:15:23 libbpf: map 'dmac_map': found type = 1.
2024-06-04 18:15:23 libbpf: map 'dmac_map': found key [114], sz = 8.
2024-06-04 18:15:23 libbpf: map 'dmac_map': found value [116], sz = 20.
2024-06-04 18:15:23 libbpf: map 'dmac_map': found max_entries = 8192.
2024-06-04 18:15:23 libbpf: map 'tmac_map': at sec_idx 6, offset 480.
2024-06-04 18:15:23 libbpf: map 'tmac_map': found type = 1.
2024-06-04 18:15:23 libbpf: map 'tmac_map': found key [121], sz = 12.
2024-06-04 18:15:23 libbpf: map 'tmac_map': found value [123], sz = 40.
2024-06-04 18:15:23 libbpf: map 'tmac_map': found max_entries = 2048.
2024-06-04 18:15:23 libbpf: map 'tmac_stats_map': at sec_idx 6, offset 512.
2024-06-04 18:15:23 libbpf: map 'tmac_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'tmac_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'tmac_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'tmac_stats_map': found max_entries = 2048.
2024-06-04 18:15:23 libbpf: map 'nh_map': at sec_idx 6, offset 544.
2024-06-04 18:15:23 libbpf: map 'nh_map': found type = 2.
2024-06-04 18:15:23 libbpf: map 'nh_map': found key [132], sz = 4.
2024-06-04 18:15:23 libbpf: map 'nh_map': found value [134], sz = 48.
2024-06-04 18:15:23 libbpf: map 'nh_map': found max_entries = 4096.
2024-06-04 18:15:23 libbpf: map 'ct_map': at sec_idx 6, offset 576.
2024-06-04 18:15:23 libbpf: map 'ct_map': found type = 1.
2024-06-04 18:15:23 libbpf: map 'ct_map': found key [141], sz = 40.
2024-06-04 18:15:23 libbpf: map 'ct_map': found value [143], sz = 264.
2024-06-04 18:15:23 libbpf: map 'ct_map': found max_entries = 524288.
2024-06-04 18:15:23 libbpf: map 'ct_stats_map': at sec_idx 6, offset 608.
2024-06-04 18:15:23 libbpf: map 'ct_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'ct_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'ct_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'ct_stats_map': found max_entries = 524288.
2024-06-04 18:15:23 libbpf: map 'nat_map': at sec_idx 6, offset 640.
2024-06-04 18:15:23 libbpf: map 'nat_map': found type = 1.
2024-06-04 18:15:23 libbpf: map 'nat_map': found key [194], sz = 24.
2024-06-04 18:15:23 libbpf: map 'nat_map': found value [196], sz = 776.
2024-06-04 18:15:23 libbpf: map 'nat_map': found max_entries = 4096.
2024-06-04 18:15:23 libbpf: map 'nat_stats_map': at sec_idx 6, offset 672.
2024-06-04 18:15:23 libbpf: map 'nat_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'nat_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'nat_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'nat_stats_map': found max_entries = 65536.
2024-06-04 18:15:23 libbpf: map 'nat_ep_map': at sec_idx 6, offset 704.
2024-06-04 18:15:23 libbpf: map 'nat_ep_map': found type = 2.
2024-06-04 18:15:23 libbpf: map 'nat_ep_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'nat_ep_map': found value [206], sz = 84.
2024-06-04 18:15:23 libbpf: map 'nat_ep_map': found max_entries = 4096.
2024-06-04 18:15:23 libbpf: map 'rt_v4_map': at sec_idx 6, offset 736.
2024-06-04 18:15:23 libbpf: map 'rt_v4_map': found type = 11.
2024-06-04 18:15:23 libbpf: map 'rt_v4_map': found key [213], sz = 12.
2024-06-04 18:15:23 libbpf: map 'rt_v4_map': found value [218], sz = 40.
2024-06-04 18:15:23 libbpf: map 'rt_v4_map': found max_entries = 32768.
2024-06-04 18:15:23 libbpf: map 'rt_v4_map': found map_flags = 0x1.
2024-06-04 18:15:23 libbpf: map 'rt_v4_stats_map': at sec_idx 6, offset 776.
2024-06-04 18:15:23 libbpf: map 'rt_v4_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'rt_v4_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'rt_v4_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'rt_v4_stats_map': found max_entries = 32768.
2024-06-04 18:15:23 libbpf: map 'rt_v6_map': at sec_idx 6, offset 808.
2024-06-04 18:15:23 libbpf: map 'rt_v6_map': found type = 11.
2024-06-04 18:15:23 libbpf: map 'rt_v6_map': found key [227], sz = 20.
2024-06-04 18:15:23 libbpf: map 'rt_v6_map': found value [218], sz = 40.
2024-06-04 18:15:23 libbpf: map 'rt_v6_map': found max_entries = 2048.
2024-06-04 18:15:23 libbpf: map 'rt_v6_map': found map_flags = 0x1.
2024-06-04 18:15:23 libbpf: map 'rt_v6_stats_map': at sec_idx 6, offset 848.
2024-06-04 18:15:23 libbpf: map 'rt_v6_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'rt_v6_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'rt_v6_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'rt_v6_stats_map': found max_entries = 2048.
2024-06-04 18:15:23 libbpf: map 'mirr_map': at sec_idx 6, offset 880.
2024-06-04 18:15:23 libbpf: map 'mirr_map': found type = 2.
2024-06-04 18:15:23 libbpf: map 'mirr_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'mirr_map': found value [234], sz = 48.
2024-06-04 18:15:23 libbpf: map 'mirr_map': found max_entries = 32.
2024-06-04 18:15:23 libbpf: map 'sess_v4_map': at sec_idx 6, offset 912.
2024-06-04 18:15:23 libbpf: map 'sess_v4_map': found type = 1.
2024-06-04 18:15:23 libbpf: map 'sess_v4_map': found key [241], sz = 16.
2024-06-04 18:15:23 libbpf: map 'sess_v4_map': found value [243], sz = 32.
2024-06-04 18:15:23 libbpf: map 'sess_v4_map': found max_entries = 20480.
2024-06-04 18:15:23 libbpf: map 'sess_v4_stats_map': at sec_idx 6, offset 944.
2024-06-04 18:15:23 libbpf: map 'sess_v4_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'sess_v4_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'sess_v4_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'sess_v4_stats_map': found max_entries = 20480.
2024-06-04 18:15:23 libbpf: map 'fc_v4_map': at sec_idx 6, offset 976.
2024-06-04 18:15:23 libbpf: map 'fc_v4_map': found type = 1.
2024-06-04 18:15:23 libbpf: map 'fc_v4_map': found key [251], sz = 16.
2024-06-04 18:15:23 libbpf: map 'fc_v4_map': found value [84], sz = 480.
2024-06-04 18:15:23 libbpf: map 'fc_v4_map': found max_entries = 524288.
2024-06-04 18:15:23 libbpf: map 'fc_v4_stats_map': at sec_idx 6, offset 1008.
2024-06-04 18:15:23 libbpf: map 'fc_v4_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'fc_v4_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'fc_v4_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'fc_v4_stats_map': found max_entries = 524288.
2024-06-04 18:15:23 libbpf: map 'fw_v4_map': at sec_idx 6, offset 1040.
2024-06-04 18:15:23 libbpf: map 'fw_v4_map': found type = 2.
2024-06-04 18:15:23 libbpf: map 'fw_v4_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'fw_v4_map': found value [257], sz = 112.
2024-06-04 18:15:23 libbpf: map 'fw_v4_map': found max_entries = 8192.
2024-06-04 18:15:23 libbpf: map 'fw_v4_stats_map': at sec_idx 6, offset 1072.
2024-06-04 18:15:23 libbpf: map 'fw_v4_stats_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'fw_v4_stats_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'fw_v4_stats_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'fw_v4_stats_map': found max_entries = 8192.
2024-06-04 18:15:23 libbpf: map 'pgm_tbl': at sec_idx 6, offset 1104.
2024-06-04 18:15:23 libbpf: map 'pgm_tbl': found type = 3.
2024-06-04 18:15:23 libbpf: map 'pgm_tbl': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'pgm_tbl': found value [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'pgm_tbl': found max_entries = 8.
2024-06-04 18:15:23 libbpf: map 'polx_map': at sec_idx 6, offset 1136.
2024-06-04 18:15:23 libbpf: map 'polx_map': found type = 2.
2024-06-04 18:15:23 libbpf: map 'polx_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'polx_map': found value [283], sz = 96.
2024-06-04 18:15:23 libbpf: map 'polx_map': found max_entries = 8192.
2024-06-04 18:15:23 libbpf: map 'xfck': at sec_idx 6, offset 1168.
2024-06-04 18:15:23 libbpf: map 'xfck': found type = 6.
2024-06-04 18:15:23 libbpf: map 'xfck': found key [3], sz = 4.
2024-06-04 18:15:23 libbpf: map 'xfck': found value [251], sz = 16.
2024-06-04 18:15:23 libbpf: map 'xfck': found max_entries = 1.
2024-06-04 18:15:23 libbpf: map 'crc32c_map': at sec_idx 6, offset 1200.
2024-06-04 18:15:23 libbpf: map 'crc32c_map': found type = 2.
2024-06-04 18:15:23 libbpf: map 'crc32c_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'crc32c_map': found value [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'crc32c_map': found max_entries = 256.
2024-06-04 18:15:23 libbpf: map 'pplat_map': at sec_idx 6, offset 1232.
2024-06-04 18:15:23 libbpf: map 'pplat_map': found type = 6.
2024-06-04 18:15:23 libbpf: map 'pplat_map': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'pplat_map': found value [60], sz = 16.
2024-06-04 18:15:23 libbpf: map 'pplat_map': found max_entries = 2048.
2024-06-04 18:15:23 libbpf: map 'xctk': at sec_idx 6, offset 1264.
2024-06-04 18:15:23 libbpf: map 'xctk': found type = 6.
2024-06-04 18:15:23 libbpf: map 'xctk': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'xctk': found value [143], sz = 264.
2024-06-04 18:15:23 libbpf: map 'xctk': found max_entries = 2.
2024-06-04 18:15:23 libbpf: map 'gparser': at sec_idx 6, offset 1296.
2024-06-04 18:15:23 libbpf: map 'gparser': found type = 6.
2024-06-04 18:15:23 libbpf: map 'gparser': found key [3], sz = 4.
2024-06-04 18:15:23 libbpf: map 'gparser': found value [300], sz = 64.
2024-06-04 18:15:23 libbpf: map 'gparser': found max_entries = 1.
2024-06-04 18:15:23 libbpf: map 'ct_ctr': at sec_idx 6, offset 1328.
2024-06-04 18:15:23 libbpf: map 'ct_ctr': found type = 2.
2024-06-04 18:15:23 libbpf: map 'ct_ctr': found key [10], sz = 4.
2024-06-04 18:15:23 libbpf: map 'ct_ctr': found value [308], sz = 32.
2024-06-04 18:15:23 libbpf: map 'ct_ctr': found max_entries = 1.
2024-06-04 18:15:23 libbpf: sec '.relxdp_packet_hook': collecting relocation for section(3) 'xdp_packet_hook'
2024-06-04 18:15:23 libbpf: sec '.relxdp_packet_hook': relo #0: insn #5 against 'xfis'
2024-06-04 18:15:23 libbpf: prog 'xdp_packet_func': found map 0 (xfis, sec 6, off 0) for insn #5
2024-06-04 18:15:23 libbpf: sec '.relxdp_packet_hook': relo #1: insn #1084 against 'gparser'
2024-06-04 18:15:23 libbpf: prog 'xdp_packet_func': found map 40 (gparser, sec 6, off 1296) for insn #1084
2024-06-04 18:15:23 libbpf: sec '.relxdp_packet_hook': relo #2: insn #1505 against 'live_cpu_map'
2024-06-04 18:15:23 libbpf: prog 'xdp_packet_func': found map 1 (live_cpu_map, sec 6, off 32) for insn #1505
2024-06-04 18:15:23 libbpf: sec '.relxdp_packet_hook': relo #3: insn #1535 against 'cpu_map'
2024-06-04 18:15:23 libbpf: prog 'xdp_packet_func': found map 2 (cpu_map, sec 6, off 64) for insn #1535
2024-06-04 18:15:23 libbpf: map 'xfis': created successfully, fd=10
2024-06-04 18:15:23 libbpf: map 'live_cpu_map': created successfully, fd=11
2024-06-04 18:15:23 libbpf: map 'cpu_map': failed to create: Argument list too long(-7)
2024-06-04 18:15:23 libbpf: failed to load object '/opt/loxilb/llb_xdp_main.o'
2024-06-04 18:15:23 ERR: loading BPF-OBJ file(/opt/loxilb/llb_xdp_main.o) (-7): Argument list too long
2024-06-04 18:15:23 ERR: loading file: /opt/loxilb/llb_xdp_main.o

To Reproduce
Either deploy using the provided docker command from the doc LoxiLB Quick Start Guide with K3s/Flannel

docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged --entrypoint /root/loxilb-io/loxilb/loxilb -dit -v /dev/log:/dev/log  --name loxilb ghcr.io/loxilb-io/loxilb:latest

Or from the below Docker Compose

services:
  loxilb:
    container_name: loxilb
    image: ghcr.io/loxilb-io/loxilb:latest
    restart: unless-stopped
    ports:
      - 80:80
      - 443:443
    networks:
      net_k8s_lb:
    volumes:
      - /dev/log:/dev/log
    user: root
    privileged: true
    cap_add:
      - SYS_ADMIN
networks:
  net_k8s_lb:
    external: true

Expected behavior
LoxiLB container should start normally, before proceeding to other steps in the docs.

Screenshots
image

Environment:

  • OS: macOS Sonoma 14.5
  • Kernel Version: N/A
  • LoxiLB Version: 0.9.3
  • Cloud Environment: On-prem, Docker Desktop for Mac version 4.30.0
  • K8s Version: 1.29.2 (not related at this stage yet)

Additional context
N/A

@tqn-org tqn-org added the bug Something isn't working label Jun 4, 2024
@tqn-org
Copy link
Author

tqn-org commented Jun 5, 2024

The same compose is able to start on normal Docker CE environment, on an Ubuntu Linux 20.04 machine using AMD64 image. I don't have an ARM64 VM at the moment to test LoxiLB on it.

@UltraInstinct14
Copy link
Contributor

UltraInstinct14 commented Jun 5, 2024

Loxilb does not work directly on MacOS(unsupported). Any linux distro should be fine (recommended kernel version is 5.15 or greater). Also ARM is fully supported on compatible OSs.

A port to Windows is also being planned in the future.

@tqn-org
Copy link
Author

tqn-org commented Jun 8, 2024

Loxilb does not work directly on MacOS(unsupported). Any linux distro should be fine (recommended kernel version is 5.15 or greater). Also ARM is fully supported on compatible OSs.

A port to Windows is also being planned in the future.

Actually as I mentioned, this is an installation of LoxiLB on Docker Desktop for Mac, which runs as a Linux VM underneath. I did not install directly on MacOS :)

More information on the Docker environment:

docker version

Server: Docker Desktop 4.30.0 (149282)
 Engine:
  Version:          26.1.1
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.9
  Git commit:       ac2de55
  Built:            Tue Apr 30 11:48:04 2024
  OS/Arch:          linux/arm64
  Experimental:     true
 containerd:
  Version:          1.6.31
  GitCommit:        e377cd56a71523140ca6ae87e30244719194a521
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

@UltraInstinct14
Copy link
Contributor

Got it. Will double confirm. BTW the MAC used is ARM based (m1/m2) ??

@TrekkieCoder
Copy link
Collaborator

The issue has been fixed and tested locally. Can you pull the "latest" loxilb docker image and confirm ?

@tqn-org
Copy link
Author

tqn-org commented Jun 10, 2024

Got it. Will double confirm. BTW the MAC used is ARM based (m1/m2) ??

Yes it is ARM-based, I'm on a M2

The issue has been fixed and tested locally. Can you pull the "latest" loxilb docker image and confirm ?

Awesome. At least the LoxiLB container does not restart by itself now. I will proceed with creating a LoadBalancer service on my K8s when I get a chance.

Glad to have assistance from you guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants