containers
containers copied to clipboard
[bitnami/redis] container crashed when docker run on arm64
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.
Hi,
In order to change the arch in the Dockerfile, did you modify the file, or you set the TARGETARCH
arg?
Hi
In the Dockerfile, set the arg OS_ARCH=arm64.
thank you for the response. due to the time, I picked the other image.
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
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?
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 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
@wyzssw my reply was directed to @mdhont. Apologies if there was a misunderstanding
@wyzssw my reply was directed to @mdhont. Apologies if there was a misunderstanding
Thank you very much
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
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
@lwj5 @mdhont When will the new image appear?
I've created a task for investigating it further. We will notify you in this PR when there is any news.
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.
Not stale
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.
Not stale
@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)
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
@aoterolorenzo ARM64 (Mac M1) pageSize is 4096,but not 65536
@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.
Using version 7.2.3-debian-11-r1: same error when running on Raspberry Pi 5 (Raspbian).
Using version 7.2.3-debian-11-r1: same error when running on Raspberry Pi 5 (Raspbian).
i have same issue
is it possible to force setting in this docker ?
https://github.com/bitnami/containers/tree/main/bitnami/redis/7.2/debian-11
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
I solved this issue with docker pull redis:latest instead
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
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.
Not stale
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.
arm64 7.2-debian-12