Fork me on GitHub
#datalevin
<
2022-12-02
>
Loic10:12:41

Hi, After starting a container with the latest docker image huahaiy/datalevin, I have the following error:

$ docker run huahaiy/datalevin dtlv help
dtlv: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by dtlv)
dtlv: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by dtlv)
I have the same error when downloading the executable binary from github as well. I tried to run dtlv on aws EC2, t2.micro with the image https://ap-southeast-1.console.aws.amazon.com/ec2/home?region=ap-southeast-1#ImageDetails:imageId=ami-07651f0c4c315a529
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL=""
SUPPORT_URL=""
BUG_REPORT_URL=""
PRIVACY_POLICY_URL=""
UBUNTU_CODENAME=jammy
and the libc6 version:
$ ldd --version
ldd (Ubuntu GLIBC 2.35-0ubuntu3.1) 2.35
So I am quite confused on what went wrong? I also tried on a EC2 instance with amazon linux ami (the default one) before and got the same error but the version of libc6 was 2.26 so I guess the error message made sense for that one. Also same problem trying to call dtlv on a running datalevin container on my local machine (mac book pro 2.9 GHz 6-Core Intel Core i9 - macOS ventura - memory 16GB). Although, dtlv installed locally on the mac with brew works fine, I can start the datalevin repl as expected

Loic12:12:35

After further investigation, it appears that this bug only appears in the last docker image tag 0.6.26 (latest). I tried on my mac and the 2 linux env mentioned above and was able to start the datalevin repl with the image tag 0.6.22.

Huahai15:12:26

I suspect it is because the recent Linux homebrew issue. I built the docker images in that environment.

Huahai16:12:19

0.6.27 will be released to address these problems

Huahai18:12:53

OK, 0.6.27 has the same problem. Apparently, github action’s runner image for ubuntu has upgraded 22.0.4

Huahai18:12:35

I will pin our github action yaml file to use ubuntu 20.0.4 instead

Huahai18:12:09

I will build both versions, and put the 20.04 version in docker image

Huahai18:12:13

Anyway, it’s the github action runner image mess up. Their images are not consistent with ubuntu

Huahai18:12:27

since ubuntu 20.04 LTS uses glibc 2.31, and ubuntu 22.04 LTS uses glibc 2.35, so I don’t understand where 2.32 and 2.34 come from.

Huahai18:12:12

They must be in the middle of roll out and it happens to use older version of glibc

Huahai19:12:32

0.6.28 fixed this. We use ubuntu 20.04 instead

🙌 1
Huahai00:12:18

Thank you for notifying me the problem 🙏