-
Notifications
You must be signed in to change notification settings - Fork 51
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
chroot can't execute 'sh': No such file or directory #7
Comments
Holy cow! https://github.com/Mic92/cntr did work! Thank you for building your program, but also super thank you for documenting alternatives! |
Hi @rejoshed! Thanks for the report (and for the kind words)! 😄 Could you maybe share the complete Thanks! |
Hey, I think that was at least one of the issues. The deployment by crossplane is very locked down. I'm sorry I haven't had much of a chance to check back into this just yet, but hopefully soon. : ) |
No rush at all, take your time! |
+1 with the same symptoms. ONLY with containers from images like this:
Strange thing older version has same symptoms. Even switch from ARM64 to AMD64 changes nothing.
All versions are buit from sources. Other containers(containing shell BTW) are fine, but the idea is to debug "no-shellies" :) |
Have you folks tried https://github.com/iximiuz/cdebug/releases/tag/v0.0.9? There were two fixes related to this problem. |
Nope. Same thing.
|
@kappa8219 do you know what's the architecture of that |
It is AMD64, first was ARM indeed. But both hosts are the functioning k8s nodes. So there should not be arch mismatch. |
Just in case, could you try running |
|
Hope I don't bother you much cause these pause-containers are just a dummy processes in a POD. But it is interesting what is the cause of such errors.
Second, "workload" container(no-shellie also) is absolutely fine with cdebug:
So this issue is more like "detective story" not a real usecase, IMHO. |
What I did - extracted this pause "guts". Just for brainstorming %) {
"architecture": "amd64",
"config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": null,
"Image": "sha256:7608ec41f6dcdfcfa3a0e625fc14976fcd6257f58baa48288609c413e9aecde4",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/pause"
],
"OnBuild": null,
"Labels": null
},
"container": "1dfe01174b90ef08a62f969ac3e111bde5eba064e61d0050e688e7ff4723252b",
"container_config": {
"Hostname": "1dfe01174b90",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"/bin/sh",
"-c",
"#(nop) ",
"ENTRYPOINT [\"/pause\"]"
],
"Image": "sha256:7608ec41f6dcdfcfa3a0e625fc14976fcd6257f58baa48288609c413e9aecde4",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/pause"
],
"OnBuild": null,
"Labels": {}
},
"created": "2020-07-10T18:19:35.63107296Z",
"docker_version": "19.03.11",
"history": [
{
"created": "2020-07-10T18:19:35.328927755Z",
"created_by": "/bin/sh -c #(nop) ARG ARCH",
"empty_layer": true
},
{
"created": "2020-07-10T18:19:35.500888129Z",
"created_by": "/bin/sh -c #(nop) ADD file:c9c01c3ad66a142eb9c65a6cea2ae4e039fb3f0f0d1dace44ebc4921e5b8194f in /pause "
},
{
"created": "2020-07-10T18:19:35.63107296Z",
"created_by": "/bin/sh -c #(nop) ENTRYPOINT [\"/pause\"]",
"empty_layer": true
}
],
"os": "linux",
"rootfs": {
"type": "layers",
"diff_ids": [
"sha256:4548548ec9f2c5096713a22d782fb56f1f6f523072a4b323b1963171d09c1b4d"
]
}
} |
Thanks for the detailed report! I haven't had the time to analyze it thoroughly, but here is a new release that fixes another related issued v0.0.11. Could you give it a try? Also, could you try the |
Now some other error:
UPD: |
UPDATE: It was an arm node and now I tried AMD64. And it works!
"Pause" hacked! Hurray! Thanks. |
Hi Oleksii! Sorry for the late reply, busy times 🙈 I'm on vacation next week, so hopefully I'll have more time to dig into it. Thanks for all your detailed reports! |
It took me exactly one year, but there is a good chance that the recent |
Hey, have a crossplane provider-aws pod running and I'm trying to get into the darn thing. Unfortunately even using this program I still get
chroot can't execute 'sh': No such file or directory
The image comes from here: https://github.com/crossplane-contrib/provider-aws
The image seems to be from scratch, but I can't really follow their build process. It's quite complicated.
In this case I've ssh'd to the Node the pod is on and attempted to run your program, but with no luck. 😢
Thanks for this and your article btw. It's all quite amazing! I feel like you're my sprit animal. I'm often finding you've already trekked a similar path and blogged it when I'm attempting something.
The text was updated successfully, but these errors were encountered: