Closed alongir closed 2 months ago
@alongir Can you please provide version information?
the issue might be already fixed in https://github.com/kubeshark/tracer/pull/32
@iluxa I've tried latest and it is indeed fixed. But now I run into this error
2024-02-18T17:44:25Z FTL: tracer/tracer.go:45 > Failed to set rlimit error="SYS_RESOURCE is required to change rlimits for eBPF: unexpected error detecting memory cgroup accounting: function not implemented"
I've changed par this part to only log error to see what happens next and in that case it fails with:
2024-02-18T17:44:25Z ERR tracer/tracer.go:45 > Failed to set rlimit error="SYS_RESOURCE is required to change rlimits for eBPF: unexpected error detecting memory cgroup accounting: function not implemented"
2024-02-18T17:44:25Z INF tracer/tracer.go:54 > Detected Linux kernel version: 6.7.4-200.fc39.aarch64
2024-02-18T17:44:25Z FTL tracer/main.go:67 > Couldn't initialize the tracer: error="field GoCryptoTlsAbi0Read: program go_crypto_tls_abi0_read: map pids_map: map create: function not implemented (without BTF k/v)"
Ok, the error from above was related to running podman machine in rootless mode. With rootful mode I have this
2024-02-18T19:05:07Z INF tracer/tls_process_discoverer.go:67 > Starting TLS auto discoverer: pids=103 procfs=/hostproc
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=init pid=1
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=101
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=1135
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=1149
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=1173
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=2d115f272f04bfb9185c907122fb5f9d76187357aba881c7bdd81fd73b3b2b77 pid=1205
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=736b998475042b9a8f3a0cfa8b22d276fee6cceeca76c59a1bc016d73c61c5eb pid=1213
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=01bfefe9463006731f7a7db385c1ed14ed31eba24a47f7688593d726b729bb71 pid=1221
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=1684
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=1697
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=13b1bbe73811e917e2545f26d7d33306c155ac95ac444de6e52ed155d620dec2 pid=1726
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=c6c4ba007fb5ae15929fa952bf7c758c5c56888c9f3c38be688c08b0af2edcd3 pid=1734
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=07b57f807e44e4ea72a80518640379c9978a61f5a3d9fb12b718843ea225513f pid=1913
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=07b57f807e44e4ea72a80518640379c9978a61f5a3d9fb12b718843ea225513f pid=1940
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=07b57f807e44e4ea72a80518640379c9978a61f5a3d9fb12b718843ea225513f pid=1941
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=07b57f807e44e4ea72a80518640379c9978a61f5a3d9fb12b718843ea225513f pid=1942
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=07b57f807e44e4ea72a80518640379c9978a61f5a3d9fb12b718843ea225513f pid=1943
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=ac2fdef039c0d772e6762c315cc4cacbe2e5470c3ac53bade2006f8fcc980ca3 pid=1985
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=255
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=256
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=257
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=3125
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=d5168e8e55b3e18b9313aeddcdc6d9aaa695376b7b0d4b74a4ec726d71cf30da pid=3145
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=63d2e6b201473f0a387a31446e13139d1ac873785385555897ecccd82c0f08d3 pid=315
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=7d1331b5b77d3973fc5aca4a64a878ee0e13cf3ce42009ff96f9e1f5c889ee93 pid=322
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=59f84dd314a42f6ce9542ce755895615f061af52fab1125cdee47343552dcaee pid=3239
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=f601e3d2124ad3e31283544d6ef2d849879e18860ca349b915d1082861db1f51 pid=329
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:80 > Couldn't get the cgroup of process. error="Cgroup path not found for 3385, [0::/ ]" pid=3385
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=365
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=05df8788270abe1e985d736eb230b838b1a231b30e7351c79dcae335e97aeea9 pid=385
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=kubelet pid=652
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=719
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=containerd pid=746
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=1a7ee71fdf4b661c0645997f88d78c250ceca955d71b767ab664c58fd2142624 pid=768
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=f5fd44a83220ac549b91ccb966d9ecab9fd9eabe49141add578f751d78e216af pid=775
2024-02-18T19:05:07Z WRN tracer/tls_process_discoverer.go:86 > Couldn't find the pod for the given cgroup of pid. cgroup=journald pid=86
2024-02-18T19:05:07Z INF tracer/tls_process_discoverer.go:41 > pids=[{},{},{},{},{},{},{},{},{}]
2024-02-18T19:05:07Z INF tracer/go_offsets.go:230 > Disassembling /hostproc/1427/root/coredns with Capstone 5.0 (arch: 1, mode: 0)
2024-02-18T19:05:07Z INF tracer/tracer.go:237 > PID skipped not a Go binary or symbol table is stripped (pid: 1427) /hostproc/1427/root/coredns
2024-02-18T19:05:07Z INF tracer/go_offsets.go:230 > Disassembling /hostproc/1434/root/coredns with Capstone 5.0 (arch: 1, mode: 0)
2024-02-18T19:05:07Z INF tracer/tracer.go:237 > PID skipped not a Go binary or symbol table is stripped (pid: 1434) /hostproc/1434/root/coredns
2024-02-18T19:05:07Z INF tracer/go_offsets.go:230 > Disassembling /hostproc/596/root/usr/local/bin/etcd with Capstone 5.0 (arch: 1, mode: 0)
2024-02-18T19:05:07Z INF tracer/packet_unix_socket.go:135 > Accepted unix socket: Address=@
2024-02-18T19:05:07Z INF tracer/tracer.go:241 > Targeting TLS (pid: 596) (Go: /hostproc/596/root/usr/local/bin/etcd)
2024-02-18T19:05:07Z INF tracer/go_offsets.go:230 > Disassembling /hostproc/821/root/usr/local/bin/kube-proxy with Capstone 5.0 (arch: 1, mode: 0)
2024-02-18T19:05:07Z INF tracer/tracer.go:237 > PID skipped not a Go binary or symbol table is stripped (pid: 821) /hostproc/821/root/usr/local/bin/kube-proxy
2024-02-18T19:05:07Z INF tracer/go_offsets.go:230 > Disassembling /hostproc/990/root/bin/kindnetd with Capstone 5.0 (arch: 1, mode: 0)
2024-02-18T19:05:08Z INF tracer/tracer.go:241 > Targeting TLS (pid: 990) (Go: /hostproc/990/root/bin/kindnetd)
2024-02-18T19:05:08Z INF tracer/go_offsets.go:230 > Disassembling /hostproc/1468/root/usr/local/bin/local-path-provisioner with Capstone 5.0 (arch: 1, mode: 0)
2024-02-18T19:05:08Z INF tracer/tracer.go:237 > PID skipped not a Go binary or symbol table is stripped (pid: 1468) /hostproc/1468/root/usr/local/bin/local-path-provisioner
2024-02-18T19:05:08Z INF tracer/go_offsets.go:230 > Disassembling /hostproc/480/root/usr/local/bin/kube-controller-manager with Capstone 5.0 (arch: 1, mode: 0)
2024-02-18T19:05:08Z INF tracer/tracer.go:237 > PID skipped not a Go binary or symbol table is stripped (pid: 480) /hostproc/480/root/usr/local/bin/kube-controller-manager
2024-02-18T19:05:08Z INF tracer/go_offsets.go:230 > Disassembling /hostproc/506/root/usr/local/bin/kube-scheduler with Capstone 5.0 (arch: 1, mode: 0)
2024-02-18T19:05:08Z INF tracer/tracer.go:237 > PID skipped not a Go binary or symbol table is stripped (pid: 506) /hostproc/506/root/usr/local/bin/kube-scheduler
2024-02-18T19:05:08Z INF tracer/go_offsets.go:230 > Disassembling /hostproc/515/root/usr/local/bin/kube-apiserver with Capstone 5.0 (arch: 1, mode: 0)
2024-02-18T19:05:08Z INF tracer/tracer.go:237 > PID skipped not a Go binary or symbol table is stripped (pid: 515) /hostproc/515/root/usr/local/bin/kube-apiserver
Can this be considered as working?
So, latest canary worker doesn't work. But worker with latest tracer
seems to work ok. Even service-map
...
Can this be considered as working?
Yes, it works based on logs
@iluxa when do you plan then to release canary worker with latest tracer changes?
I am not a right person who makes worker releases. I suppose release can be make with latest tracer changes.
Regarding this https://github.com/kubeshark/kubeshark/issues/1493|https://github.com/kubeshark/kubeshark/issues/1493
Slack Message