Giter Club home page Giter Club logo

redismod's Introduction

Build Status

redismod - a Docker image with select Redis Labs modules

This simple container image bundles together the latest stable releases of Redis and select Redis modules from Redis Labs.

Quickstart

$ docker pull redislabs/redismod
Using default tag: latest
...
$ docker run -p 6379:6379 redislabs/redismod
1:C 24 Apr 2019 21:46:40.382 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
...
1:M 24 Apr 2019 21:46:40.474 * Module 'ai' loaded from /usr/lib/redis/modules/redisai.so
1:M 24 Apr 2019 21:46:40.474 * <ft> RediSearch version 1.4.7 (Git=)
1:M 24 Apr 2019 21:46:40.474 * <ft> concurrency: ON, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, search pool size: 20, index pool size: 8,
1:M 24 Apr 2019 21:46:40.475 * <ft> Initialized thread pool!
1:M 24 Apr 2019 21:46:40.475 * Module 'ft' loaded from /usr/lib/redis/modules/redisearch.so
1:M 24 Apr 2019 21:46:40.476 * <graph> Thread pool created, using 8 threads.
1:M 24 Apr 2019 21:46:40.476 * Module 'graph' loaded from /usr/lib/redis/modules/redisgraph.so
loaded default MAX_SAMPLE_PER_CHUNK policy: 360
1:M 24 Apr 2019 21:46:40.476 * Module 'timeseries' loaded from /usr/lib/redis/modules/redistimeseries.so
1:M 24 Apr 2019 21:46:40.476 # <ReJSON> JSON data type for Redis v1.0.4 [encver 0]
1:M 24 Apr 2019 21:46:40.476 * Module 'ReJSON' loaded from /usr/lib/redis/modules/rejson.so
1:M 24 Apr 2019 21:46:40.476 * Module 'bf' loaded from /usr/lib/redis/modules/rebloom.so
1:M 24 Apr 2019 21:46:40.477 * <rg> RedisGears version 0.2.1, git_sha=fb97ad757eb7238259de47035bdd582735b5c81b
1:M 24 Apr 2019 21:46:40.477 * <rg> PythonHomeDir:/usr/lib/redis/modules/deps/cpython/
1:M 24 Apr 2019 21:46:40.477 * <rg> MaxExecutions:1000
1:M 24 Apr 2019 21:46:40.477 * <rg> RedisAI api loaded successfully.
1:M 24 Apr 2019 21:46:40.477 # <rg> RediSearch api loaded successfully.
1:M 24 Apr 2019 21:46:40.521 * Module 'rg' loaded from /usr/lib/redis/modules/redisgears.so
1:M 24 Apr 2019 21:46:40.521 * Ready to accept connections

Modules included in the container

Configuring the Redis server

This image is based on the official image of Redis from Docker. By default, the container starts with Redis' default configuration and all included modules loaded.

You can, of course, override the defaults. This can be done either by providing additional command line arguments to the docker command, or by providing your own Redis configuration file.

Running the container with command line arguments

You can provide Redis with configuration directives directly from the docker command. For example, the following will start the container, mount the host's /home/user/data volume to the container's /data, load the Rebloom module, and configure Redis' working directory to /data so that the data will actually be persisted there.

$ docker run \
  -p 6379:6379 \
  -v /home/user/data:/data \
  redislabs/redismod \
  --loadmodule /usr/lib/redis/modules/rebloom.so \
  --dir /data

Running the container with a configuration file

Assuming that you have put together a configration file such as the following, and have stored it at /home/user/redis.conf:

requirepass foobared
dir /data
loadmodule /usr/lib/redis/modules/rebloom.so

And then execute something along these lines:

$ docker run \
  -p 6379:6379 \
  -v /home/user/data:/data \
  -v /home/user/redis.conf:/usr/local/etc/redis/redis.conf \
  redislabs/redismod \
  /usr/local/etc/redis/redis.conf

Your dockerized Redis server will start and will be listening at the default Redis port (6379) of the host. In addition, the Redis server will require password authentication ("foobared"), will store the data to the container's /data (that is the host's volume /home/user/data), and will have loaded only the Rebloom module.

License

This Docker image is licensed under the 3-Clause BSD License.

Redis is distributed under the 3-Clause BSD License. The Redis trademark and logos are owned by Redis Labs Ltd, please read the Redis trademark guidelines (https://redis.io/topics/trademark) for our policy about the use of the Redis trademarks and logo.

The copyright of the Redis modules in this container belongs to Redis Labs, and the modules are distributed under the Redis Source Available License.

redismod's People

Contributors

chayim avatar dvirdukhan avatar emmanuelkeller avatar gabiaxel avatar gkorland avatar guyroyse avatar itamarhaber avatar jeffreylovitz avatar rafie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redismod's Issues

Redisgears module issue

Latest master fails with:

redismod-docker-compose-redis-1  | 1:M 10 Nov 2021 09:16:10.554 # Module /var/opt/redislabs/lib/modules/redisgears.so failed to load: /var/opt/redislabs/lib/modules/redisgears.so: cannot open shared object file: No such file or directory
redismod-docker-compose-redis-1  | 1:M 10 Nov 2021 09:16:10.554 # Can't load module from /var/opt/redislabs/lib/modules/redisgears.so: server aborting

Platform is Bullseye. Please let me know if further details are needed.

Docker image crashes on load with GLIBC warning

The docker image pushed today (digest 4c65a20afb15) fails to start for me with this error:

Module /usr/lib/redis/modules/redisearch.so failed to load: /lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.29' not found (required by /usr/lib/redis/modules/redisearch.so)

I foolishly deployed with ':latest' still in the spec, and now my production site is wedged. Any workaround advice is appreciated. If anyone knows the sha of the image just before this one, please post it.

Redisai is broken on info modules

I load image on redislabs/redisai:latest , but I get a crash with redis-cli executes command: info modules
os: centos8.2

== REDIS BUG REPORT START: Cut & paste starting from here ===
1:M 15 Mar 2022 08:05:15.029 # Redis 6.2.6 crashed by signal: 11, si_code: 1
1:M 15 Mar 2022 08:05:15.029 # Accessing address: 0x20
1:M 15 Mar 2022 08:05:15.029 # Crashed running the instruction at: 0x7fa0a63bb810

------ STACK TRACE ------
EIP:
/usr/lib/redis/modules/backends/redisai_onnxruntime/redisai_onnxruntime.so(_ZNK15RAIOrtAllocator11MemoryInUseEv+0x0)[0x7fa0a63bb810]

Backtrace:
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7fa0a731f140]
/usr/lib/redis/modules/backends/redisai_onnxruntime/redisai_onnxruntime.so(_ZNK15RAIOrtAllocator11MemoryInUseEv+0x0)[0x7fa0a63bb810]
/usr/lib/redis/modules/redisai.so(RAI_moduleInfoFunc+0x275)[0x7fa0a65d50b5]
redis-server *:6379(modulesCollectInfo+0x6c)[0x55dfd339c93c]
redis-server *:6379(infoCommand+0x34)[0x55dfd3313a14]
redis-server *:6379(call+0xa1)[0x55dfd330f1a1]
redis-server *:6379(processCommand+0x593)[0x55dfd3310d23]
redis-server *:6379(processInputBuffer+0xf8)[0x55dfd3323ec8]
redis-server *:6379(+0xfbbb8)[0x55dfd33bbbb8]
redis-server *:6379(aeProcessEvents+0x292)[0x55dfd3307e32]
redis-server *:6379(aeMain+0x1d)[0x55dfd330809d]
redis-server *:6379(main+0x316)[0x55dfd33042b6]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7fa0a716cd0a]
redis-server *:6379(_start+0x2a)[0x55dfd330478a]

------ REGISTERS ------
1:M 15 Mar 2022 08:05:15.030 #
RAX:0000000000000000 RBX:00007fa0a67fefa8
RCX:000055dfd345b7bc RDX:0000000000000002
RDI:0000000000000000 RSI:000000002e392e31
RBP:00007fa0a67ff1a0 RSP:00007fff71712418
R8 :00007fa0a5fa0180 R9 :00007fa0a6e00900
R10:00007fa0a7140760 R11:00007fa0a5fa0180
R12:00007fa0a67ff4f8 R13:000055dfd3395100
R14:00007fa0a67ff580 R15:00007fa0a67ff158
RIP:00007fa0a63bb810 EFL:0000000000010206
CSGSFS:002b000000000033
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712427) -> 0000000000000000
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712426) -> 00007fa0a6e22f54
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712425) -> 00007fa0a7140730
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712424) -> 00007fa0a4207048
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712423) -> 00007fa0a6e21a90
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712422) -> 0001210f1ee9b3eb
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712421) -> 00007fff717124e8
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712420) -> 00007fa0a720bb41
1:M 15 Mar 2022 08:05:15.030 # (00007fff7171241f) -> 0000000000000006
1:M 15 Mar 2022 08:05:15.030 # (00007fff7171241e) -> 00007fa0a42000d0
1:M 15 Mar 2022 08:05:15.030 # (00007fff7171241d) -> 00007fa0a4207118
1:M 15 Mar 2022 08:05:15.030 # (00007fff7171241c) -> 00007fff71712480
1:M 15 Mar 2022 08:05:15.030 # (00007fff7171241b) -> 00007fa0a6e21a90
1:M 15 Mar 2022 08:05:15.030 # (00007fff7171241a) -> 00007fff71712670
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712419) -> 000055dfd34fd648
1:M 15 Mar 2022 08:05:15.030 # (00007fff71712418) -> 00007fa0a65d50b5

redismod based on 7.0.4

Hello
I Need to have rejson redisearch and redisgraph based on redis 7.0.4 and then create redismod based on them.

But I cant create Docker image for each of them

For example when I create redisearch based on redis 7 the image succssefully created but when i exec it i have some error in .so files. they dont exist!!!

Correct syntax for loading more than one module in conf file

How should we load multiple modules in the conf file? As in the example provided, only one module is loaded.
Should I put a space between modules or a comma?

loadmodule /usr/lib/redis/modules/rebloom.so /usr/lib/redis/modules/redistimeseries.so

Unable to get redismod Docker Image to work on Raspberry Pi

I am trying to run redislabs/redismod Docker container on Raspberry Pi 3 Model B.
Look like the available Docker image is not ARM compliant.

docker run mplatform/mquery redislabs/redismod
Image: redislabs/redismod
 * Manifest List: No
 * Supports: amd64/linux

I could see Dockerfile.edge available in the GITHUB repo

https://github.com/RedisLabs/redismod/blob/master/Dockerfile.edge

but when I try to build Docker image using buildx on my macOS and run it, it threw error:

docker run mplatform/mquery ajeetraina/redismod
Image: ajeetraina/redismod
 * Manifest List: Yes
 * Supported platforms:
   - linux/arm64
   - linux/arm/v7
docker run -d -p 6379:6379 ajeetraina/redismod
standard_init_go:211: exec user process caused "exec format eror

Update redis version

ZINTERCARD, SINTERCARD, and maybe more commands not working on redislabs/redismod:edge

modules not connected to each other?

I try to set an index for RedisSearch using RedisJSON, but I'm getting an error: invalid type.

FT.CREATE idx1 ON JSON SCHEMA $.name TEXT SORTABLE $.desc TEXT

I looks like the search module doesnt know the json module is installed?

RG.PYEXECUTE no longer working from RedisGears

From the latest docker version the RG.PYEXECUTE command is no longer known whilst other commands are working, has this been changed or removed in the latest updates (4 months ago)

127.0.0.1:6379> RG.PYEXECUTE
(error) ERR unknown command `RG.PYEXECUTE`, with args beginning with:
127.0.0.1:6379>

For reference the RG.DUMPEXECUTIONS works so its assumed the instance is running correctly

127.0.0.1:6379> RG.DUMPEXECUTIONS
(empty array)

Module Upgrades

Having trouble upgrading the modules. Updating the image doesn't seem to bring redisgraph to latest version of its container

AI.SCRIPTSTORE broken

steps to reproduce:

  1. Create the "addtwo.py" file of the example at https://oss.redis.com/redisai/commands/#aiscriptstore
  2. In the example command replace "AI.SCRIPTSET" with "AI.SCRIPTSTORE", because that's obviously a typo
  3. Execute the example command and watch the container become unresponsive
  4. Restart docker container
    5.redis-cli AI.SCRIPTGET myscript >> (error) ERR script key is empty

edit: same problem with AI.SCRIPTSET

Edge Tag is broken - Fails to load RedisGraph - 7ee32f9571ba

➜ docker run -p 6379:6379 --name redismod redislabs/redismod:edge
1:C 21 Oct 2021 20:08:23.688 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 21 Oct 2021 20:08:23.689 # Redis version=6.2.5, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 21 Oct 2021 20:08:23.689 # Configuration loaded
1:M 21 Oct 2021 20:08:23.689 * monotonic clock: POSIX clock_gettime
1:M 21 Oct 2021 20:08:23.690 * Running mode=standalone, port=6379.
1:M 21 Oct 2021 20:08:23.690 # Server initialized
1:M 21 Oct 2021 20:08:23.691 * <ai> Redis version found by RedisAI: 6.2.5 - oss
1:M 21 Oct 2021 20:08:23.691 * <ai> RedisAI version 999999, git_sha=0f99f12a70bd6d5ff8878fc715ef01b049bb5542
1:M 21 Oct 2021 20:08:23.691 * Module 'ai' loaded from /usr/lib/redis/modules/redisai.so
1:M 21 Oct 2021 20:08:23.692 * <search> Redis version found by RedisSearch : 6.2.5 - oss
1:M 21 Oct 2021 20:08:23.692 * <search> RediSearch version 99.99.99 (Git=v1.99.5-305-g309932e4)
1:M 21 Oct 2021 20:08:23.692 * <search> Low level api version 1 initialized successfully
1:M 21 Oct 2021 20:08:23.693 * <search> concurrent writes: OFF, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, max number of search results:  1000000, search pool size: 20, index pool size: 8,
1:M 21 Oct 2021 20:08:23.693 * <search> Initialized thread pool!
1:M 21 Oct 2021 20:08:23.693 * <search> Enabled diskless replication
1:M 21 Oct 2021 20:08:23.693 * Module 'search' loaded from /usr/lib/redis/modules/redisearch.so
1:M 21 Oct 2021 20:08:23.693 # Module /usr/lib/redis/modules/redisgraph.so failed to load: /usr/lib/redis/modules/redisgraph.so: cannot open shared object file: No such file or directory
1:M 21 Oct 2021 20:08:23.693 # Can't load module from /usr/lib/redis/modules/redisgraph.so: server aborting

Redis on K8s, modules are not loading.

Hello RedisLabs community! I've begun using Redis for caching data, and found this repo with all the modules I needed, which was beautiful, congrats on the project.

When I used this with docker build and compose, it worked perfectly, loading the modules according to the expected, but when I tried using this image on a Kubernetes cluster, I was able to spin up the server but the modules were not loaded.

The main module I'm trying to use is RedisJSON, and I've got a unknown command JSON.GET and `unknown command `JSON.SET when attempting to get cached data or cache new data.

The yaml files I'm using are:

# redis-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis-tmo
  labels:
    app: redis
spec:
  selector:
    matchLabels:
      app: redis
      role: master
      tier: backend
  replicas: 1
  template: 
    metadata:
      labels:
        app: redis
        role: master
        tier: backend
    spec:
      containers:
      - name: master
        image: redislabs/redismod:latest
        command:
        - redis-server
        - "/redis-tmo/redis.conf"
        env:
        - name: MASTER
          value: "true"
        volumeMounts:
        - mountPath: /redis-tmo
          name: config
        resources:
          requests:
            cpu: 100m
            memory: 100Mi
        ports:
        - containerPort: 6379
      volumes:
        - name: config
          configMap:
            name: redis-tmo-config
            items:
            - key: redis-config
              path: redis.conf

# redis-loadbalancer.yaml
apiVersion: v1
kind: Service
metadata:
  name: redis-tmo
  labels:
    app: redis
    role: master
    tier: backend
spec:
  type: LoadBalancer
  ports:
  - port: 6379
    targetPort: 6379
  selector:
    app: redis
    role: master
    tier: backend

# redis-configmap.yaml
apiVersion: v1
data:
  redis-config: |-
    maxmemory 2mb
    maxmemory-policy allkeys-lru
kind: ConfigMap
metadata:
  name: redis-tmo-config
  namespace: default

And to run the server on the K8s cluster, I used:

minikube start 
kubectl apply -f [PATH TO FILES] 
minikube dashboard (monitoring the cluster with a GUI) 
minikube tunnel (creates a network route to allow the host to connect to external traffic via a Cluster IP gateway)

Is there anything I missed when writting these files?

PS.:
Running with docker compose up

image

Running with k8s cluster

image

As can be seen on the images, with docker compose the modules are loaded as expected, but not with k8s.

Att,

Felipe Vallim.

Redisai is broken on redismod

my models load into redis fine on redislabs/redisai:latest but I get a std::bad_cast error with redislabs/redismod:latest which pulls redislabs/redisai:latest. Loads fine with redislabs/redisai:edge-cpu-bionic but not redislabs/redismod:edge which pulls redislabs/redisai:edge-cpu-bionic

I copied the entire redismod dockerfile .. changing ARG OSNICK=bullseye to ARG OSNICK=bionic fixes the redisai module but breaks all the other modules with error

Module /usr/lib/redis/modules/redisearch.so failed to load: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/lib/redis/modules/redisearch.so)

removing modules one by one, I get this error for every module except redisai

I tried with all the OS that are on the redis dockerhub.... trusty, xenial, focal etc etc and none work..

Docker run fails : cannot load module redisgraph.so

From a clean docker install I ran the steps as specified in the readme....
docker pull redislabs/redismod docker run -p 6379:6379 redislabs/redismod
which fails with:
Can't load module from /usr/lib/redis/modules/redisgraph.so: server aborting

environment:
Ubuntu 18.04 with
Docker version 18.09.0, build 4d60db4

is this docker image still valid?

Incompatible Redis Version with RedisSearch Module in Edge Release

Description:
The new edge version of the Redismod image has just been published in DockerHub. But the service cannot start as expected due to an incompatible Redis version issue in the RedisSearch module.

Here is the link for the newly released image: https://hub.docker.com/layers/redislabs/redismod/edge/images/sha256-235d60d41900796cca72be9fb2918b9bc6ec0de2751408ca9e2c355313db7779?context=explore

Steps to Reproduce:

  1. docker run -p 6379:6379 redislabs/redismod:edge

Expected Behavior:
The Redis service is up.

Actual Behavior:
The container exits due to an incompatible Redis version issue in the RedisSearch module.

Environment:

  • OS: Ubuntu 20.04.6 LTS (Focal Fossa)
  • Docker: 20.10.25

Screenshots:
Screenshot 2023-08-22 at 11 54 37

Additional Context:

docker inspect redislabs/redismod:edge
[
    {
        "Id": "sha256:9402ab6e5273621653bc99bbd51dac73f94ba6c3ee1027f78403e4dcf7d39aba",
        "RepoTags": [
            "redislabs/redismod:edge"
        ],
        "RepoDigests": [
            "redislabs/redismod@sha256:235d60d41900796cca72be9fb2918b9bc6ec0de2751408ca9e2c355313db7779"
        ],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2023-08-22T12:53:33.235902634Z",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "6379/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "REDIS_MODULES=/var/opt/redislabs/lib/modules",
                "LD_LIBRARY_PATH=/usr/lib/redis/modules",
                "REDISGRAPH_DEPS=libgomp1 git",
                "REDISTIMESERIES_DEPS=libssl-dev"
            ],
            "Cmd": [
                "--loadmodule",
                "/usr/lib/redis/modules/redisai.so",
                "--loadmodule",
                "/usr/lib/redis/modules/redisearch.so",
                "--loadmodule",
                "/usr/lib/redis/modules/redisgraph.so",
                "--loadmodule",
                "/usr/lib/redis/modules/redistimeseries.so",
                "--loadmodule",
                "/usr/lib/redis/modules/rejson.so",
                "--loadmodule",
                "/usr/lib/redis/modules/redisbloom.so",
                "--loadmodule",
                "/var/opt/redislabs/lib/modules/redisgears.so",
                "Plugin",
                "/var/opt/redislabs/modules/rg/plugin/gears_python.so",
                "Plugin",
                "/var/opt/redislabs/modules/rg/plugin/gears_jvm.so",
                "JvmOptions",
                "-Djava.class.path=/var/opt/redislabs/modules/rg/gear_runtime-jar-with-dependencies.jar",
                "JvmPath",
                "/var/opt/redislabs/modules/rg/OpenJDK/jdk-11.0.9.1+1/"
            ],
            "ArgsEscaped": true,
            "Image": "",
            "Volumes": {
                "/data": {}
            },
            "WorkingDir": "/data",
            "Entrypoint": [
                "redis-server"
            ],
            "OnBuild": null,
            "Labels": null
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 2311023231,
        "VirtualSize": 2311023231,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/99de41bcf5760834b44a51488e55c4c0bded16a8056ed2063e6d53c9bc78cad3/diff:/var/lib/docker/overlay2/4387321e9a4f2a83948fc9e6fc987bdcc4ce443a46bc32c12b15ae223abae91b/diff:/var/lib/docker/overlay2/465e30915afcef14663d743e7dd9ba1f3b5a4ff8f93bc78d643d284c70fadc1c/diff:/var/lib/docker/overlay2/02fe168007294207c33dce018aca5b473dd2c6ab2147f0ddd34e18923ab4eb72/diff:/var/lib/docker/overlay2/c81aec73919c3e77ad5b9b77fad73f97a4b9547cadfe712e70186322aaeac415/diff:/var/lib/docker/overlay2/a330ced93156f623e534b06c21147d6b19ff85642c69549d7bf29a40bf272641/diff:/var/lib/docker/overlay2/bbb217d4645a24370b9dfe34c4060a158ef1c9cd6bcebd6c06be4888a5219fe3/diff:/var/lib/docker/overlay2/1368d5aeb4111973b47a41f24de910bf57648fc098b6d302659183d5542d971b/diff:/var/lib/docker/overlay2/377652c3078cfa6959c83f14f5b83ba4ceab14e346c9441275fad2bf8dff77d5/diff:/var/lib/docker/overlay2/0458ba9718c14702a3cdda50d6e58ada5ebf277472b6de889e948349005e620e/diff:/var/lib/docker/overlay2/bee10de75440cc222125b5ca2fbccbb1f86d28277ee1ae8a907d270c224706fd/diff:/var/lib/docker/overlay2/1e2ea3e7753773993e10398d5d897f0d1fc0b4ba8958be34785a6a2d60a54372/diff:/var/lib/docker/overlay2/d7a7ffb94da75f624bed90ffb754232d3e33d2f4d9a3fd25acd7c89769512070/diff:/var/lib/docker/overlay2/dc73e467330a73865019a695594747630d065353e5dae7dbf0920d169e75ba4a/diff:/var/lib/docker/overlay2/07cdf1a5cb2d9ef28b9b18f44acda3004f7053d15aacc4ddaf3804720e946ae4/diff:/var/lib/docker/overlay2/1d14cf0cf9ddb244e7b66fc0ba927515e4b3c57ea812f25aeb12cf4f3779cad1/diff:/var/lib/docker/overlay2/5abe953e24650192cb428981c1c645b46313faffa6d13258455de954a8e6c923/diff:/var/lib/docker/overlay2/7b313df1cf3126fceb4ce9d50c75c05acbf75e3d83e128bf866301f323687fab/diff:/var/lib/docker/overlay2/d6038ae82accf361403c2a4a2725833311f0aedee5444476c68cf54c410b1ad9/diff:/var/lib/docker/overlay2/98ff296851e247be0ec386177c91639b9fd0035e0458fe9c8a4c53fd0b28ca4e/diff:/var/lib/docker/overlay2/7e7cde37e2d764c3e63b6fb91ded59bf509037adaafc43b6523602a155e76733/diff:/var/lib/docker/overlay2/b1b4e06bd9827cf35c068dea6556034d422f2ae5741806cf0418a9f0bf375c74/diff:/var/lib/docker/overlay2/b6290064d27a4d1bb8e3d12e7b39751989f361ae389c2119bca2312bdb1c71d4/diff:/var/lib/docker/overlay2/40fe64fa147584492325b755e3a39204fb82ffaf52b3c745a4c00ba538ccbcbf/diff:/var/lib/docker/overlay2/19b7d619ca7da146d88bedd1f45dc5ba3cad7370ae9b496bd4ea0e0c805d7a10/diff:/var/lib/docker/overlay2/5e5e0c66f2efbd5d418189abab71146b30718a189c88d18225fa5879c07de1cd/diff:/var/lib/docker/overlay2/a039de97eba9d95d97ee891f39fb719c182cb260468425ce7f1fd8e429046a1c/diff:/var/lib/docker/overlay2/d6b20953344c227a7dfdf34fda0c088d169c316466a0045a41c9606afd7b28e0/diff:/var/lib/docker/overlay2/620eba2852c88b21a17056f4f344b2d030c23dae42f7335d079ae500fa933a57/diff:/var/lib/docker/overlay2/5ecc9939360c235000cafc9dc6b94ad91c84d81d3aac1f0168ea0cf1a616d5c9/diff:/var/lib/docker/overlay2/2e5e44ed95c5bebc51e37501fead7a75daa32278b4b1761c580bf71b0ad0d08c/diff",
                "MergedDir": "/var/lib/docker/overlay2/85e1657682616a3ad92be16870464207f070b2fb1ec497e585e4cae8a6dd773d/merged",
                "UpperDir": "/var/lib/docker/overlay2/85e1657682616a3ad92be16870464207f070b2fb1ec497e585e4cae8a6dd773d/diff",
                "WorkDir": "/var/lib/docker/overlay2/85e1657682616a3ad92be16870464207f070b2fb1ec497e585e4cae8a6dd773d/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:a548c9107c3a8e63d242fb718f180eecb8b6e36cd41942c24883ddb58639674c",
                "sha256:a9cb73be304a3d7006ff2ce9fb49cbfb6aa3246b775a364d9bf9b12c3450436d",
                "sha256:7800be1fb0dca795511e1fec484b0a4ad37289ae31257f3920cfb001f67d1b15",
                "sha256:ef8fe144898fe76f44262814f51822af7273d6b079fbcc9f3318dc5d44886028",
                "sha256:da4299e5dbe7684c0b9a47e1c9b0c71d1669f9653d591f9644433383af281dfd",
                "sha256:86e13272e48563ce41af8f7226fd5b57410bac80f257a14df0e05943bd7b4a93",
                "sha256:40340531273b575143a7506a5119fc4add02eea042d5d976685d80bfcc931fe7",
                "sha256:6a9e3a382c05747ef384f43bdae3d478bd46b9055f634973b5ba05f3d538df1c",
                "sha256:83d59a1ac0e592cc87edfd66d1eb4d598bd3ceab634520d8e362d7f4876199c5",
                "sha256:83d59a1ac0e592cc87edfd66d1eb4d598bd3ceab634520d8e362d7f4876199c5",
                "sha256:354d6d615993a4ce62e1e0323470ad73856099b1b31945b1e0a73bf795e161f6",
                "sha256:dc935b996b5a786d77426baf704c97801d64e63697e6463527cfa969d99e504c",
                "sha256:de58688a413ba2b0241109e539addbc1b4f187cbc4df0f38a1408f658b3b139c",
                "sha256:58e3a4fe2a2f9dd5a6afbc91d37391158a08fabfd78fa58ec020a1e577eecf08",
                "sha256:4b2f1a0a97b7ff41a55cae390846551e0bfc815cd6ad7e68aa7601fba365cd45",
                "sha256:555b3e64ede5740dbb82c1f4fafd1d3c612d0a22fa71074eeb27fff66a065974",
                "sha256:9b8b2addb918ed213a0ee757ef4306754d716f3262b5c0d2263e87df8ee478da",
                "sha256:fc20d2add2fabe184035a4bae48b6d31245bcbc16e849fafb823fe9c7e97d6ae",
                "sha256:639afe911a42b73eebbb3eb8db6f24a82e0e68464d8984cae1520435ca3745f4",
                "sha256:56cab7ede7e5e8cb85d926be6fede54153f986d1cc0ff1d6a146494d46bd2afd",
                "sha256:d7891bacead2b37eec83cfad3d638f750e5cab6d8a45c5d739d98ec7a43b822b",
                "sha256:7355b7bcb4c7c85bcc86d5e42fd88449231fe6866b02bc1802528e48917dd902",
                "sha256:bcc07eaf7cd1206c7d24d35330e8eed211f7e6987b666359f0b5f8ad273f8dc3",
                "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
                "sha256:7438b371d432890683c033783e1bb738143955722d7475e5c3e131c3e86f6c79",
                "sha256:2a17264cfa5e641fc9d898675e4fea6b3c710695cfc66927bae66994fcab4f87",
                "sha256:2135b1e3892e81e1c2521846f6a1ed7f4d98c68c4389f2310e6f7fc77052f6ef",
                "sha256:26089caebc58fbd49cf3650ba78534553dcca2f94a93f68ef2a3b1a961c0b5d6",
                "sha256:400525d07a0b98a884fcb3dbb9aac48f68f9c6519861ae1ff76d0d0f16ba5ebc",
                "sha256:4ad92f5120c968ca674dd2c7d6267bcb1db03e9af302de2389bf01c02092aa39",
                "sha256:a273335fdece24e70e1945aed5ff6a34b69cb811376191b44e07c02e2760da7a",
                "sha256:e86bf81ac9d80319052834a30074613295b2117928443e940184082b7a52b835"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

Possible Solution:

  1. Update the Redis version to 7.
  2. Downgrade the RedisSearch module version.

Enable versioning

Hey, great job 👍
Can you please provide versioning for this image?
I think version 4 and 5 will be a good starting point.

ARM Support

Hi and thanks for this image! I found myself needing Redis+RediSearch+Redis JSON+Gears and this image was a godsent.

My only issue is that on my local machine, an M1 Macbook Pro, RedisMod crashes pretty reproducibly, whereas on an Intel Macbook Pro it runs as expected.
I think it has to do with the fact that there's no native ARM build.

I'm running it like this

docker run \
  -p 6379:6379 \
  -v `pwd`:/data \
  -v `pwd`/docker-redis.conf:/usr/local/etc/redis/redis.conf \
  --platform linux/amd64 \
  redislabs/redismod \
  /usr/local/etc/redis/redis.conf

Notice the --platform linux/amd64 \ which I have to specify, otherwise I get

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
docker: Error response from daemon: platform linux/arm64/v8 not supported.

The docker-redis.conf looks like this

# Persistence defaults
save 60 5000

# Load necessary modules
loadmodule /usr/lib/redis/modules/rejson.so
loadmodule /usr/lib/redis/modules/redisearch.so
loadmodule /usr/lib/redis/modules/redisgraph.so
loadmodule /usr/lib/redis/modules/redisgears.so Plugin /var/opt/redislabs/modules/rg/plugin/gears_python.so


# Generated by CONFIG REWRITE
protected-mode no
user default on nopass ~* &* +@all

In my application I'm using Redis Gears to add a new property to all my Json documents in Redis (a few hundred documents) and then I'm updating the RedisSearch index to include that field.

It always fails with this error on my M1 Macbook Pro:

=== REDIS BUG REPORT START: Cut & paste starting from here ===
1:M 08 Jan 2023 15:48:00.577 # Redis 6.2.6 crashed by signal: 11, si_code: 1
1:M 08 Jan 2023 15:48:00.577 # Accessing address: 0x620008
1:M 08 Jan 2023 15:48:00.577 # Crashed running the instruction at: 0x4005eae9c4

------ STACK TRACE ------
EIP:
/usr/lib/redis/modules/redisgraph.so(DocTable_Free+0x34)[0x4005eae9c4]

Backtrace:
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x4002158140]
/usr/lib/redis/modules/redisgraph.so(DocTable_Free+0x34)[0x4005eae9c4]
/usr/lib/redis/modules/redisgraph.so(IndexSpec_FreeInternals+0x9b)[0x4005e52c8b]
/usr/lib/redis/modules/redisgraph.so(RediSearch_DropIndex+0x13)[0x4005e4dc13]
/usr/lib/redis/modules/redisgraph.so(Index_Construct+0x1f)[0x4004d5c8cf]
/usr/lib/redis/modules/redisgraph.so(+0x1f507f)[0x4004d2407f]
/usr/lib/redis/modules/redisgraph.so(+0x245da4)[0x4004d74da4]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8ea7)[0x400214cea7]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x4002263def]

------ REGISTERS ------
1:M 08 Jan 2023 15:48:00.581 # 
RAX:0000000000002780 RBX:0000000000620000
RCX:0000000000000001 RDX:0000000000000003
RDI:000000000061ffc8 RSI:0000004000000000
RBP:0000000000000278 RSP:000000400a4b5430
R8 :0000000000000128 R9 :0000004002600900
R10:000000400a4b5ec8 R11:0000000000000001
R12:000000403628b208 R13:000000405109c000
R14:000000400e1bcaa0 R15:0000004036281000
RIP:0000004005eae9c4 EFL:0000000000000206
CSGSFS:002b000000000033
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b543f) -> 0000000000000000
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b543e) -> 000000401a827310
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b543d) -> 0000004051092038
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b543c) -> 000000405109c000
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b543b) -> 0000004004d5c8cf
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b543a) -> 0000004051092038
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5439) -> 0000004005e4dc13
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5438) -> 000000400e1bcaa0
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5437) -> 000000405109c000
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5436) -> 000000403f295038
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5435) -> 000000401a827310
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5434) -> 000000403628b180
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5433) -> 0000004005e52c8b
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5432) -> 000000403f295038
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5431) -> 000000403628b180
1:M 08 Jan 2023 15:48:00.581 # (000000400a4b5430) -> 000000400646dbc0

------ INFO OUTPUT ------
# Server
redis_version:6.2.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:9c335ca9779faba5
redis_mode:standalone
os:Linux 5.15.49-linuxkit x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:10.2.1
process_id:1
process_supervised:no
run_id:44be8be77c77ec3c262115a20f0a977abade217c
tcp_port:6379
server_time_usec:1673192880574820
uptime_in_seconds:16
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:12248496
executable:/data/redis-server
config_file:/usr/local/etc/redis/redis.conf
io_threads_active:0

# Clients
connected_clients:10
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:455
client_recent_max_output_buffer:0
blocked_clients:1
tracking_clients:0
clients_in_timeout_table:0

# Memory
used_memory:16755232
used_memory_human:15.98M
used_memory_rss:0
used_memory_rss_human:0B
used_memory_peak:16831848
used_memory_peak_human:16.05M
used_memory_peak_perc:99.54%
used_memory_overhead:9480206
used_memory_startup:9243472
used_memory_dataset:7275026
used_memory_dataset_perc:96.85%
allocator_allocated:17660248
allocator_active:19320832
allocator_resident:22544384
total_system_memory:4124385280
total_system_memory_human:3.84G
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.09
allocator_frag_bytes:1660584
allocator_rss_ratio:1.17
allocator_rss_bytes:3223552
rss_overhead_ratio:0.00
rss_overhead_bytes:-22544384
mem_fragmentation_ratio:0.00
mem_fragmentation_bytes:-16619856
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:205110
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0

# Persistence
loading:0
current_cow_size:0
current_cow_size_age:0
current_fork_perc:0.00
current_save_keys_processed:0
current_save_keys_total:0
rdb_changes_since_last_save:585
rdb_bgsave_in_progress:0
rdb_last_save_time:1673192864
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:0
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
aof_last_cow_size:0
module_fork_in_progress:0
module_fork_last_cow_size:0

# Stats
total_connections_received:10
total_commands_processed:1235
instantaneous_ops_per_sec:1
total_net_input_bytes:3726
total_net_output_bytes:13122
instantaneous_input_kbps:0.11
instantaneous_output_kbps:0.07
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:1
evicted_keys:0
keyspace_hits:1761
keyspace_misses:5
pubsub_channels:1
pubsub_patterns:0
latest_fork_usec:0
total_forks:0
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
total_error_replies:10
dump_payload_sanitizations:0
total_reads_processed:22
total_writes_processed:25
io_threaded_reads_processed:0
io_threaded_writes_processed:0

# Replication
role:master
connected_slaves:0
master_failover_state:no-failover
master_replid:6c1515e51f11e042170112e9ec841acaf04cae49
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:0.214587
used_cpu_user:1.225623
used_cpu_sys_children:0.000000
used_cpu_user_children:0.000000
used_cpu_sys_main_thread:0.008020
used_cpu_user_main_thread:0.178458

# Modules
module:name=rg,ver=10204,api=1,filters=1,usedby=[rg],using=[rg],options=[]
module:name=graph,ver=20815,api=1,filters=0,usedby=[],using=[ReJSON],options=[]
module:name=search,ver=999999,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]
module:name=ReJSON,ver=20011,api=1,filters=0,usedby=[search|graph],using=[],options=[handle-io-errors]

# Commandstats
cmdstat_rg.pyexecute:calls=1,usec=256707,usec_per_call=256707.00,rejected_calls=0,failed_calls=0
cmdstat_graph.QUERY:calls=5,usec=206738,usec_per_call=41347.60,rejected_calls=0,failed_calls=0
cmdstat_select:calls=4,usec=222,usec_per_call=55.50,rejected_calls=0,failed_calls=0
cmdstat_info:calls=17,usec=3251,usec_per_call=191.24,rejected_calls=0,failed_calls=0
cmdstat_config:calls=11,usec=2438,usec_per_call=221.64,rejected_calls=0,failed_calls=0
cmdstat_cluster:calls=5,usec=180,usec_per_call=36.00,rejected_calls=0,failed_calls=5
cmdstat_echo:calls=10,usec=248,usec_per_call=24.80,rejected_calls=0,failed_calls=0
cmdstat_get:calls=5,usec=447,usec_per_call=89.40,rejected_calls=0,failed_calls=0
cmdstat_json.get:calls=581,usec=16688,usec_per_call=28.72,rejected_calls=0,failed_calls=0
cmdstat_json.set:calls=581,usec=31328,usec_per_call=53.92,rejected_calls=0,failed_calls=0
cmdstat_subscribe:calls=5,usec=574,usec_per_call=114.80,rejected_calls=0,failed_calls=0
cmdstat_client:calls=10,usec=434,usec_per_call=43.40,rejected_calls=0,failed_calls=0

# Errorstats
errorstat_ERR:count=10

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=585,expires=0,avg_ttl=0

------ CLIENT LIST OUTPUT ------
id=15 addr=172.17.0.1:60934 laddr=172.17.0.2:6379 fd=16 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=7 idle=0 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=40954 argv-mem=69 obl=0 oll=0 omem=0 tot-mem=61541 events=r cmd=graph.QUERY user=default redir=-1
id=16 addr=172.17.0.1:60950 laddr=172.17.0.2:6379 fd=17 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=7 idle=6 flags=P db=0 sub=1 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=subscribe user=default redir=-1
id=17 addr=172.17.0.1:60966 laddr=172.17.0.2:6379 fd=18 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=6 idle=6 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=info user=default redir=-1
id=18 addr=172.17.0.1:60970 laddr=172.17.0.2:6379 fd=19 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=6 idle=6 flags=P db=0 sub=1 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=subscribe user=default redir=-1
id=19 addr=172.17.0.1:60986 laddr=172.17.0.2:6379 fd=20 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=6 idle=6 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=info user=default redir=-1
id=20 addr=172.17.0.1:61000 laddr=172.17.0.2:6379 fd=21 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=6 idle=6 flags=P db=0 sub=1 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=subscribe user=default redir=-1
id=21 addr=172.17.0.1:61014 laddr=172.17.0.2:6379 fd=22 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=6 idle=6 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=info user=default redir=-1
id=22 addr=172.17.0.1:61022 laddr=172.17.0.2:6379 fd=23 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=6 idle=6 flags=P db=0 sub=1 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=subscribe user=default redir=-1
id=23 addr=172.17.0.1:61034 laddr=172.17.0.2:6379 fd=24 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=6 idle=3 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=rg.pyexecute user=default redir=-1
id=24 addr=172.17.0.1:61036 laddr=172.17.0.2:6379 fd=25 name=Mariuss-M-Pro(SE.Redis-v2.6.48.48654) age=6 idle=6 flags=P db=0 sub=1 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=subscribe user=default redir=-1

------ MODULES INFO OUTPUT ------
# rg
rg_nexecutions:0
rg_nregistrations:0

# rg_regisrations

# rg_plugins
rg_GearsPythonPlugin:version=10000

# rg_python_stats
rg_TotalAllocated:31961672
rg_PeakAllocated:8576320
rg_CurrAllocated:8515464

# rg_python_requirements

# rg_python_sessions

# graph_executing commands
graph_command:GRAPH.QUERY CREATE INDEX ON :mentioned(RelationshipType)

# ReJSON_trace
ReJSON_trace:   0: redis_module::base_info_func
   1: rejson::__info_func
   2: modulesCollectInfo
             at /usr/src/redis/src/module.c:7078:9
   3: logModulesInfo
             at /usr/src/redis/src/debug.c:1598:22
   4: printCrashReport
             at /usr/src/redis/src/debug.c:1849:5
      sigsegvHandler
             at /usr/src/redis/src/debug.c:1831:5
   5: <unknown>
   6: DocTable_Free
   7: IndexSpec_FreeInternals
   8: RediSearch_DropIndex
   9: Index_Construct
  10: _ExecuteQuery
  11: thread_do
  12: start_thread
  13: clone


------ FAST MEMORY TEST ------
1:M 08 Jan 2023 15:48:00.636 # main thread terminated
1:M 08 Jan 2023 15:48:00.637 # Bio thread for job type #0 terminated
1:M 08 Jan 2023 15:48:00.637 # Bio thread for job type #1 terminated
1:M 08 Jan 2023 15:48:00.637 # Bio thread for job type #2 terminated

Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.

------ DUMPING CODE AROUND EIP ------
Symbol: DocTable_Free (base: 0x4005eae990)
Module: /usr/lib/redis/modules/redisgraph.so (base 0x4004b2f000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=0x4005eae990 -D -b binary -m i386:x86-64 /tmp/dump.bin
------
1:M 08 Jan 2023 15:48:00.639 # dump of function (hexdump of 180 bytes):
41544989fc5549837c24180053488b7f30743f31ed0f1f004889e848c1e004488b1c074885db741f0f1f840000000000488d7bc8488b5b08e8c3edffff4885db75ee498b7c24304883c50149396c241877c6488b0517d95600ff105b498d7c24385d415ce987ffffff0f1f8000000000488b3f488d0db6e9ffff0fb7d2e9fe21feff0f1f4000662e0f1f840000000000415641554989d641544c8d673855534889fd4989f54c89e7e833f5ffff4885c00f841a01
Function at 0x4005ead790 is DMD_Free
Function at 0x4005eadf70 is DocIdMap_Get

=== REDIS BUG REPORT END. Make sure to include from START to END. ===

RedisAI is not loaded, it is not possible to use AI interface

Hello. I'm trying to call redisai from redisgears using the built-in redisAI library, but this error
appears.

['Traceback (most recent call last):\n', '  File "<string>", line 4, in <module>\n', 'spam.error: RedisAI is not loaded, it is not possible to use AI interface.\n']

I saw the use of the redisAI library in your examples https://github.com/RedisGears/AnimalRecognitionDemo.

Here is the command I'm trying to call from the gear

img_ba = bytearray(np_img.tobytes())
image_tensor = redisAI.createTensorFromBlob('FLOAT', [1, im_height, im_width, 3], img_ba)

Crash when emulating image on Apple m1 Max chip

I can run the image on my Intel MacBook without any issues. Any help would be much appreciated.

=== REDIS BUG REPORT START: Cut & paste starting from here ===

1:M 26 Nov 2021 23:51:07.075 # Redis 6.2.6 crashed by signal: 11, si_code: 1

1:M 26 Nov 2021 23:51:07.075 # Accessing address: 0x6c20666f657079

1:M 26 Nov 2021 23:51:07.075 # Crashed running the instruction at: 0x400004a003


------ STACK TRACE ------

EIP:

/usr/local/bin/redis-server *:6379(dictFind+0x83)[0x400004a003]


Backtrace:

/lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x4002158140]

/usr/local/bin/redis-server *:6379(dictFind+0x83)[0x400004a003]

/usr/local/bin/redis-server *:6379(lookupKey+0x15)[0x400006da55]

/usr/local/bin/redis-server *:6379(lookupKeyReadWithFlags+0x55)[0x4000070235]

/usr/local/bin/redis-server *:6379(sinterGenericCommand+0x8e)[0x40000867ee]

/usr/local/bin/redis-server *:6379(call+0xa1)[0x400004f1a1]

/usr/local/bin/redis-server *:6379(processCommand+0x593)[0x4000050d23]

/usr/local/bin/redis-server *:6379(processInputBuffer+0xf8)[0x4000063ec8]

/usr/local/bin/redis-server *:6379(+0xfbbb8)[0x40000fbbb8]

/usr/local/bin/redis-server *:6379(aeProcessEvents+0x292)[0x4000047e32]

/usr/local/bin/redis-server *:6379(aeMain+0x1d)[0x400004809d]

/usr/local/bin/redis-server *:6379(main+0x316)[0x40000442b6]

/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x400218cd0a]

/usr/local/bin/redis-server *:6379(_start+0x2a)[0x400004478a]


------ REGISTERS ------

1:M 26 Nov 2021 23:51:07.085 # 

RAX:0000000000000000 RBX:000000400293c600

RCX:0000000000000062 RDX:ffffffffffffffe0

RDI:000000400e4c4d33 RSI:000000400eaaccbb

RBP:000000400293c630 RSP:0000004001c3f6e0

R8 :000000400019b24c R9 :000000400e4c4d33

R10:0000000000000000 R11:00000040022f8d80

R12:696c20666f657079 R13:e91bfd88324f6004

R14:000000400293c650 R15:000000400e4c4d13

RIP:000000400004a003 EFL:0000000000000202

CSGSFS:002b000000000033

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6ef) -> 00000040000867ee

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6ee) -> 000000400e65a0d8

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6ed) -> 000000400e611100

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6ec) -> 000000400e635bb8

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6eb) -> 0000004000070235

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6ea) -> 000000400e4c4d00

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e9) -> 0000004002a3f048

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e8) -> 0000004002a3f048

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e7) -> 000000400006da55

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e6) -> 0000000000000000

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e5) -> 0000001e999be240

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e4) -> 0000000000000001

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e3) -> 000000400e4c4d00

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e2) -> 0000000000000000

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e1) -> 0000000000000000

1:M 26 Nov 2021 23:51:07.085 # (0000004001c3f6e0) -> 0000000000000001


------ INFO OUTPUT ------

# Server

redis_version:6.2.6

redis_git_sha1:00000000

redis_git_dirty:0

redis_build_id:6d6062dbdaddf972

redis_mode:standalone

os:Linux 5.10.47-linuxkit x86_64

arch_bits:64

multiplexing_api:epoll

atomicvar_api:atomic-builtin

gcc_version:10.2.1

process_id:1

process_supervised:no

run_id:4beda3c253269ec31f660ea80b7b4b691cbaea26

tcp_port:6379

server_time_usec:1637970667074750

uptime_in_seconds:185645

uptime_in_days:2

hz:10

configured_hz:10

lru_clock:10580714

executable:/usr/local/bin/redis-server

config_file:

io_threads_active:0


# Clients

connected_clients:11

cluster_connections:0

maxclients:10000

client_recent_max_input_buffer:72

client_recent_max_output_buffer:0

blocked_clients:0

tracking_clients:0

clients_in_timeout_table:0


# Memory

used_memory:10242016

used_memory_human:9.77M

used_memory_rss:0

used_memory_rss_human:0B

used_memory_peak:10260752

used_memory_peak_human:9.79M

used_memory_peak_perc:99.82%

used_memory_overhead:6394032

used_memory_startup:6036264

used_memory_dataset:3847984

used_memory_dataset_perc:91.49%

allocator_allocated:10331168

allocator_active:10706944

allocator_resident:13664256

total_system_memory:2084888576

total_system_memory_human:1.94G

used_memory_lua:40960

used_memory_lua_human:40.00K

used_memory_scripts:880

used_memory_scripts_human:880B

number_of_cached_scripts:2

maxmemory:0

maxmemory_human:0B

maxmemory_policy:noeviction

allocator_frag_ratio:1.04

allocator_frag_bytes:375776

allocator_rss_ratio:1.28

allocator_rss_bytes:2957312

rss_overhead_ratio:0.00

rss_overhead_bytes:-13664256

mem_fragmentation_ratio:0.00

mem_fragmentation_bytes:-10201560

mem_not_counted_for_evict:0

mem_replication_backlog:0

mem_clients_slaves:0

mem_clients_normal:225696

mem_aof_buffer:0

mem_allocator:jemalloc-5.1.0

active_defrag_running:0

lazyfree_pending_objects:0

lazyfreed_objects:0


# Persistence

loading:0

current_cow_size:0

current_cow_size_age:0

current_fork_perc:0.00

current_save_keys_processed:0

current_save_keys_total:0

rdb_changes_since_last_save:7941

rdb_bgsave_in_progress:0

rdb_last_save_time:1637970638

rdb_last_bgsave_status:ok

rdb_last_bgsave_time_sec:0

rdb_current_bgsave_time_sec:-1

rdb_last_cow_size:4202496

aof_enabled:0

aof_rewrite_in_progress:0

aof_rewrite_scheduled:0

aof_last_rewrite_time_sec:-1

aof_current_rewrite_time_sec:-1

aof_last_bgrewrite_status:ok

aof_last_write_status:ok

aof_last_cow_size:0

module_fork_in_progress:0

module_fork_last_cow_size:0


# Stats

total_connections_received:723

total_commands_processed:49123

instantaneous_ops_per_sec:1317

total_net_input_bytes:5042424

total_net_output_bytes:8852247

instantaneous_input_kbps:79.93

instantaneous_output_kbps:3.43

rejected_connections:0

sync_full:0

sync_partial_ok:0

sync_partial_err:0

expired_keys:0

expired_stale_perc:0.00

expired_time_cap_reached_count:0

expire_cycle_cpu_milliseconds:1893

evicted_keys:0

keyspace_hits:8748

keyspace_misses:21347

pubsub_channels:0

pubsub_patterns:0

latest_fork_usec:973

total_forks:42

migrate_cached_sockets:0

slave_expires_tracked_keys:0

active_defrag_hits:0

active_defrag_misses:0

active_defrag_key_hits:0

active_defrag_key_misses:0

tracking_total_keys:0

tracking_total_items:0

tracking_total_prefixes:0

unexpected_error_replies:0

total_error_replies:2

dump_payload_sanitizations:0

total_reads_processed:36569

total_writes_processed:36547

io_threaded_reads_processed:0

io_threaded_writes_processed:0


# Replication

role:master

connected_slaves:0

master_failover_state:no-failover

master_replid:6ec4ed2ea40294bcac6ffe269507fa0c4911fcfa

master_replid2:0000000000000000000000000000000000000000

master_repl_offset:0

second_repl_offset:-1

repl_backlog_active:0

repl_backlog_size:1048576

repl_backlog_first_byte_offset:0

repl_backlog_histlen:0


# CPU

used_cpu_sys:625.427665

used_cpu_user:876.185829

used_cpu_sys_children:0.482749

used_cpu_user_children:2.112532

used_cpu_sys_main_thread:222.776632

used_cpu_user_main_thread:244.834398


# Modules

module:name=rg,ver=10008,api=1,filters=0,usedby=[],using=[ai],options=[]

module:name=ai,ver=10205,api=1,filters=0,usedby=[rg],using=[],options=[handle-io-errors]

module:name=ReJSON,ver=20004,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]

module:name=timeseries,ver=10410,api=1,filters=0,usedby=[],using=[],options=[]

module:name=search,ver=20205,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]

module:name=graph,ver=20411,api=1,filters=0,usedby=[],using=[],options=[]

module:name=bf,ver=20206,api=1,filters=0,usedby=[],using=[],options=[]


# Commandstats

cmdstat_hincrby:calls=84,usec=3367,usec_per_call=40.08,rejected_calls=0,failed_calls=0

cmdstat_evalsha:calls=6272,usec=709683,usec_per_call=113.15,rejected_calls=0,failed_calls=2

cmdstat_zrange:calls=1,usec=369,usec_per_call=369.00,rejected_calls=0,failed_calls=0

cmdstat_get:calls=3135,usec=26936,usec_per_call=8.59,rejected_calls=0,failed_calls=0

cmdstat_info:calls=732,usec=701322,usec_per_call=958.09,rejected_calls=0,failed_calls=0

cmdstat_smembers:calls=6420,usec=63561,usec_per_call=9.90,rejected_calls=0,failed_calls=0

cmdstat_zrevrangebylex:calls=2080,usec=274484,usec_per_call=131.96,rejected_calls=0,failed_calls=0

cmdstat_eval:calls=2,usec=10807,usec_per_call=5403.50,rejected_calls=0,failed_calls=0

cmdstat_hset:calls=12,usec=623,usec_per_call=51.92,rejected_calls=0,failed_calls=0

cmdstat_zcard:calls=5,usec=221,usec_per_call=44.20,rejected_calls=0,failed_calls=0

cmdstat_config:calls=1,usec=711,usec_per_call=711.00,rejected_calls=0,failed_calls=0

cmdstat_json.set:calls=895,usec=691069,usec_per_call=772.14,rejected_calls=0,failed_calls=0

cmdstat_scard:calls=6,usec=143,usec_per_call=23.83,rejected_calls=0,failed_calls=0

cmdstat_sscan:calls=16,usec=288,usec_per_call=18.00,rejected_calls=0,failed_calls=0

cmdstat_exists:calls=3137,usec=15787,usec_per_call=5.03,rejected_calls=0,failed_calls=0

cmdstat_zrangebylex:calls=9910,usec=449685,usec_per_call=45.38,rejected_calls=0,failed_calls=0

cmdstat_hget:calls=48,usec=930,usec_per_call=19.38,rejected_calls=0,failed_calls=0

cmdstat_del:calls=6760,usec=125207,usec_per_call=18.52,rejected_calls=0,failed_calls=0

cmdstat_zadd:calls=834,usec=42360,usec_per_call=50.79,rejected_calls=0,failed_calls=0

cmdstat_zrevrangebyscore:calls=2,usec=168,usec_per_call=84.00,rejected_calls=0,failed_calls=0

cmdstat_set:calls=3138,usec=160308,usec_per_call=51.09,rejected_calls=0,failed_calls=0

cmdstat_sadd:calls=815,usec=13550,usec_per_call=16.63,rejected_calls=0,failed_calls=0

cmdstat_json.get:calls=3885,usec=1934489,usec_per_call=497.94,rejected_calls=0,failed_calls=0

cmdstat_select:calls=728,usec=5587,usec_per_call=7.67,rejected_calls=0,failed_calls=0

cmdstat_zrem:calls=205,usec=9671,usec_per_call=47.18,rejected_calls=0,failed_calls=0


# Errorstats

errorstat_NOSCRIPT:count=2


# Cluster

cluster_enabled:0


# Keyspace

db1:keys=2049,expires=2,avg_ttl=852


------ CLIENT LIST OUTPUT ------

id=32 addr=172.17.0.1:59636 laddr=172.17.0.2:6379 fd=19 name= age=185601 idle=185434 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20552 events=r cmd=zrevrangebyscore user=default redir=-1

id=33 addr=172.17.0.1:59638 laddr=172.17.0.2:6379 fd=20 name= age=185601 idle=185601 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20496 events=r cmd=info user=default redir=-1

id=74 addr=172.17.0.1:59640 laddr=172.17.0.2:6379 fd=23 name= age=185597 idle=185431 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20528 events=r cmd=evalsha user=default redir=-1

id=25 addr=172.17.0.1:59626 laddr=172.17.0.2:6379 fd=21 name= age=185630 idle=185597 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20520 events=r cmd=zadd user=default redir=-1

id=974 addr=172.17.0.1:61054 laddr=172.17.0.2:6379 fd=14 name= age=36 idle=36 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20520 events=r cmd=json.set user=default redir=-1

id=975 addr=172.17.0.1:61056 laddr=172.17.0.2:6379 fd=15 name= age=36 idle=0 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=57 qbuf-free=40897 argv-mem=40 obl=0 oll=0 omem=0 tot-mem=61496 events=r cmd=smembers user=default redir=-1

id=26 addr=172.17.0.1:59628 laddr=172.17.0.2:6379 fd=22 name= age=185630 idle=185598 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20520 events=r cmd=zrangebylex user=default redir=-1

id=29 addr=172.17.0.1:59630 laddr=172.17.0.2:6379 fd=16 name= age=185601 idle=185431 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20512 events=r cmd=json.get user=default redir=-1

id=30 addr=172.17.0.1:59632 laddr=172.17.0.2:6379 fd=17 name= age=185601 idle=32 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20520 events=r cmd=zrangebylex user=default redir=-1

id=31 addr=172.17.0.1:59634 laddr=172.17.0.2:6379 fd=18 name= age=185601 idle=32 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20512 events=r cmd=json.get user=default redir=-1

id=973 addr=172.17.0.1:61052 laddr=172.17.0.2:6379 fd=13 name= age=36 idle=23 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20512 events=r cmd=json.get user=default redir=-1


------ CURRENT CLIENT INFO ------

id=975 addr=172.17.0.1:61056 laddr=172.17.0.2:6379 fd=15 name= age=36 idle=0 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=57 qbuf-free=40897 argv-mem=40 obl=0 oll=0 omem=0 tot-mem=61496 events=r cmd=smembers user=default redir=-1

argv[0]: 'smembers'

argv[1]: 'profiles�_idx�rival�ja4h72ge4k9j'

qemu: uncaught target signal 11 (Segmentation fault) - core dumped

Unable to start redis with --loadmodule or redis.conf file

I am getting this exception when I am trying to set password to my redis instance as stated in docs.
but I am getting below exception while running docker container.

1:C 29 Oct 2021 20:57:14.130 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 29 Oct 2021 20:57:14.130 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 29 Oct 2021 20:57:14.130 # Configuration loaded 1:M 29 Oct 2021 20:57:14.130 * monotonic clock: POSIX clock_gettime 1:M 29 Oct 2021 20:57:14.130 # Warning: Could not create server TCP listening socket ::1:6379: bind: Cannot assign requested address 1:M 29 Oct 2021 20:57:14.131 * Running mode=standalone, port=6379. 1:M 29 Oct 2021 20:57:14.131 # Server initialized 1:M 29 Oct 2021 20:57:14.131 # 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 29 Oct 2021 20:57:14.131 # Module /usr/lib/redis/modules/rebloom.so failed to load: /usr/lib/redis/modules/rebloom.so: cannot open shared object file: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.