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

Waiting indefinitely #1

Open
Sh4d1 opened this issue May 23, 2019 · 16 comments
Open

Waiting indefinitely #1

Sh4d1 opened this issue May 23, 2019 · 16 comments

Comments

@Sh4d1
Copy link

Sh4d1 commented May 23, 2019

Hey!

When I try to run kubectl dig <my-node> it is waiting without suceeding (I've left it almost 1h waiting).

Any ideas on how to debug?

Cheers!

@fntlnz
Copy link
Contributor

fntlnz commented May 23, 2019

@Sh4d1 Oh thanks for bringing this up, we need to add some kind of status update for when it takes too long. It should be normally less than one second on with good bandwidth (the image is 700mb).

What dig does is that it creates a container, so you should see it with kubectl get pods and then you can get the logs for it as with anything else.

@Sh4d1
Copy link
Author

Sh4d1 commented May 23, 2019

Hmm, okay.

So I have: error opening device /host/dev/sysdig0. Make sure you have root credentials and that the sysdig-probe module is loaded.

Guess I have to load the module 😁 maybe add it to the readme?

@fntlnz
Copy link
Contributor

fntlnz commented May 23, 2019

@Sh4d1 the module should load automatically, it probably had problems at downloading or compiling it in case it was not pre built.

I noticed the same problems too on machines that don’t have kernel headers for example, could you provide more info about the node like kernel version, Linux dietro and so on?

I think this is important to solve, thanks for reporting!

@Sh4d1
Copy link
Author

Sh4d1 commented May 24, 2019

Kernel: 4.15.0-50-generic
Distro: Ubuntu 18.04.2 LTS (Bionic Beaver)
I also don't have the kernel headers installed.

Also, maybe it's a new issue, but 9 times out of 10 when I try to log the pod (via docker on the node or via kubectl) it fucks up my terminal 😞

@leodido
Copy link
Contributor

leodido commented May 25, 2019

I also don't have the kernel headers installed.

Can you please try installing headers?

@mjrlee
Copy link

mjrlee commented May 28, 2019

I'm butting up against this on GKE too.

Also having the same problem where getting logs breaks my terminal (tmux/zsh/iTerm on Mac OS 10.14)

@zmarouf
Copy link

zmarouf commented May 29, 2019

Same issue on Debian 8.10 kops AMI with the 4.4.121-k8s kernel and headers installed.

@fntlnz
Copy link
Contributor

fntlnz commented May 31, 2019

PR #4 solves this 🎉 can you please confirm @zmarouf @MartinLeedotOrg @Sh4d1 ?

kernel headers are still needed.

@leodido
Copy link
Contributor

leodido commented Jun 3, 2019

@zmarouf @MartinLeedotOrg @Sh4d1 have you had the opportunity to try it?

@Sh4d1
Copy link
Author

Sh4d1 commented Jun 3, 2019

@leodido not yet, I'll try to test it this week :)

@naiduarvind
Copy link

@leodido - tried it on an EKS cluster. Had to install the kernel header in the user data for the Amazon AMI and tried running kubectl dig however, it still did error out with the same message.

D8Hl6kUUIAA7gsf
D8Hl6kZUcAAuFE9

@leodido
Copy link
Contributor

leodido commented Jun 5, 2019

Thanks for feedback @naiduarvind.

This probably depends by the ko missing for the specific Amazon AMI. Having more details could help us investigating faster :)

@zmarouf
Copy link

zmarouf commented Jun 7, 2019

I tried again on one of our test clusters and I'm still seeing the same error.
AMI: k8s-1.9-debian-jessie-amd64-hvm-ebs-2018-03-11 (ami-4bfe6f33)
Thank you for looking into this. It works well for other workloads though :)

@suside
Copy link

suside commented Jun 13, 2019

Same issue
Ubuntu 16.04.3 LTS
linux-headers-4.4.0-101-generic installed

$ kubectl logs -f kubectl-dig9fc21343-8dae-11e9-a5d9-cc2f716a3fd8-wfn8w 
error opening device /host/dev/sysdig0. Make sure you have root credentials and that the sysdig-probe module is loaded.

@mJace
Copy link

mJace commented Sep 27, 2019

Stuck at a long waiting too,
But my log says.

root@node1:~# kubectl logs kubectl-dig08476147-e101-11e9-b0c3-0cc47aeb8f5c-ccggf
can't open BPF probe '/root/.sysdig/sysdig-probe-bpf.o': No such file or directory

And seems like the driver is not able to load automatically.

root@node1:~# lsmod | grep sysdig
root@node1:~# 

@mJace
Copy link

mJace commented Oct 1, 2019

I pre-installed the sysdig on my node1
And ok to run sysdig and csysdig on node1 by CLI
But still unable to start kubectl-dig pod successfully.

the log of the error pod is still

can't open BPF probe '/root/.sysdig/sysdig-probe-bpf.o': No such file or directory

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

8 participants