Skip to content

GLIBC_2.27 not found on Xenial GPU Docker image #724

Open
@d00astro

Description

@d00astro

Describe the bug
"ERR could not load backend" when using the Docker image redislabs/redisai:latest-gpu-x64-xenial, and trying to load a TF model.
The image redislabs/redisai:1.0.3-gpu-x64-xenial has this issue too.

It seems to be specific to these images, as neither redislabs/redisai:latest-cpu-x64-xenial (Xenial CPU) nor redislabs/redisai:latest-gpu-x64-bionic (Bionic GPU) have this issue.

To Reproduce
Steps to reproduce the behavior:

  1. Download minimal RedisAI multiplication example TF model : graph.pb
  2. docker run -d --rm --gpus all --name redisai -p 6379:6379 redislabs/redisai:latest-gpu-x64-xenial
  3. cat graph.pb | redis-cli -x AI.MODELSET mymodel TF CPU INPUTS a b OUTPUTS c BLOB
    (error) ERR Could not load backend
  4. docker logs redisai
1:C 07 May 2021 00:20:44.039 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 07 May 2021 00:20:44.039 # Redis version=6.0.5, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 07 May 2021 00:20:44.039 # Configuration loaded
1:M 07 May 2021 00:20:44.040 * Running mode=standalone, port=6379.
1:M 07 May 2021 00:20:44.040 # Server initialized
1:M 07 May 2021 00:20:44.040 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 07 May 2021 00:20:44.040 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 07 May 2021 00:20:44.040 * <ai> Redis version found by RedisAI: 6.0.5 - oss
1:M 07 May 2021 00:20:44.040 * <ai> RedisAI version 10003, git_sha=7f808a934dff121e188cb76fdfcc3eb1f9ec7cbf
1:M 07 May 2021 00:20:44.041 * Module 'ai' loaded from /usr/lib/redis/modules/redisai.so
1:M 07 May 2021 00:20:44.041 * Ready to accept connections
1:M 07 May 2021 00:20:49.613 # <ai> backend TF not loaded, will try loading default backend
1:M 07 May 2021 00:20:49.619 # <ai> Could not load TF backend from /usr/lib/redis/modules/backends/redisai_tensorflow/redisai_tensorflow.so: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /usr/lib/redis/modules/backends/redisai_tensorflow/lib/libtensorflow.so.1)

Expected behavior
Response OK, and:

redis-cli AI.MODELGET mymodel META
 1) "backend"
 2) "TF"
 3) "device"
 4) "CPU"
 5) "tag"
 6) ""
 7) "batchsize"
 8) (integer) 0
 9) "minbatchsize"
10) (integer) 0
11) "inputs"
12) 1) "a"
    2) "b"
13) "outputs"
14) 1) "c"

Screenshots
N/A

Environment (please complete the following information):

  • OS: Host: Ubuntu 20.04 + Docker image: 16.04
  • Version: 1.0.3 (?)
  • Platfrom: x86
  • Runtime: GPU (CC 6.1) / Cuda 10.1 / NCCL 2.8.3 / CuDNN 7.6.5

Additional context
Not critical for me as I can use Bionic just as well

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions