-
Notifications
You must be signed in to change notification settings - Fork 9
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
QEMU issue with curl and SSL certificates on Debian #9
Comments
I believe this is this issue https://bugs.launchpad.net/qemu/+bug/1805913 which is kind of complicated to fix as it is a qemu/kernel/glibc combined issue that qemu on its own cannot fix... |
"Same things happens with update-ca-certificates. It calls c_rehash through openssl, which ends up doing nothing. As a result, curl with https and probably anything else that uses SSL fails to work." 🤦🏽♂ @justincormack do you know if musl would present the same issue? |
It seems to be mainly a problem on ext4 filesystems, so if it is an option, changing the filesystem that your system uses might be an option. |
It should not apply not Musl, and it is fine with older glibc. (pre-Buster and Ubuntu 18.04 and earlier are fine for example). |
Thanks. |
It seems that if we compile qemu-static as a 32 bit binary this fixes the issue as it uses 32 bit syscalls. I opened linuxkit/linuxkit#3438 |
@justincormack: interesting and more logical workaround. For the record another workaround is to remove So I just have to cross-compile qemu-static as a 32 bit binary? That does not sound too hard, I'll try. |
So I did The process still gets stuck in a loop involving
Looks like I need to dig deeper and actually debug QEMU 😟 |
Looks like this has been fixed in debian bullseye. Based on https://bugzilla.kernel.org/show_bug.cgi?id=205957 the kernel patches for it are not accepted and newer and properly configured glibc is needed to work around it. |
docker buildx build --platform="linux/arm64,linux/amd64,linux/386" -f Dockerfile .
<- works as expecteddocker buildx build --platform="linux/arm/v7" -f Dockerfile .
<- fails withcurl: (60) SSL certificate problem: unable to get local issuer certificate
Same problem with
linux/arm/v6
.This problem is not visible on a native arm machine - so, I'm guessing it's a QEMU issue.
The text was updated successfully, but these errors were encountered: