Docker-DocumentServer icon indicating copy to clipboard operation
Docker-DocumentServer copied to clipboard

Update glibc(libc.so.6) to fresh version.

Open Biggy905 opened this issue 7 months ago • 6 comments

Hi! I'm getting an error after launch that libc.so.6 cannot find the file/directory.

Info about host mashine:

user@home:/$ uname -a
Linux IF72 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

user@home:/$ docker -v
Docker version 28.1.1, build 4eba377

Start command: sudo docker run -i -t -d -p 80:80 onlyoffice/documentserver

Logs:

user@home:/$ sudo docker run -it --rm onlyoffice/documentserver /bin/bash
/bin/bash: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory

From what I understand, the error with libc.so.6 indicates a critical incompatibility between my system and the ONLYOFFICE image. This is a deep-level issue related to glibc versions.

What can you comment on?

Biggy905 avatar May 13 '25 15:05 Biggy905

Hello @Biggy905, I have exactly the same environment. The error shows missing library libtinfo.so.6 in the container. I don’t understand why. It’s definitely in our release image, I checked it.

igwyd@ubu24-04:~$ sudo docker run -i -t -d -p 80:80 --name oo-ds onlyoffice/documentserver
igwyd@ubu24-04:~$ sudo docker exec -it oo-ds /bin/bash
root@15590ec23154:/# ldconfig -p | grep libtinfo.so.6
	libtinfo.so.6 (libc6,x86-64) => /lib/x86_64-linux-gnu/libtinfo.so.6

Maybe you rebuilt the image?

igwyd avatar May 20 '25 06:05 igwyd

Thank you, @igwyd !

I rebuilt the image and run:

user@home:~/Projects/office/Docker-DocumentServer$ sudo docker run -i -t -d -p 80:80 --name oo-ds-test onlyoffice/documentserver

List of containers:

user@home:~/Projects/office/Docker-DocumentServer$ sudo docker images
REPOSITORY                  TAG       IMAGE ID       CREATED       SIZE
onlyoffice/documentserver   latest    8802f525e0a0   5 weeks ago   3.53GB

Logs for the oo-ds-test container:

user@home:~/Projects/office/Docker-DocumentServer$ sudo docker logs 08efb92e2048
/bin/bash: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory

Hash info:

user@home:~/Projects/office/Docker-DocumentServer$ sudo docker images --digests
REPOSITORY                  TAG       DIGEST                                                                    IMAGE ID       CREATED       SIZE
onlyoffice/documentserver   latest    sha256:0daa2d1d414d49286bfa9495fc0c936e7e73edaf8944a61102a7a6353a952297   8802f525e0a0   5 weeks ago   3.53GB

Biggy905 avatar May 20 '25 08:05 Biggy905

Perhaps the image was not downloaded completely, try downloading it again:

docker rm -fv <CONTAINER_ID>
docker rmi onlyoffice/documentserver
docker pull onlyoffice/documentserver

igwyd avatar May 20 '25 08:05 igwyd

I’ve done everything you asked. The image is missing the file libtinfo.so.6(glibc).

Here’s the list of logs I collected:

user@home:~/Projects/office/Docker-DocumentServer$ sudo docker ps -a
[sudo] пароль для user: 
CONTAINER ID   IMAGE                       COMMAND                  CREATED       STATUS                     PORTS     NAMES
08efb92e2048   onlyoffice/documentserver   "/app/ds/run-documen…"   3 hours ago   Exited (127) 3 hours ago             oo-ds-test


user@home:~/Projects/office/Docker-DocumentServer$ sudo docker rm -fv 08efb92e2048
08efb92e2048


user@home:~/Projects/office/Docker-DocumentServer$ sudo docker ps -a
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES


user@home:~/Projects/office/Docker-DocumentServer$ docker rmi onlyoffice/documentserver
Error response from daemon: No such image: onlyoffice/documentserver:latest


user@home:~/Projects/office/Docker-DocumentServer$ docker pull onlyoffice/documentserver
Using default tag: latest
latest: Pulling from onlyoffice/documentserver
1e51ab145acf: Pull complete 
73bcde1a6e14: Pull complete 
bbb2816a8b81: Pull complete 
2726e237d1a3: Pull complete 
77831741af2c: Pull complete 
e4d90cbd2ba3: Pull complete 
a85fc726f853: Pull complete 
Digest: sha256:0daa2d1d414d49286bfa9495fc0c936e7e73edaf8944a61102a7a6353a952297
Status: Downloaded newer image for onlyoffice/documentserver:latest
docker.io/onlyoffice/documentserver:latest


user@home:~/Projects/office/Docker-DocumentServer$ sudo docker run -i -t -d -p 80:80 --name oo-ds-test onlyoffice/documentserver
[sudo] пароль для user: 
323a2c6d0878601b0ca264bedb3a550f12c5ab25934fac0be01b48c1c56081e2


user@home:~/Projects/office/Docker-DocumentServer$ sudo docker images
REPOSITORY                  TAG       IMAGE ID       CREATED       SIZE
onlyoffice/documentserver   latest    8802f525e0a0   5 weeks ago   3.53GB


user@home:~/Projects/office/Docker-DocumentServer$ sudo docker logs
docker: 'docker logs' requires 1 argument

Usage:  docker logs [OPTIONS] CONTAINER

Run 'docker logs --help' for more information


user@home:~/Projects/office/Docker-DocumentServer$ sudo docker logs 8802f525e0a0
Error response from daemon: No such container: 8802f525e0a0


user@home:~/Projects/office/Docker-DocumentServer$ sudo docker ps -a
CONTAINER ID   IMAGE                       COMMAND                  CREATED          STATUS                        PORTS     NAMES
323a2c6d0878   onlyoffice/documentserver   "/app/ds/run-documen…"   48 seconds ago   Exited (127) 46 seconds ago             oo-ds-test


user@home:~/Projects/office/Docker-DocumentServer$ sudo docker logs 323a2c6d0878
/bin/bash: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory


user@home:~/Projects/office/Docker-DocumentServer$ sudo docker images --digests
REPOSITORY                  TAG       DIGEST                                                                    IMAGE ID       CREATED       SIZE
onlyoffice/documentserver   latest    sha256:0daa2d1d414d49286bfa9495fc0c936e7e73edaf8944a61102a7a6353a952297   8802f525e0a0   5 weeks ago   3.53GB

Thank you.

Biggy905 avatar May 20 '25 11:05 Biggy905

Unfortunately I don't understand yet why this is happening. Is this issue only with the onlyoffice/documentserver container? Try some other, nginx, nextcloud etc.

igwyd avatar May 20 '25 12:05 igwyd

I also don’t understand yet why there are no glibs in the container. I’ll try running it a bit later on Ubuntu 22.04 and share all the details.

Biggy905 avatar May 20 '25 12:05 Biggy905

This issue was closed due to no response.

Rita-Bubnova avatar Jul 30 '25 10:07 Rita-Bubnova