caretta icon indicating copy to clipboard operation
caretta copied to clipboard

[Issue: Question]: i use default helm deploy in k8s cluster but the grafana don't have data

Open wnz27 opened this issue 2 years ago • 3 comments

截屏2023-01-18 21 57 25

i dont why

wnz27 avatar Jan 18 '23 13:01 wnz27

截屏2023-01-18 22 00 42

wnz27 avatar Jan 18 '23 14:01 wnz27

Hey, can you share the logs of the Caretta pods? You can use kubectl logs -l app=caretta -n caretta

udiz avatar Jan 18 '23 16:01 udiz

Me too. This is the log, almost identical in all nodes:

2023/01/18 17:47:08 Error retreiving owner of kps-grafana-5f9549d9bb - Missing replicaset for UID 52c9acf0-5d47-4e05-97ac-16414fd0746d
2023/01/18 17:47:08 Error retreiving owner of kps-kube-prometheus-stack-prometheus - Unsupported kind for lookup - Prometheus
2023/01/18 17:47:08 Error retreiving owner of login-5cfb56bf99 - Missing replicaset for UID 9618f538-8370-4893-b958-740bb9683dad
2023/01/18 17:47:09 Error retreiving owner of pg0 - Unsupported kind for lookup - Cluster
2023/01/18 17:47:09 Error retreiving owner of kps-kube-prometheus-stack-prometheus - Unsupported kind for lookup - Prometheus
2023/01/18 17:47:09 Error retreiving owner of kps-kube-prometheus-stack-alertmanager - Unsupported kind for lookup - Alertmanager
2023/01/18 17:47:09 Error retreiving owner of pg0 - Unsupported kind for lookup - Cluster
2023/01/18 17:47:09 Error retreiving owner of pg0 - Unsupported kind for lookup - Cluster
2023/01/18 17:47:09 Error retreiving owner of pg0 - Unsupported kind for lookup - Cluster
2023/01/18 17:47:20 Couldn't load probes - error loading BPF objects from go-side. field HandleSockSetState: program handle_sock_set_state: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2)

Kubernetes on OVH, version 1.23.14

frabe1579 avatar Jan 18 '23 17:01 frabe1579

Hey @frabe1579, I tagged a new release today that might fix your issue. You can try again, remember to update the Helm repository.

udiz avatar Jan 19 '23 12:01 udiz

I think the problem is now resolved, but I have a new error, related to the kernel version 4.15, but the requirement is 4.16:

2023/01/19 13:42:39 Couldn't load probes - error loading BPF objects from go-side. field HandleSockSetState: program handle_sock_set_state: apply CO-RE relocations: no BTF found for kernel version 4.15.0-200-generic: not supported

Can you confirm the error is only due to the requirement of 4.16 kernel?

frabe1579 avatar Jan 19 '23 13:01 frabe1579

This error message is due to lack of CO-RE support in the linux version you're running, as mentioned here - https://github.com/groundcover-com/caretta#requirements . It doesn't depend solely on the kernel version, but this kernel version can't support CO-RE.

udiz avatar Jan 19 '23 19:01 udiz

https://github.com/groundcover-com/caretta#requirements

ok, i try it latter

wnz27 avatar Jan 20 '23 00:01 wnz27

截屏2023-01-20 08 27 57

i try it, and the log is this.

still dont have data

wnz27 avatar Jan 20 '23 00:01 wnz27

As stated in the comment by @udiz above - the issue with both installations is the lack of CO:RE information in the machine. The README file describes which linux distributions added support and starting on what version. I'm closing this issue as it is not something we can deal with, but rather a requirement of the system.

avivzgroundcover avatar Feb 01 '23 14:02 avivzgroundcover