containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/redis] container crashed when docker run on arm64

Open github87154408 opened this issue 1 year ago • 45 comments

Name and Version

bitnami/redis:7.0/6.2/5.0/6.0.9-debian-10-r66/7.0.9-*

What architecture are you using?

arm64

What steps will reproduce the bug?

docker run -it -e ALLOW_EMPTY_PASSWORD=yes docker.io/bitnami/redis:7.0

What is the expected behavior?

container running successfully.

What do you see instead?

$ docker run -it -e ALLOW_EMPTY_PASSWORD=yes docker.io/bitnami/redis:7.0 
redis 10:35:43.97 
redis 10:35:43.97 Welcome to the Bitnami redis container
redis 10:35:43.98 Subscribe to project updates by watching https://github.com/bitnami/containers
redis 10:35:43.98 Submit issues and feature requests at https://github.com/bitnami/containers/issues
redis 10:35:43.98 
redis 10:35:43.98 INFO  ==> ** Starting Redis setup **
redis 10:35:44.00 WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
redis 10:35:44.01 INFO  ==> Initializing Redis
redis 10:35:44.03 INFO  ==> Setting Redis config file
redis 10:35:44.07 INFO  ==> ** Redis setup finished! **

redis 10:35:44.09 INFO  ==> ** Starting Redis **
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
$ docker run -it -e ALLOW_EMPTY_PASSWORD=yes docker.io/bitnami/redis:6.2
standard_init_linux.go:211: exec user process caused "exec format error"

Additional information

my machine is aarch64.

after failed with above tags. I go through the docker build with https://github.com/bitnami/containers/blob/main/bitnami/redis/7.0/debian-11/Dockerfile it seems the Dockerfile is under amd64, so i changed the orch from -amd64 to -arm64. I got the error :

postunpack.sh: 7: set: Illegal option -o pipefail

Can someone help to look at it? thanks.

github87154408 avatar Mar 02 '23 10:03 github87154408

Hi,

In order to change the arch in the Dockerfile, did you modify the file, or you set the TARGETARCH arg?

javsalgar avatar Mar 03 '23 09:03 javsalgar

Hi

In the Dockerfile, set the arg OS_ARCH=arm64.

github87154408 avatar Mar 09 '23 07:03 github87154408

thank you for the response. due to the time, I picked the other image.

github87154408 avatar Mar 09 '23 07:03 github87154408

Please reopen this issue as it still persists on ARM images

This issue has been resolved in the official Redis container but not on Bitnami Please see issue https://github.com/docker-library/redis/issues/208 and fix https://github.com/docker-library/redis/pull/254

Hopefully someone from Bitnami can port the fix over

lwj5 avatar Jun 18 '23 16:06 lwj5

Unfortunately I haven't been able to reproduce the issue, could you give more information? On which machine are you running docker, are you building the image or just pulling and running it?

mdhont avatar Jun 21 '23 15:06 mdhont

Unfortunately I haven't been able to reproduce the issue, could you give more information? On which machine are you running docker, are you building the image or just pulling and running it?

➜  ~ getConf PAGE_SIZE
65536

Find an arm64 arch node with page-size = 64K NOT 4K

docker --platform linux/arm64  run -it  bitnami/redis-cluster:latest  -e ALLOW_EMPTY_PASSWORD=yes -e REDIS_NODES=127.0.0.1:6379  
docker --platform linux/arm64  run -it  bitnami/redis:latest  

Then will see the error log

redis 10:35:44.09 INFO  ==> ** Starting Redis **
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size

wyzssw avatar Jun 26 '23 08:06 wyzssw

@wyzssw Thanks for replying to this, it slipped my mind.

@mdhont You can find such a system on Oracle Cloud ARM servers. We are using the Oracle-managed Kubernetes, installing Redis from Bitnami/Redis chart

Edited to make the reply clearer

lwj5 avatar Jun 26 '23 08:06 lwj5

@wyzssw my reply was directed to @mdhont. Apologies if there was a misunderstanding

lwj5 avatar Jun 26 '23 08:06 lwj5

@wyzssw my reply was directed to @mdhont. Apologies if there was a misunderstanding

Thank you very much

wyzssw avatar Jun 26 '23 08:06 wyzssw

hi, I got the same error when using redis helm chart in arm64 machine with 64K page size.

$ getconf PAGE_SIZE
65536

bitnami/redis:7.0.11-debian-11-r24

$ redis-server
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
Segmentation fault (core dumped)

redis:7.0.11-bookworm

# redis-server
11:C 29 Jun 2023 10:40:52.192 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
11:C 29 Jun 2023 10:40:52.192 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=11, just started
11:C 29 Jun 2023 10:40:52.192 # Configuration loaded
11:M 29 Jun 2023 10:40:52.193 * monotonic clock: POSIX clock_gettime
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 7.0.11 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 11
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           https://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

networkhermit avatar Jun 29 '23 10:06 networkhermit

@lwj5 @mdhont When will the new image appear?

wyzssw avatar Jul 10 '23 03:07 wyzssw

I've created a task for investigating it further. We will notify you in this PR when there is any news.

mdhont avatar Jul 11 '23 13:07 mdhont

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Aug 11 '23 01:08 github-actions[bot]

Not stale

lwj5 avatar Aug 11 '23 01:08 lwj5

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Sep 01 '23 01:09 github-actions[bot]

Not stale

lwj5 avatar Sep 01 '23 02:09 lwj5

@github87154408, @lwj5 are you still experiencing this issues?

It is now working for me in the, at least, the last revision:

docker run -it -e ALLOW_EMPTY_PASSWORD=yes docker.io/bitnami/redis:7.0
redis 12:59:49.24 
redis 12:59:49.24 Welcome to the Bitnami redis container
redis 12:59:49.24 Subscribe to project updates by watching https://github.com/bitnami/containers
redis 12:59:49.25 Submit issues and feature requests at https://github.com/bitnami/containers/issues
redis 12:59:49.25 
redis 12:59:49.25 INFO  ==> ** Starting Redis setup **
redis 12:59:49.26 WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
redis 12:59:49.27 INFO  ==> Initializing Redis
redis 12:59:49.28 INFO  ==> Setting Redis config file
redis 12:59:49.31 INFO  ==> ** Redis setup finished! **

redis 12:59:49.32 INFO  ==> ** Starting Redis **
1:C 05 Sep 2023 12:59:49.345 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 05 Sep 2023 12:59:49.345 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 05 Sep 2023 12:59:49.345 # Configuration loaded
1:M 05 Sep 2023 12:59:49.345 * monotonic clock: POSIX clock_gettime
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 7.0.11 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                  
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 1
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           https://redis.io       
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

1:M 05 Sep 2023 12:59:49.347 # Server initialized
1:M 05 Sep 2023 12:59:49.352 * Creating AOF base file appendonly.aof.1.base.rdb on server start
1:M 05 Sep 2023 12:59:49.355 * Creating AOF incr file appendonly.aof.1.incr.aof on server start
1:M 05 Sep 2023 12:59:49.355 * Ready to accept connections

Working of course in ARM64 (Mac M1)

aoterolorenzo avatar Sep 05 '23 13:09 aoterolorenzo

The latest revision is still not working.

# getconf PAGE_SIZE
65536
#  docker run -it -e ALLOW_EMPTY_PASSWORD=yes docker.io/bitnami/redis:7.0
Unable to find image 'bitnami/redis:7.0' locally
7.0: Pulling from bitnami/redis
90bbff79ced3: Pull complete
Digest: sha256:275eb1f1326560d548708d05f760fc7f4c674c654f68c0dd2a108f50edcda8bd
Status: Downloaded newer image for bitnami/redis:7.0
redis 01:58:00.37
redis 01:58:00.37 Welcome to the Bitnami redis container
redis 01:58:00.37 Subscribe to project updates by watching https://github.com/bitnami/containers
redis 01:58:00.37 Submit issues and feature requests at https://github.com/bitnami/containers/issues
redis 01:58:00.37
redis 01:58:00.37 INFO  ==> ** Starting Redis setup **
redis 01:58:00.39 WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
redis 01:58:00.39 INFO  ==> Initializing Redis
redis 01:58:00.40 INFO  ==> Setting Redis config file
redis 01:58:00.43 INFO  ==> ** Redis setup finished! **

redis 01:58:00.44 INFO  ==> ** Starting Redis **
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size

networkhermit avatar Sep 06 '23 02:09 networkhermit

@aoterolorenzo ARM64 (Mac M1) pageSize is 4096,but not 65536

wyzssw avatar Sep 15 '23 03:09 wyzssw

@wyzssw we are working in the fix. It is not trivial, since we cannot exactly reproduce the upstream fix due to the nature of our pipelines, but reproduce it in our compilation step. We will reach back here as soon as it be done.

aoterolorenzo avatar Sep 18 '23 10:09 aoterolorenzo

Using version 7.2.3-debian-11-r1: same error when running on Raspberry Pi 5 (Raspbian).

alexandreroman avatar Nov 28 '23 14:11 alexandreroman

Using version 7.2.3-debian-11-r1: same error when running on Raspberry Pi 5 (Raspbian).

i have same issue

Pom-Veerawat avatar Feb 07 '24 03:02 Pom-Veerawat

is it possible to force setting in this docker ?

https://github.com/bitnami/containers/tree/main/bitnami/redis/7.2/debian-11

Pom-Veerawat avatar Feb 07 '24 05:02 Pom-Veerawat

is it possible to force setting in this docker ?

https://github.com/bitnami/containers/tree/main/bitnami/redis/7.2/debian-11

It's an issue with the build system, and large page sizes

hollanbm avatar Feb 07 '24 06:02 hollanbm

I solved this issue with docker pull redis:latest instead

Pom-Veerawat avatar Feb 07 '24 07:02 Pom-Veerawat

I solved this issue with

docker pull redis:latest instead

Yeah, you can use the official redis images. Since those support the large page size.

But the bitnami images, don't. Hence this issue

hollanbm avatar Feb 07 '24 07:02 hollanbm

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Feb 23 '24 01:02 github-actions[bot]

Not stale

hollanbm avatar Feb 23 '24 01:02 hollanbm

Hi,

I think it makes sense to take a look in order to add support to a larger page size. I will create an internal task for the team to investigate the issue and work in a fix. We will reach you back here as soon our workload allow us to take this forward.

aoterolorenzo avatar Feb 26 '24 16:02 aoterolorenzo

arm64 7.2-debian-12 : Unsupported system page size

yuyihan666 avatar Apr 01 '24 09:04 yuyihan666